Blockland Forums > Help
"Display Variable" not going exactly as I plan...
(1/2) > >>
FrogFreak:
I have 3 bricks set up with events set in them pretty much like this...

(I also am using VCE variables)

1st brick:  onActivate : Self : VCE_modvariable : player : money : set : 100

2nd brick: onActivate : Client : displayVariable : player : chatmessage : 3 : money

3rd brick: onactivate : VCE_ifvariable : money : >= : 55 : 1 3
               
                onvariabletrue: player : VCE_modvariable : money : subtract : 55
 
 Delay [10] : onvariabletrue : player : setitem : ak47

                onvariablefalse : client : chatmessage : You don't have enoguh money!

I click on the first brick then click on the second brick and I get a chat message
displaying "money is 100", then I click one the third brick and get an ak47 and then the variable gets subtracted  by 55...and if I click on the third brick again not clicking on the others between clicking on the third brick I get the chat message "You don't have enough money!".
However....when I click on the 2nd brick again...it displays "money is 100"...what is going on here?
Is there something I'm missing or is it a bug?
Lugnut:
Theres a "Display variable"? Damn!
Idk, but I never found display variable before.
Lugnut:
Is Display variable a new thing? Its not in... 5.0?
Or am i missing something.. Cause it likes to do that to me..
Lugnut:
waiiiit.. Whered you get Display Variable?
Thats not VCE. That could be a main problem. maybe.
FrogFreak:
It doesn't have any VCE_ and the begining of it...
Navigation
Message Index
Next page

Go to full version