Author Topic: Event help ( how would i make a chest...)  (Read 839 times)

How would i make a chest where after you open it and get a gun and money would you NOT be able to get it again?

Name the whole chest with one name, like "chest"

Then use this at the end of the event system of the brick you have to push:
on activate_named brick_set colliding_[ ]
on activate_named brick_set rendering_[ ]
on activate_named brick_set raycasting_[ ]

Name the whole chest with one name, like "chest"

Then use this at the end of the event system of the brick you have to push:
on activate_named brick_set colliding_[ ]
on activate_named brick_set rendering_[ ]
on activate_named brick_set raycasting_[ ]

Um.. No.

Code: [Select]
OnActivate>Self>ifVariable[Client][ChestStocked][GreaterEquals][1]
VariableTrue>Client>centerPrint[You already took from this chest.]
VariableFalse>Player>addVariable[Money][5]
VariableFalse>Player>addItem[Gun]
VariableFalse>Client>centerPrint[You found 5 dollars and a gun!]
VariableFalse>Client>setVariable[ChestStocked][1]
This would make it when you click the chest and don't have the variable ChectStocked that you take from it, when you do have it, it'll say you already took from it.

Um.. No.

Code: [Select]
OnActivate>Self>ifVariable[Client][ChestStocked][GreaterEquals][1]
VariableTrue>Client>centerPrint[You already took from this chest.]
VariableFalse>Player>addVariable[Money][5]
VariableFalse>Player>addItem[Gun]
VariableFalse>Client>centerPrint[You found 5 dollars and a gun!]
VariableFalse>Client>setVariable[ChestStocked][1]
This would make it when you click the chest and don't have the variable ChectStocked that you take from it, when you do have it, it'll say you already took from it.
How do you know he has variables.

OnActivate Chest Dissapear -1
 400 Onactivate chest dissapear 0
onactivate chest toggle evnt enabled 0 1 2

How do you know he has variables.

OnActivate Chest Dissapear -1
 400 Onactivate chest dissapear 0
onactivate chest toggle evnt enabled 0 1 2

He would need variables in order for it to only open once per person.
Unless you could pull some magic out of your ass, of course.

He would need variables in order for it to only open once per person.
Unless you could pull some magic out of your ass, of course.
Who said i couldn't pull magic out of my ass.