I'm trying to make a simple bank system where people can either deposit or withdraw their savings all at once. However, to do so, I need my events to be able to tell when to stop giving money to the player.
Here's what I have:
OnActivate -> Self -> FireRelay
OnRelay -> Self -> FireRelay
OnRelay -> Self -> VCE_ifVariable [cyrbank] >
OnVariableTrue -> Client -> VCE_modVariable [cyrbank] subtract [1]
OnVariableTrue -> Player -> VCE_modVariable [cyr] add [1]
OnVariableFalse -> Self -> CancelEvents
So, basically what I want it to do is look at the client's value for how much money they've already saved (cyrbank) and keep decreasing that while adding the same amount to the player's money (cyr). Then I want it to stop when cyrbank equals 0. Can you guys help me out? What am I missing?