Say I want to have a side quest to defeat 30 slimes. Is there a way to make a variable increase by 1 each time a slime is defeated? Here's my idea.
When you talk to the NPC that starts the quest, it sets the variable "Slimes Defeated" to 0. Then he tells you to go defeat 30 Slimes. After you kill a slime, the variable goes up by 1. Then, when you talk to the NPC again, there can be a conditional branch that checks the variable "Slimes Defeated" and if it's less than 30, he'll tell you how many you've defeated or how many you still need to defeat (by just doing some variable math and displaying a variable as text)
I can do all of this if there's a way I can create a variable that increases by 1 for each of the enemy that's defeated. The only way I can currently think of doing this is by troop, but then you won't get rewarded if you defeat one and flee from the others in the troop.
Thanks in advance to anyone who can help!
When you talk to the NPC that starts the quest, it sets the variable "Slimes Defeated" to 0. Then he tells you to go defeat 30 Slimes. After you kill a slime, the variable goes up by 1. Then, when you talk to the NPC again, there can be a conditional branch that checks the variable "Slimes Defeated" and if it's less than 30, he'll tell you how many you've defeated or how many you still need to defeat (by just doing some variable math and displaying a variable as text)
I can do all of this if there's a way I can create a variable that increases by 1 for each of the enemy that's defeated. The only way I can currently think of doing this is by troop, but then you won't get rewarded if you defeat one and flee from the others in the troop.
Thanks in advance to anyone who can help!