Author | Message | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Curious on how I'd form this into a quest.
| So I have this setup as a warp, and I want to turn it into a quest so there's dialogue (have that bit), then you warp into area if reborn 3 to kill a boss, return, talk to the guy after killing the boss, then have to go collect something from that same boss all while being able to use this SAME NPC to warp back in. Afterwards, return for a reward. Sounds tedious, and I'm unsure how to do it. Will send someone a quick 5 buckerinos to do it up for me lol. Main
{ questname "Kingdom Comer" version 1.0 } state Begin { action AddNpcText(12, "It's time we go to war and finish off the Zeal"); action AddNpcText(12, "We're sending you in, [name]"); action AddNpcInput(12, 1, "Bezniak Warfront"); rule InputNpc( 1 ) goto Bezniak } state Bezniak { action SetCoord(180,20,20); action Reset(); } state BezniakCheck { if IsRebirth(3) goto Bezniak else goto BezniakFail } state BezniakFail { action ShowHint("You need to be Reborn 3 to go to this location."); action Reset(); }
|
Re: Curious on how I'd form this into a quest.
| I am not sure if "Isrebirth" is in the normal eoserv but I have a similar quest for doing a quest at a certain level I will edit it for you so it looks like what you asked for ..Also I recommend to add in every quest with an option a lose option so a person can exit the quest because if they walk up to it and click but dont do anything and leave it will stay active in their log. If you can do it with rebirth just change my level section to rebirth instead for those checks. Also I just added random warps and names to each state so you can change those :) main { questname "Kingdom Corner" version 1.0 } state begin { desc "Kingdom Corner" action AddNpcText(12, "It's time we go to war and finish off the Zeal"); action AddNpcText(12, "We're sending you in, [name]"); action AddNpcInput(12, 1, "Bezniak Warfront"); action AddNpcInput(12, 2, "I am to scared.");
rule InputNpc( 1 ) goto levelcheck rule InputNpc( 2 ) goto Lose } state levelcheck { desc "Checking level"
rule StatBetween("level", 60, 250) goto Bezniak rule StatBetween("level", 1, 59) goto failed } state Bezniak { desc "Tripp to Bezniak"
action SetCoord(180,20,20);
rule EnterCoord(180,20,20) goto bosskill } state bosskill { desc "Kill Benziak Boss"
rule KilledNpcs(999, 1) goto warphome1 } sate warphome1 { action SetCoord(999,1,1);
rule EnterCoord(999,1,1) goto talktobez { state talktobez { desc "Talk to Bezniak Person" action AddNpcText(12, "We need you to go collect 50 objects"); action AddNpcInput(12, 1, "can you collect 50 objects for me?");
rule InputNpc( 1 ) goto warpbacktocollect } state warpbacktocollect {
action SetCoord(999,1,1);
rule EnterCoord(999,1,1) goto collection } state collection { desc "Collect 50 objects"
rule GotItems(999,50) goto gohomenow } action SetCoord(999,1,1);
rule EnterCoord(999,1,1) goto talktoforreward } state talktoforreward { desc "Talk to Bezniak Person" action AddNpcText(12, "yay you did it here is your reward"); action AddNpcInput(12, 1, "Collect reward");
rule InputNpc( 1 ) goto Reward } state reward { action ShowHint("You Have Been Rewarded"); action ShowHint("You Have Gained 125000 Experience"); action GiveExp(125000); action Reset(); } state Lose { action AddNpcText(12, "Why won't you help!"); action Reset(); } state failed { action ShowHint("You are to low level");
action Reset(); }
|
Re: Curious on how I'd form this into a quest.
| I appreciate the effort. Got these when trying to add the quest in: > Syntax Error: Expected state-block entry (rule/action/if/elseif/else/goal/desc) or closing brace '}' in state 'bosskill'. Got: identifier 'goto' (Line 90) > Syntax Error: Expected state-block entry (rule/action/if/elseif/else/goal/desc) or closing brace '}' in state 'warphome1'. Got: symbol '{' (Line 112)
|
Re: Curious on how I'd form this into a quest.
| damis posted: (23rd Dec 2016, 02:17 pm) Open the quest with Notepad++ and paste here what you have on lines 90 and 112.
|
Re: Curious on how I'd form this into a quest.
| when there's a quest , there's an apollo. Stay on topic please.--Apollo 7 years, 18 weeks ago
|
Re: Curious on how I'd form this into a quest.
| Apollo posted: (23rd Dec 2016, 02:24 pm)damis posted: (23rd Dec 2016, 02:17 pm) I'm mostly fine now, I believe. Most things are cleared up. But no matter whether I switch up the brace, remove the brace, or anything else, this one area won't fix. > Syntax Error: Expected block-identifier (main/state) in global scope. Got: integer '12' (Line 26) Yet on line 26 I get "rule InputNpc( 1 ) goto rebirthcheck" according to NP++ main { questname "Kingdom Corner" version 1.0 } state begin { desc "Kingdom Corner" action AddNpcText(12, "It's time we go to war and finish off the Zeal"); action AddNpcText(12, "We're sending you in, [name]"); action AddNpcInput(12, 1, "Bezniak Warfront"); action AddNpcInput(12, 2, "I am to scared."); } rule InputNpc( 1 ) goto rebirthcheck
|
Re: Curious on how I'd form this into a quest.
| You should never put a } right in the middle of the state they only go before and after states to close the groups and start a new one! Please post your full edited quest here
|
Re: Curious on how I'd form this into a quest.
| arglon posted: (23rd Dec 2016, 04:10 pm) That's what it prompted me to edit because it said there's an error.. said most areas were missing the brace.
|
Re: Curious on how I'd form this into a quest.
| Please post the full quest again, in the edit I did all the proper { where in place. You are using eosource it seems and that has other feautures eoserv does not have so I can't know those unless you post :P
|
Re: Curious on how I'd form this into a quest.
| Line 26:
rule InputNpc( 1 ) goto rebirthcheck
Is outside of a state block. That is your error. Move it up so it is after your last action line. --- http://sordie.co.uk http://twitter.com/@SordieEO
| |