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


Thread Rating:
  • 8 Vote(s) - 4.63 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Video Tutorials [OMG ELEVEN!!!!]
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#63
RE: Video Tutorials [OMG ELEVEN!!!!]

I will try the best I can.

The variable equals 1 automatically from the start. The "(GetLocalVarInt("Lev") == 3)" checks to see if the variable equals 3. So if it doesn't, then it does whetever when it doesn't which is represented by not equal to (!=) the number. If the player pulls the first lever in the combo, which would say "(GetLocalVarInt("Lev") == 1)", it would do whatever in the brackets. Which in those brackets, it says that it sets the variable to 2. So when the player pulls the second lever in the combo, it will check to see if the variable equals 2.

"for (int i = 1; i > 0 && i < 5; i++)" If I translate this, it would say. Integer i equals 1. Integer i is greater than 0 and i is less than five. Then add integer i by 1 each time until it reaches it's max number, which is 4 because it has to be from 1 to 4. The other one is just exactly the same, just with a different variable. A local variable is for the entire script and a regular variable (in this case integers i and x) is only applied to the function.

There is a longer way to do this instead of those 2 "for" statements. You just have to implement what ever is between the 2 brackets right after the "for" statement for lever_1, lever_2, lever_3, and lever_4.


"lever_"+i adds the lever and integer i together to where within the limits of integer i (1 through 4) are used to determine the number lever it is. If you notice, the limits of integer i match the amount of levers there are. There are lever_1, lever_2, lever_3, and lever_4.

05-04-2011, 08:56 PM
Find


Messages In This Thread
Video Tutorials [OMG ELEVEN!!!!] - by Simpanra - 04-24-2011, 02:36 PM
RE: Video Tutorials - by HumiliatioN - 04-25-2011, 12:27 AM
RE: Video Tutorials - by laser50 - 04-25-2011, 12:29 AM
RE: Video Tutorials - by Glouki - 04-25-2011, 12:56 AM
RE: Video Tutorials - by Russ Money - 04-25-2011, 12:56 AM
RE: Video Tutorials - by Anxt - 04-25-2011, 02:47 AM
RE: Video Tutorials - by Droopy - 04-25-2011, 03:08 AM
RE: Video Tutorials - by Anxt - 04-25-2011, 03:12 AM
RE: Video Tutorials - by Simpanra - 04-25-2011, 11:39 AM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Anxt - 04-25-2011, 03:57 PM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Anxt - 04-25-2011, 04:46 PM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Anxt - 04-25-2011, 07:10 PM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Anxt - 04-25-2011, 07:19 PM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Anxt - 04-25-2011, 08:46 PM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Anxt - 04-26-2011, 02:37 AM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Kyle - 04-27-2011, 12:34 AM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Kyle - 04-27-2011, 02:11 AM
RE: Video Tutorials [FIRST VIDEO IS UP] - by Anxt - 04-27-2011, 02:15 AM
RE: Video Tutorials [THREE VIDS NOW UP] - by Kyle - 05-02-2011, 02:45 AM
RE: Video Tutorials [SIX VIDEOS!] - by Roenlond - 05-02-2011, 07:52 PM
RE: Video Tutorials [SIX VIDEOS!] - by Simpanra - 05-02-2011, 07:55 PM
RE: Video Tutorials [SIX VIDEOS!] - by Roenlond - 05-02-2011, 08:00 PM
RE: Video Tutorials [SIX VIDEOS!] - by Simpanra - 05-03-2011, 08:18 PM
RE: Video Tutorials [SIX VIDEOS!] - by Roenlond - 05-03-2011, 08:29 PM
RE: Video Tutorials [SIX VIDEOS!] - by Simpanra - 05-03-2011, 08:39 PM
RE: Video Tutorials [SEVEN VIDEOS!] - by Roenlond - 05-03-2011, 08:56 PM
RE: Video Tutorials [SEVEN VIDEOS!] - by Simpanra - 05-03-2011, 09:03 PM
RE: Video Tutorials [TEN!!!!!!!] - by Simpanra - 05-03-2011, 11:01 PM
RE: Video Tutorials [TEN!!!!!!!] - by Russ Money - 05-03-2011, 11:32 PM
RE: Video Tutorials [TEN!!!!!!!] - by Kyle - 05-04-2011, 12:15 AM
RE: Video Tutorials [TEN!!!!!!!] - by Russ Money - 05-04-2011, 01:38 AM
RE: Video Tutorials [TEN!!!!!!!] - by Simpanra - 05-04-2011, 06:56 AM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Kyle - 05-04-2011, 08:09 PM
RE: Video Tutorials [OMG ELEVEN!!!!] - by MrBigzy - 05-04-2011, 08:52 PM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Kyle - 05-04-2011, 08:56 PM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Kyle - 05-04-2011, 09:13 PM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Acies - 05-05-2011, 10:12 PM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Mofo - 05-06-2011, 07:23 AM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Kyle - 05-05-2011, 11:10 PM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Acies - 05-06-2011, 03:12 AM
RE: Video Tutorials [OMG ELEVEN!!!!] - by Karai16 - 05-15-2011, 11:33 AM
RE: Video Tutorials [OMG ELEVEN!!!!] - by laser50 - 05-15-2011, 05:32 PM
RE: Video Tutorials [OMG ELEVEN!!!!] - by laser50 - 06-20-2011, 08:10 AM
RE: Video Tutorials [OMG ELEVEN!!!!] - by xtron - 07-22-2011, 11:15 AM



Users browsing this thread: 2 Guest(s)