Author Topic: Dang Variable help again!!!!!!  (Read 305 times)

ok this what I want to know how to do, lets say I made a brick and as events for that brick I have- Onactivate/client/add variable/ breackfast. After i clicked that i went to the breakfast machine and clicked it.
If you dont have that variable i want it to say- You dont have they authority to have breackfast and if you do have that variable I want it to say- Here you go, and you get a cookie
That was just a senareo but i need help for things like this please!!!!!! it would be greatly apriciated!!!!!

First of all it's onactive/player/addvariable/breakfast 1

Then you would do onactive/self/ifvariable/player/greaterequals/1
variabletrue/client/You get a cookie.
variblefalse/client/You dont get breakfast

Yeah, vars are pretty easy once you get used to em!

Simply use events - ONACTIVATE - SELF - IFVARIABLE - BREAKFAST - GREATER than 1

VARTRUE - CLIENT - ADDVAR - COOKIE - 1
VARFALSE - CLIENT - CENTRE PRINT -YOU DO'NT GET A COOKIE!

First of all it's onactive/player/addvariable/breakfast 1

Then you would do onactive/self/ifvariable/player/greaterequals/1
variabletrue/client/You get a cookie.
variblefalse/client/You dont get breakfast

reslly csudr i thought it had to be client?

GREATER than 1
why does it have to be greater then one cant it be equeal too?