var level1-1 = 0 //this is turned to 1 when the first level of the adventure field is done.
var level1-2 = 0
var level1-3 = 0
Pepe said:Learn C++.
Segmint said:WELL SORRY, it's not like what he's saying is absolutely clear.
Joat said:The current linedef executors don’t really do what I want them to.
Segmint said:WELL SORRY, it's not like what he's saying is absolutely clear.
Joat said:Alright, here’s what I want.
I plan on creating a game with ‘adventure fields’. All the levels in one adventure field must be completed before the player can enter the next one. However, there is no linedef for that.
Segmint said:WELL SORRY, it's not like what he's saying is absolutely clear.
Joat said:Let me demonstrate what I want to do in a sort of coding form.
When the adventure field is first entered, this activates:
Code:var level1-1 = 0 //this is turned to 1 when the first level of the adventure field is done. var level1-2 = 0 var level1-3 = 0
Segmint said:WELL SORRY, it's not like what he's saying is absolutely clear.
Joat said:I’m using something similar to Spidermonkey for this example. It should be easy to figure out. Anyway, I need another script to then be able to check those variables and do something only if all the level variables are set to 1.
Joat said:What I need is for when a player clears one of the levels in the field, it activates something. When all of those somethings in an adventure field are activated, the player can access the next adventure field.