Everything seems to be in order in my eyes, I essentially just redid AW quest in a lazy way (Not really changing up any of the states..lol.), but I tried to change the killed players to kill 100 goats, and it keeps giving me "Unknown state: Reward" and expected if/else/desc , etc, or }, but got
"goto"
Can't spot what I'm doing wrong.
Main
{
questname "Brothers Solvent"
version 1.0
}
State Begin
{
desc "Talk to Zebo&Sedrik"
action AddNpcText( 18, "We've been stuck as a twin-headed demon thanks to Apozen.. we need a cure, but it'll be a big task to get it..." );
action AddNpcInput( 18, 1, "Ask for the Reward" );
action AddNpcInput( 18, 2, "Get out of here" );
rule InputNpc ( 1 ) goto KillReaper
rule InputNpc ( 2 ) goto Reset
}
State KillReaper
{
desc "Kill the Reaper"
action AddNpcText( 18 , "We'll test you numerous times in combat to see if you can do this." );
action AddNpcInput( 18, 1, "Take the test" );
action AddNpcInput( 18, 2, "Give up" );
rule KilledNpcs( 9 , 1 ) goto ReaperDead
rule InputNpc(2) goto Reset
}
State ReaperDead
{
desc "Return to the Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "Next task is at hand, eliminate the Bone Spider");
rule TalkedToNpc( 18 ) goto KillBoneSpider
}
State KillBoneSpider
{
desc "Kill the Bone Spider"
action AddNpcText( 18 , "Take care of the Bone Spider for us");
action AddNpcInput( 18, 1, "Take the test" );
action AddNpcInput( 18, 2, "Give up" );
rule KilledNpcs( 183 , 1 ) goto BoneSpiderDead
rule InputNpc(2) goto Reset
}
State BoneSpiderDead
{
desc "Return to the Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "You've killed them, but we haven't gotten the cure yet... next assignment.." );
rule TalkedToNpc( 18 ) goto KillOctopus
}
State KillOctopus
{
desc "Kill the Octopus"
action AddNpcText( 18 , "Next, take out the Octopus Lord!" );
action AddNpcInput( 18, 1, "Take the test" );
action AddNpcInput( 18, 2, "Give up" );
rule KilledNpcs( 118 , 1 ) goto OctopusDead
rule InputNpc(2) goto Reset
}
State OctopusDead
{
desc "Return to Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "They're not finished yet! We must eliminate all." );
rule TalkedToNpc( 18 ) goto KillApozen
}
State KillApozen
{
desc "Kill Apozen Overlord"
action AddNpcText( 18 , "Kill the Overlord himself... APOZEN!" );
action AddNpcInput( 18, 1, "Take the test" );
action AddNpcInput( 18, 2, "Give up" );
rule KilledNpcs( 257 , 1 ) goto ApozenDead
rule InputNpc(2) goto Reset
}
State ApozenDead
{
desc "Return to the Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "Very well... we're half way there..." );
rule TalkedToNpc( 18 ) goto GetPiggies
}
State GetPiggies
{
desc "Find Goat Horns"
action AddNpcText( 18, "Bring us 100 Goat Horns please!" );
rule GotItems(258,100) goto GotPiggies
}
State GotPiggies
{
desc "Give Horns to Zebo&Sedrik"
action ShowHint("Return to Zebo&sedrik");
action AddNpcText( 18, "Give those to me please.." );
action AddNpcInput(18,1, "Give the 100 Horns");
action AddNpcInput(18,2, "No, sorry no deal.");
rule InputNpc( 1 ) goto GetSnakeTeeth
rule InputNpc(2) goto Reset
}
State GetSnakeTeeth
{
desc "Find snake teeth"
action Quake(2, 118);
action RemoveItem(258,100);
action AddNpcText( 18, "Bring me 100 Snake Teeth now!" );
rule GotItems(253,100) goto GotSnakeTeeth
}
State GotSnakeTeeth
{
desc "Give snake teeth to Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "I need the teeth please!.." );
action AddNpcInput(18,1, "Give 100 snake teeth");
action AddNpcInput(18,2, "No, sorry no deal.");
rule TalkedToNpc( 18 ) goto GetTenbaBags
rule InputNpc(2) goto Reset
}
State GetTenbaBags
{
desc "Find Bat Wings"
action Quake(2, 118);
action RemoveItem(253,100);
action AddNpcText( 18, "Bring us 100 Bat Wings please.." );
rule GotItems(319,100) goto GotTenbaBags
}
State GotTenbaBags
{
desc "Give Bat Wings to Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "Give those to me please!.." );
action AddNpcInput(18,1, "Give 100 Bat Wings");
action AddNpcInput(18,2, "No, sorry no deal");
rule TalkedToNpc( 18 ) goto GetImpStings
rule InputNpc(2) goto Reset
}
State GetImpStings
{
desc "Find Fire Crystal"
action Quake(2, 118);
action AddNpcText( 18, "Now we need 100 Fire Crystals!" );
action RemoveItem(319,100);
rule GotItems(78,100) goto GotImpStings
}
State GotImpStings
{
desc "Give the crystals to Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "I'll take those, thank you!.." );
action AddNpcInput(18,1, "Give 100 imp strings");
action AddNpcInput(18,2, "No, sorry no deal.");
rule TalkedToNpc( 18 ) goto GetWurmHeads
rule InputNpc(2) goto Reset
}
State GetWurmHeads
{
desc "Find Ice Cubes"
action Quake(2, 118);
action AddNpcText( 18, "Bring me 50 Ice Cubes!.." );
action RemoveItem(78,100);
rule GotItems(338,50) goto GotWurmHeads
}
State GotWurmHeads
{
desc "Give Ice Cubes to Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "Thank you...." );
action AddNpcInput(18,1, "Give 50 Ice Cubes");
action AddNpcInput(18,2, "No, sorry no deal");
rule TalkedToNpc( 18 ) goto GetDragonWings
rule InputNpc(2) goto Reset
}
State GetDragonWings
{
desc "Find Dragon Wings"
action Quake(4, 118);
action AddNpcText( 18, "Bring me 10 Dragon Wings now!.." );
action RemoveItem(338,50);
rule GotItems(470,10) goto GotDragonWings
}
State GotDragonWings
{
desc "Give dragon wings to Zebo&Sedrik"
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "We neeed them now!!" );
action AddNpcInput(18,1, "Give 10 dragon wings");
action AddNpcInput(18,2, "No, sorry no deal.");
rule TalkedToNpc( 18 ) goto KillPlayers
rule InputNpc(2) goto Reset
}
State KillPlayers
{
desc "Kill 100 Goats!"
action Quake(2,118);
action AddNpcText( 18, "You've done very well, now for fun, one last task!.");
action AddNpcText( 18, "Slaughter 100 goats!");
rule KilledNpcs(7,100); goto WraithDialog
}
State WraithDialog
{
desc "Talk to Zebo&Sedrik"
action Quake(4, 118);
action ShowHint("Return to Zebo&Sedrik");
action AddNpcText( 18, "We have our cure, and we need to give you a reward!.." );
rule TalkedToNpc( 1 ); goto Reward
}
State Reward
{
action GiveItem(1,10000);
action GiveExp(1000000);
action GiveItem(257,1);
action ShowHint("You gained 1 Million EXP, Scav Bow, and 10,000 Gold!");
action PlaySound(18);
action End();
}
State Reset
{