Quest Help :))

Post your quests here!
sevenfold
General
General
Posts: 80
Joined: Thu Aug 07, 2014 6:16 pm

Quest Help :))

Postby sevenfold » Fri Jun 12, 2015 11:46 pm

Could someone help me with this? lol ive been checking errors and the error i found is;
> Validation Error: Unknown rule: checklevel (State: nextquest)
Main
{
questname "Pig Hunt"
version 1.0
}
state Begin
{
desc "Talk to Jessica"
action AddNpcText(1, "Hey [name], your new right?");
action AddNpcInput(1,1,"Yes ma'm i am");
action AddNpcInput(1,2,"End Conversation");
rule InputNpc(1) goto Next
rule InputNpc(2) goto Reset
}
state Reset
{
action Reset();
action ShowHint("Quest has Reset!");
}
state Next
{
desc "Talk to Jessica"
action AddNpcText(1, "Ahh, mind doing me a favor? killing 15 Momma Pigs and once you killed them all, ill reward you");
action AddNpcInput(1,1,"Let's do it!");
action AddNpcInput(1,2,"End Conversation");
rule InputNpc(1) goto KillPigs
rule InputNpc(2) goto Reset
}
state KillPigs
{
desc "Kill 15 Momma Pig's"
action AddNpcText(1, "Return to me once you finished.");
rule KilledNpcs(231,15) goto Return
}
state Return
{
desc "Return to Jessica"
action AddNpcText(1, "Wow that was pretty rough out there, here let me reward you, your next quest is killing those boars, once you reached level 4.");
action GiveExp(2500);
rule TalkedToNpc(1) goto NextQuest
}
state NextQuest
{
desc "Speak to Jessica (Lvl4)"
action AddNpcText(1, "You've reached Level 4, now i need you to go and kill 25 Boars, ill reward you more.");
rule CheckLevel(4) goto TalkWithJessica
}
state TalkWithJessica
{
desc "Speak to Jessica"
action AddNpcText(1, "You're not Level4, please come back later.");
action AddNpcInput(1,1,"Ok");
rule InputNpc(1) goto NextQuest
}
state KillBoars
{
desc "Kill 25 Boars"
action AddNpcText(1, "Return to me once you killed 25 Boars.");
rule KilledNpcs(67,25) goto Return2
}
state Return2
{
desc "Return to Jessica"
action AddNpcText(1, "Nice, your level is rising up slowly, let me reward you");
rule TalkedToNpc(1) goto Reward
}
state Reward
{
action GiveExp(15000);
action GiveItem(2500);
action Reset();
}
Always will love to help out! :D leave a message
#OneAndOnly
squirtle
Member
Member
Posts: 41
Joined: Tue Nov 18, 2014 3:28 pm
Location: North Carolina
Contact:

RE: Quest Help :))

Postby squirtle » Wed Jun 17, 2015 10:51 am

try
rule IsLevel(ID) goto NextQuest
Last edited by squirtle on Wed Jun 17, 2015 10:51 am, edited 1 time in total.

Return to “Quests”

Who is online

Users browsing this forum: No registered users and 1 guest