Author Topic: Variables not responding to "onVariableTrue"?  (Read 493 times)

Code: [Select]
0 onActivate>Client>VCE_ifVariable currentlyfishing == 1 2 6
0 onVariableFalse>Client>VCE_modVariable currentlyfishing Set 1
0 onVariableTrue >Client>CenterPrint <color:ffff00>You are already fishing!
0 onVariableFalse>Client>CenterPrint <color:ffff00>Fishing... 3
0 onVariableFalse>Client>VCE_modVariable fishing Set 1
0 onVariableFalse>Client>VCE_modVariable fishing randomNum 100
2000onVariableFalse>Client>VCE_ifVariable fishing >= 1 7 7
0 onVariableTrue >Client>VCE_ifVariable fishing <= 50 8 10
0 onVariableTrue >Client>CenterPrint <color:ffff00>You caught a fish! You now have <var:cl:fish> fish!
0 onVariableTrue >Client>VCE_modVariable fish Add 1
0 onVariableFalse>Client>CenterPrint <color:ffff00>The fish got away!
2000onActivate>Client>VCE_modVariable currentlyfishing Set 0
It worked before I added the "currentlyfishing" variable and only the "onVariableFalse" work at the end.


What is the first event? The infomation given shows that Event 0 is missing.

What is the first event? The infomation given shows that Event 0 is missing.
That's all the events.

Code: [Select]
0 onActivate>Client>VCE_ifVariable currentlyfishing == 1 2 6

Replace 2 6 with 1 5. Hurrdurr.
When you make a first event, it's 0, not 1.

Actually, i think you basically forgeted up all of those. Just edit the ending part of the IfVariable events.

If Event 0 is the first event listed, then your numbers are off.