Author Topic: Variable Score Doesn't Work?  (Read 832 times)

Im using the following format:

  • Onactivate -> Client -> Modvariable [Score] Set [50] [1 2]
  • [1] Onactivate -> Client -> Chatmessage [<var:cl:Score>]
    [2] Onactivate -> Client -> IfVariable
[Score] == [50] [3 4]
[3] Onvariabletrue -> Client -> Chatmessage [Hey]
[4] Onvaraiblefalse -> Client -> Chatmessage [No]



Upon clicking the brick i get two chat messages:
50
No

I do believe I'm missing something very stupid. Please tell me it.

for line 2 use
Onactivate-self-VCEIfValue-<var:cl:score> == 50 [3 4]


for line 2 use
Onactivate-self-VCEIfValue-<var:cl:score> == 50 [3 4]
Wow, never thought to try that, fixed my problem, thanks.

UNLOCKED:
New problem, with Kill All's Fix, the score subtractor subtracts from 0 instead of the players actual score.

you have to set a variable to the players score, subtract the price from that, then set the players score to that variable
like set variable a to the players score, subtract 50 from a, then set the players score to a.

oh. i already did that now, but thanks anyways