EOSERV Forum > EO Server Building > ok so i rewrote my first quest an its not working any advice
Page: << 1 >>
ok so i rewrote my first quest an its not working any advice
Author Message
Post #202196 ok so i rewrote my first quest an its not working any advice

Main

{

questname "Save the Kingdom"

version 1.0

}

State Begin

{

desc "Talk to the King"

 

action AddNpcText(1, "Thank God you made it [name]");

action AddNpcText(1, "Why are you naked wheres your stuff");

action AddNpcInput(1, 1, "Huh? Couldnt tell you");

action AddNpcText(1, "Well here take these we need you on the front lines.");

rule IsGender(1) goto if male

rule IsGender(2) goto if female

}

State male

{

desc "Talk to the King"

 

action GiveItem(494, 1);

action GiveItem(490, 1);

action GiveItem(492, 1);

action GiveItem(485, 1);

action GiveItem(387, 1);

action GiveItem(486, 1);

action GiveItem(493, 1);

action GiveItem(408, 1);

action GiveItem(327, 1);

action GiveItem(489, 2);

action GiveItem(491, 2);

action GiveItem(488, 2);

rule InputNpc(3) goto kill

}

State female

{

desc "Talk to the King"

 

action GiveItem(494, 1);

action GiveItem(490, 1);

action GiveItem(492, 1);

action GiveItem(485, 1);

action GiveItem(388, 1);

action GiveItem(486, 1);

action GiveItem(493, 1);

action GiveItem(408, 1);

action GiveItem(366, 1);

action GiveItem(489, 2);

action GiveItem(491, 2);

action GiveItem(488, 2);

}

State kill

{

desc "Talk to the King"

 

action AddNpcText(1, "You all set now ");

action AddNpcInput(1, 1, "Yep i think so");

action AddNpcText(1, "Now go clear a path slay 250 army of darkness");

rule KilledNpcs(135, 250) goto return

}

State return

{

desc "Talk to the King"

 

action AddNpcText(1, "Great your an artist with that blade");

action AddNpcText(1, "Now those darkness pets are slaughtering our men go kill them both ");

action AddNpcInput(1, 2, "No mercy");

rule InputNpc(1) goto kill1

}

State kill1

{

desc "Kill 2 Darkness Pets"

 

 

action AddNpcText(1, "You can do it [name] ");

action AddNpcText(1, "No Mercy! ");

rule KilledNpcs(185, 2) goto return1

}

State return1

{

desc "Kill the Prince"

 

action AddNpcText(1, "Now we can Lauch an full on assualt to the Prince ");

action AddNpcText(1, "Hit him with all we have CHARGE!!!!!! ");

action AddNpcInput(1, 3, "Let's finish this for Seleant!");

rule KilledNpcs(235, 1) goto return2

}

State return2

{

desc "Talk to the King"

 

action AddNpcText(1, "You have saved Seleant.You truely are a great an mighty Hero");

action AddNpcText(1, "Now you Need to do one more thing for your king");

action AddNpcInput(1, 4, "Name it");

action AddNpcText(1, "Wake up ");

action AddNpcInput(1, 5, "Huh?");

action AddNpcText(1, "Wake up");

rule TalkedToNpc(1) goto if male1

rule TalkedToNpc(1) goto if female1

rule TalkedToNpc(1) goto wakeup

}

State male1

{

action RemoveItem(494, 1);

action RemoveItem(490, 1);

action RemoveItem(492, 1);

action RemoveItem(485, 1);

action RemoveItem(387, 1);

action RemoveItem(486, 1);

action RemoveItem(493, 1);

action RemoveItem(408, 1);

action RemoveItem(327, 1);

action RemoveItem(489, 2);

action RemoveItem(491,2);

action RemoveItem(488, 2);

}

State female1

{

action RemoveItem(494, 1);

action RemoveItem(490, 1);

action RemoveItem(492, 1);

action RemoveItem(485, 1);

action RemoveItem(388, 1);

action RemoveItem(486, 1);

action RemoveItem(493, 1);

action RemoveItem(408, 1);

action RemoveItem(366, 1);

action RemoveItem(489, 2);

action RemoveItem(491, 2);

action RemoveItem(488, 2);

}

State wakeup

{

desc "wakeup"

 

action SetCoord(9,1,2);

action End();

action Reset();

}

says line 16 state male

7 years, 14 weeks ago
Post #202202 Re: ok so i rewrote my first quest an its not working any advice

Change rule InputNpc(3) goto kill to rule InputNpc(1) perhaps, and try again.

I only skimmed over it and I'm not too fluent in quest-writing yet.

7 years, 14 weeks ago
Post #202203 Re: ok so i rewrote my first quest an its not working any advice

ill try that quest are the hardest in my opinion


 > Syntax Error: Expected state-block entry (rule/action/if/elseif/else/goal/desc) or closing brace '}' in state 'begin'. Got: identifier 'male' (Line 15)
 > Quest not found: 2. Marking as inactive.n

I don't understand what I need to change here


if anyone gets bored an think they can get this quest to work an feels like rewriting it, it would be very appesiated ive written this same quest 5 or 6 times an everytime theres something not right I'm not giving up I will keep trying but I don't want to annoy anyone by reposting failed quest lol much love Playko

7 years, 14 weeks ago
Post #202220 Re: ok so i rewrote my first quest an its not working any advice

rule IsGender(1) goto if male

rule IsGender(2) goto if female


remove the "if". goto just goes to a line, it is not a question.


check your state female, it has no goto statement.

what are the unreadable characters in the quest script? make sure you put them into comment blocks.

---
I not hacker

“Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its
whole life believing that it is stupid.” - Albert Einstein : Really Great Quote Ramy!
7 years, 14 weeks ago
Page: << 1 >>

EOSERV Forum > EO Server Building > ok so i rewrote my first quest an its not working any advice