Author Topic: VCE : Saving and Loading Variables  (Read 443 times)

Aight, so how do you save/load VCE vars?
I decided to switch over, for the most part to VCE after I saw how much more potential it has compared to old vars.

Also, > is apparently a less than sign in VCE.  As well as < being a greater than sign. =|

Ok I found out saving client stuff is under Self not client, but anyways the >= problem still exists.

Simplified Scenario:

Ore Brick:
Code: [Select]
1. OnActivate > Client > VCE_ModVariable (Wheat) [Add] (1)
*Player Harvests 10 Wheat*

Selling Booth:
Code: [Select]
1. OnActivate > Self > VCE_IfVariable (Wheat) [>=] (10) (2 4)

2. OnVariableTrue > Self > VCE_ModVariable (Wheat) [Subtract] (10)

3. OnVariableTrue > Self > VCE_ModVariable (Gold) [Add] (10)

4. OnVariableFalse > Client > ChatMsg > [You need at least 10 wheat to sell.]
After harvesting 10 wheat and then clicking the sell booth, it is saying: "You need at least 10 wheat to sell."