Hello! So, for my game I'm working on a questline for a character that requires that the player defeats 3 slimes to complete. I've made sure to put slime troops in the area (each troop having one slime). I just wanted to know, how would I make it so that the game acknowledges when the player has defeated 3 slimes, activating a global switch when they do that would tell Skella (the quest character) that the slimes have been defeated? I've watched multiple tutorials on quests, but none of them are battle quests, they're things such as getting another character to join your party or finding an item. I don't mind installing a plugin if necessary, I just want to know if it's doable without messing with javascript since I don't have any coding knowledge whatsoever.
Slime Quest
RPG Maker MV Supportbest way is to use a variable. and place this in the troop event of the slime
kill of slime = variable x += 1
if variable x >= 3 (equals or higher than 3)
turn switch ON // optional but better like the next line
Complete quest x // or push to the next quest/return to npc for reward.
end
this is the basic setup for variable kill. (this variable can be re-used for another
kill quest or something else if need too.
like you can only accept 1 kill quest at the time, so this can be used constantly.
kill of slime = variable x += 1
if variable x >= 3 (equals or higher than 3)
turn switch ON // optional but better like the next line
Complete quest x // or push to the next quest/return to npc for reward.
end
this is the basic setup for variable kill. (this variable can be re-used for another
kill quest or something else if need too.
like you can only accept 1 kill quest at the time, so this can be used constantly.
I’ve been doing something almost identical to this, but I can’t find the enemy killed condition in the trigger list. I’ve set it to “If enemy (1) HP =< 0”, but I’m not sure if that’s right. I have more than one enemy per troop, and despite setting up the condition for each one, the variable only goes up by 1 per battle, regardless of number of enemies.
Sorry to hijack this thread, just it was so similar to what I was doing.
If your troops are events, you don't even need to do it in the troop section of the database. Just put the +1 after the Battle Processing call. If you allow the player to escape, or you allow them to lose, then put the +1 into the If Win branch but not the lose or escape branches.
How does that work in a situation where the party kills one of two enemies, then escapes? They wouldn’t be credited with the first kill?
Sorry if this doesn't make sense but here's my attempt:
If each Battle Processing win brings the corresponding variable up one, you can set a Conditional Branch for the quest giver. Set the Conditional Branch for If variable x = 3 for when giving credit. You can check the Else box (under the above Conditional Branch) to choose what happens if conditions are not met.
@yoluko, this is not your thread, and I was answering the OP who specifically said each troop had only one enemy (sorry if that wasn't clear). Your question is different, so please make your own thread rather than hijacking theirs. Obviously you are going to need a different solution.
This worked. I have it currently set up where there's only one kill quest you can get before moving onto the next area, so there shouldn't be any trouble with the only accepting 1 kill quest at a time thing, although I went ahead and made the variable specifically for that quest. Thanks for the help!
The troops are in the database (and only found in one area since the npc asks you to kill 3 slimes in their camp) rather than being an event, but I'll keep this in mind for later since I do plan on making event battles!
That's not what I mean. Do you use random battles, or do you have events with Battle Processing commands? If they are random battles, then you will need to increment the variable in the troop event.
Original thread: https://forums.rpgmakerweb.com/threads/slime-quest.134887/