I just started using RPG Maker XP, and as of right now I'm trying to implement different (simplistic) money-making skills such as fishing, cooking, mining, smithing, etc... Just basic harvest-and-refinement type things so players can generate extra income, and they'll all share just about the same script. But I need some help on the scripts.
What I want to do is to make a switch (or perhaps something else?) that won't just be turned on or off, but have things added to it as well. When the value of the switch is greater than zero, it's considered on, when zero it's off. Example: fishing and catching a raw fish adds +1 to fish_switch, "cooking" (-1 raw fish, +1 cooked fish; requires fish_switch to be on) subtracts 1 from the switch, so players can't get unlimited goods without having to go through the process of fishing/mining/woodcutting. At first I thought that cooking (without a switch or something) wouldn't work or be an option when a player has no fish in their inventory, but apparently it can...
Alternatively, maybe someone can provide a script for an event which can replace item X with item Y?
Thanks in advance.
Edit: And just so you know, I've already made the events for actually fishing and retrieving fish, so I don't need help for that particular area.