Author Topic: Variable Event Timer  (Read 568 times)

I need help for a RPG that i was making with Kobewarrior. What I need help with is making a variable decrease every 5 seconds by 1. Please help, I do not seem to be able to get it working.

onrelay>self>firerelay(delay5sec)
onrelay>self>addvariable[whateverit'snamed][1]


Forgot to add this, but if i wanted it to happen to the player how would i do it?

Dang, I can't figure that out.

onrelay>self>firerelay(delay5sec)
onrelay>self>addvariable[whateverit'snamed][1]


wont that just add variables not decrease variables?

Forgot to add this, but if i wanted it to happen to the player how would i do it?
onrelay>self>firerelay(delay5sec)
onrelay>player>addvariable[whateverit'snamed][1]
Also Targeting the Player make you loose the Varriable when you die. Targeting the Client makes it stay to them untill they leave. (Thats why theres Saving/Loading Varriables)

Edit button gone?

Forgot you cant target the Player with Relays..
OnRelay>Self>FireRelay (With 5 sec Delay)
OnRelay>Self>IfPlayerID>GreaterEquals>0
VarriableTrue>Player>AddVarriable>[NAME]>-1

That is a little complex method to target the Player, but it will only work for one player unless another player activates the Relay, or a CancelEvents is played.


wont that just add variables not decrease variables?

oops, i ment -1