I honestly have had trouble with the "kill X monsters quest", and finally figured it out (and decided to share, since there are probably other people who don't get it :x )
Forgive my presumptuousness.
- You need the two scripts provided by Vlue (thanks, vlue ^-^), the quest system and the after battle victory/escape switches:
Basic quest system:
http://pastebin.com/tyM7s1Pj
After battle switches:
http://pastebin.com/qH1SkL0V
- Open up the database in RPG maker and go to the Troops menu. Select a troop.
- On the battle events section, set the condition to switch [VICTORY] is on (default is switch #90, you can change this in the script).
- Create a new "Script..." event. Type in:
adv_obj
🙂questid, :
objid,
value)
for example, with the script compilation it would be adv_obj
🙂questid001,
😮bj1, 1) for an increase of 1 in the slime killing quest.
then don't forget to turn the "Victory" switch
off with "Control Switch" so that if the player battles a slime again and escapes, they won't see any quest advancement.
Hope this helped :3
(Vlue, those slimes were literally impossible to kill, why did you do this to us T^T I had to go in and cheat by lowering the attack stats xD)
Also, if you'll allow me a question of my own: how do you automatically turn off these victory switches? I see this in the script
def return_scene
$game_switches[VICTORY_EVENT_SWITCH] = false
$game_switches[ESCAPE_EVENT_SWITCH] = false
$game_switches[ABORT_EVENT_SWITCH] = false
$game_switches[DEFEAT_EVENT_SWITCH] = false
super
but it doesn't seem to actually be called by scene manager?