Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Help
»
Variable Score Doesn't Work?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Variable Score Doesn't Work? (Read 832 times)
colonial killer
January 12, 2012, 04:38:33 PM
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.
Ad Bot
Advertisement
Kill All
January 12, 2012, 04:44:56 PM
for line 2 use
Onactivate-self-VCEIfValue-<var:cl:score> == 50 [3 4]
colonial killer
January 12, 2012, 04:45:14 PM
I'll try it
colonial killer
January 12, 2012, 04:47:14 PM
Quote from: Kill All on January 12, 2012, 04:44:56 PM
for line 2 use
Onactivate-self-VCEIfValue-<var:cl:score> == 50 [3 4]
Wow, never thought to try that, fixed my problem, thanks.
colonial killer
January 12, 2012, 04:56:55 PM
UNLOCKED:
New problem, with Kill All's Fix, the score subtractor subtracts from 0 instead of the players actual score.
Ipquarx
January 12, 2012, 05:43:10 PM
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.
colonial killer
January 12, 2012, 05:44:50 PM
oh. i already did that now, but thanks anyways
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Help
»
Variable Score Doesn't Work?