The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doing nothing on an IF & Resetting level on death?
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#1
Doing nothing on an IF & Resetting level on death?

Well, I got two questions.

First one, if you got a script with an IF statement such as:
if(GetSwingDoorLocked("mansion_5") == true) SetMessage("Level_01", "GruntChaseLockedDoor", 0);
    else

If you don't want anything to happen on the ELSE, how do you stop the script?
I've heard that you can use a BREAK in some languages but I'm not too sure here.

And for my second question, as my friends die on my customs, (lol Big Grin) and like, a door is closed and locked, or a monster spawns and they have to redo from start, all things and events are already done. How do you make it so that they will become back to normal if you die? (If you have a checkpoint at one place, I don't want the events before that to get resetted)

Thanks in advance Smile

Creator of The Dark Treasure.
02-10-2011, 11:43 PM
Website Find


Messages In This Thread
Doing nothing on an IF & Resetting level on death? - by Linus Ågren - 02-10-2011, 11:43 PM



Users browsing this thread: 1 Guest(s)