What do you think?
Main { questname "Test" version 1.0 } State Begin { desc "Talk With Ayla" action AddNpcText(1, "My Life is ruined The Goats are destroying everything"); action AddNpcText(1, "Will you please Kill them all"); action AddNpcInput(1, 1, "Of course I will! I hate Goats anyway"); action AddNpcInput(1, 2, "Kill your own goats."); rule InputNpc(1) goto HelpAyla rule InputNpc(2) goto Coward } State Coward { desc "Talk With Ayla" action AddNpcText(1, "MY FAMILY WILL STARVE"); rule TalkedToNpc(1) goto EndReset } State HelpAyla { desc "Kill 30 Goats" action AddNpcText(1, "Please kill 30 Goats for me! They will never come back!"); action AddNpcInput(1, 1, "Easy"); action AddNpcInput(1, 2, "Can't be bothered"); rule InputNpc(1) goto KillGoats rule InputNpc(2) goto Coward2 } State Coward2 { desc "TalktoAyla" action AddNpcText(1, "That sucks."); rule TalkedToNpc(1) goto EndReset } State KillGoats { desc "Kill 30 Goats" action AddNpcText(1, "Thank you so much for helping! I will reward you"); rule KilledNpcs(7, 30) goto ReturnToAyla } State ReturnToAyla { desc "ReturnToAyla" action ShowHint("You Finished the Quest! Talk to Ayla"); action AddNpcText(1, "YOU FINISHED! You have helped my whole family!"); rule TalkedToNpc(1) goto Reward } State Reward { desc "Complete" action ShowHint("Ayla Gives you 5000xp and 5000Gold"); action GiveEXP(5000); action GiveItem(1, 5000); action End(); } State EndReset { desc "Complete" action Reset(); }