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
The if and if else statements
T122002 Offline
Junior Member

Posts: 24
Threads: 10
Joined: Dec 2012
Reputation: 1
#1
The if and if else statements

Hello everyone! I have a question to ask.

Most script functions I have a general idea on how to use, but I do not understand how the "if" and "if else" statements work, or how or when to use them. I think after I learn those two statements, than I'll start working with loops and try to mess with puzzles a bit more.

Well, for example, say I want the player to pick up a key, then when they leave the room the key was in, a monster spawns. Or maybe when you do something, like solve a puzzle (I also don't know how to do puzzle scripts), then something will happen.

Can anyone explain to me how to do this, like dumb it down so I can understand and maybe throw in a few examples for me to study? That would be much appreciated!
04-09-2013, 06:06 PM
Find


Messages In This Thread
The if and if else statements - by T122002 - 04-09-2013, 06:06 PM
RE: The if and if else statements - by T122002 - 04-09-2013, 11:29 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 03:37 PM
RE: The if and if else statements - by T122002 - 04-10-2013, 06:40 PM



Users browsing this thread: 1 Guest(s)