The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => Topic started by: oriceles on November 08, 2011, 02:53:20 AM

Title: [Resolved]Count number of slayed monters
Post by: oriceles on November 08, 2011, 02:53:20 AM
I'm looking to create a NPC that give you a prize after killing X number of specific monsters, for example If i kill 50 bats he will give me a special robe. I tought that this can be done using event monster enconunter setting, a variable will increase after every specific monster is beaten but it woill only count the evented monsters and not the ones outside of them. Help?
Title: Re: Count number of slayed monters
Post by: mittenrc on November 08, 2011, 08:45:24 PM
Hiyah ^^ So I think this is rather simple thing when you think about it (no offence) :)

Your random encounters are troops of monsters, and for troops you can create events. And to that event page you can add for example:

@> Control variables: [0001: number_slayed_bat] += 2 (depending how many bats are in that troop encounter)

And so you just have to add this little variable control to those troop's event page and you have a variable counting the amount of bats you have killed :)

Hope this helped ^^
Title: Re: Count number of slayed monters
Post by: oriceles on November 09, 2011, 01:38:20 AM
LOL  :tpg: why I didn't tought about it? a conditional branch with a switch turned on after talking with the old man and the variable increase with the switch on. THanks!  :rbiggrin:
Title: Re: Count number of slayed monters
Post by: modern algebra on November 09, 2011, 01:44:23 AM
I think mittenrc was referring to putting it in the battle events. For instance, an event which runs on turn 0 and increases the encounter variables for each enemy in the troop.

Though you could still escape, so you'd want to design it so that it wouldn't count up if it was increased.
Title: Re: Count number of slayed monters
Post by: oriceles on November 09, 2011, 01:47:27 AM
Yeah, I already edited up there with a solution. I Think this is solved, thanks! :D