Blockland Forums > Help
Dang Variable help again!!!!!!
Pages: (1/1)
Fabio Bajesus:
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!!!!!
Plasmus:
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
Corbiere:
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!
Fabio Bajesus:
--- Quote from: Mogarf on June 25, 2009, 10:07:07 PM ---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
--- End quote ---
reslly csudr i thought it had to be client?
Fabio Bajesus:
--- Quote from: Corbiere on June 26, 2009, 01:25:49 PM --- GREATER than 1
--- End quote ---
why does it have to be greater then one cant it be equeal too?
Pages: (1/1)