Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Help
»
Taking Off Variables
« previous
next »
Print
Pages: [
1
]
Author
Topic: Taking Off Variables (Read 836 times)
Trilogy
January 10, 2009, 10:42:51 PM
Is dividing a variable the same as taking off a variable? I was trying to exchange one variable for another, this is what I have
OnActivate -> Self -> IfVariable -> Client -> gold -> Equals -> 10
OnActivate -> Client -> AddVariable -> Miner Score -> 15
---- How do I make it so it takes away 10 gold, so then its like exchanging like I said?
Ad Bot
Advertisement
Trilogy
January 10, 2009, 10:47:23 PM
I have a feeling I am doing this all wrong, because it seems to not be working. I am new to variables lol
Falcondude
January 10, 2009, 10:51:25 PM
You talk about dividing variables, then you make an example of switching the variables. Which one is it?
Also, is there a setVariable? I haven't used the variable mod before. If there is, you could just do setVariable -> 15, as far as I can tell.
Trilogy
January 10, 2009, 10:54:07 PM
Well wouldn't that set the variable instead of just taking some off? Thats what I meant to do in the first place...
Falcondude
January 10, 2009, 10:55:16 PM
What exactly are you trying to do? 10+15-10 = 15
Subtracting? AddVariable -> -#
Trilogy
January 10, 2009, 10:58:13 PM
OH! Thanks.... What about if the variable has to be a certain number in order for it to work? How would I put that?
Falcondude
January 10, 2009, 11:00:17 PM
It sounds like you have it right... again, I'm clueless about the events within variables, but your ifVariable sounds like it'd work...
Evidently, I need to get the variable events.
Trilogy
January 10, 2009, 11:01:27 PM
Its NOT working though is the thing... and I am not sure why...
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Help
»
Taking Off Variables