Author Topic: Taking Off Variables  (Read 836 times)

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?

I have a feeling I am doing this all wrong, because it seems to not be working. I am new to variables lol

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.

Well wouldn't that set the variable instead of just taking some off? Thats what I meant to do in the first place...

What exactly are you trying to do? 10+15-10 = 15

Subtracting? AddVariable -> -#

OH! Thanks.... What about if the variable has to be a certain number in order for it to work? How would I put that?

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.

Its NOT working though is the thing... and I am not sure why...