Author Topic: "Display Variable" not going exactly as I plan...  (Read 528 times)

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?

Theres a "Display variable"? Damn!
Idk, but I never found display variable before.

Is Display variable a new thing? Its not in... 5.0?
Or am i missing something.. Cause it likes to do that to me..

waiiiit.. Whered you get Display Variable?
Thats not VCE. That could be a main problem. maybe.

It doesn't have any VCE_ and the begining of it...

That may be your problem.
And seeing as i've tried for a month trying to get VCE variables to display in centerprint, and am unable to, I can't help you.

Does anybody have an idea?

Don't use the old "displayVariable", use the "Client" target, and use something like "ChatMessage".
Then an example.
Code: [Select]
OnActivate > Player > VCE_modVariable > [test] Add [1]
OnActivate > Client > ChatMessage > [<var:player:test> Tests]


Thank you man..it worked! :)