Howdy all! I was wondering if there was a way to make a variable tick after an encounter - the idea is that after an event trigger, the player in my game needs to complete a certain ammount of battles for the quest to progress. Kind of like the Cursed Shield -> Paladin's Shield in FF6, if some are familiar.
The thing is, I don't want encounters before this point to add to the variable. Any suggestions?
This can be done with pure events, I think.
When the event triggers, use a Control Variables command to put Game Data -> Other -> Battle Count (or Win Count) into a variable of your choice. Then, when you need to check how many battles they've done, use the same command but store it in a different variable, and check the difference between the two variables (use a Control Variables to subtract the first variable from the second, then a Conditional Branch on the second variable).
Seems easy enough! Should I set it up as a Common Event, so it tracks through the entire game, correct?
it depends on when you want the end effect to happen or if you have an active quest tracker of some sort.
the value of the variable for the battles won since accepting the quest doesnt matter until you're ready to use it. So if you only use that value when the player tries to turn it in, then you dont actually need to update every battle.
If you do track it or it autocompletes itself, then you might want to make it a common event and use a plugin to run it after every battle once the quest is active.
What exactly have you set up so far?
So, that runs when the quest to win N battles begins, right? Where do you check if they've fought enough battles?
I wanted to test it so basically it's just 'Win Count > 1' for right now, but it's triggering even if there's been no battles since then.