Well question 1 is first, can I get variables that are in script vars, and can I test them in an if statement at all? For example, I'm trying to track the number of edges a player does, right now I just have it increment a counter then do stuff with that value out in the guideme area of things. I was wondering if there was some way that I could read it in the script engine and compare, a basic if statement or a goto, sort of like ifSet theFlag goto thePlace.
The more specific question is, is I want to do a tease that is random, so I want it to pick a random number of edges to do, then track on that. Do I have any way of checking variable values? I kind of started with this:
edges_max = <Random 6,12>
then didn't quite know what I could do with that number. I guess I could make say 12 goSub style flags and jump to the appropriate one, like
Code: Select all
edges1:
", First edge
return
edges2:
", first edge
", second edge
return
edges3:
", first edge
", second edge
", third edge
return
if playerEdges == max_edges goto AllDone
?
No big deal again, just want to make sure I'm not artificially limiting myself in how i'm tackling things.