My first quest is not working. Any suggestions?

Talk about EOSERV here.
Carrot
Noob
Noob
Posts: 2
Joined: Mon Nov 24, 2014 9:20 pm

My first quest is not working. Any suggestions?

Postby Carrot » Mon Nov 24, 2014 9:24 pm

It's my first time writing a quest and when I click on the NPC it gives me the quest but does not let me do anything else. The quest sits in my quest log forever.

Any suggestions on how to make this work?

I tried removing all punctuation in dialogue after reading another forum post.

It is stuck in the Begin state.

Code: Select all

Main
{
   questname   "The Introduction"
   version   1.0
}

State Begin
{
   desc   "Talk to Dan"
   action   AddNpcText(256, "Hello there");
   action   AddNpcText(256, "Congratulations on graduating");
   action   AddNpcText(256, "Before you leave I will assign you one final task");
   rule   TalkedToNpc(256) goto GatherKey
}

State GatherKey
{
   desc   "Gather the key from the barrel"
   action   AddNpcText(256, "First I want you to grab my key from the barrel in the connector");
   rule   EnterCoord(1, 20, 4 8)  goto GoBack
}

State GoBack
{
   desc   "Return the info to Dan"
   action   AddNpcText(256, "Hmmmm Where could the key have been");
   rule   TalkedToNpc(256) goto GetCrowClaws
}

State GetCrowClaws
{
   desc   "Get 2 Crow Claws"
   action   AddNpcText(256, "Thanks Okay Now gather 2 crow claws for me");
   rule   GotItems(248, 2) goto GiveCrowClaws
}

State GiveCrowClaws
{
   desc   "Give 3 Crow Claws to Dan"
   action   AddNpcText(256, "Hello I see you gathered some crow claws I will be taking them now");
   rule   LostItems(0, 0) goto GetCrowClaws
   rule   TalkedToNpc(256) goto TalktoDan
}

State TalktoDan
{
   desc   "Talk to Dan to get the continue your final assignment"
   action   RemoveItem(248, 2);
   action   AddNpcText(256, "Alright, now just head down the road");
   action   AddNpcText(256, "You will run into my partner who will give you the next part of your final assignment");
   action   AddNpcText(256, "Good luck");
   rule   TalkedToNpc(256) goto Reward
}

State Reward
{
   action   GiveExp(133);
   action   End();
}
Last edited by Carrot on Mon Nov 24, 2014 9:39 pm, edited 1 time in total.
User avatar
Deaven
Legend
Legend
Posts: 570
Joined: Fri Jul 20, 2012 7:08 am
Location: United States

RE: My first quest is not working. Any suggestions?

Postby Deaven » Tue Nov 25, 2014 9:02 am

In state GiveCrowClaws you have this

Code: Select all

rule    LostItems(0, 0) goto GetCrowClaws

I think this is always evaluating to true when you have the crow claws, so it sends you to the previous state.

Other than that I don't see anything wrong with the quest. Though there are some inconsistency with the number of crow claws you need. Also why choose such a high quest script number?
Carrot
Noob
Noob
Posts: 2
Joined: Mon Nov 24, 2014 9:20 pm

RE: My first quest is not working. Any suggestions?

Postby Carrot » Tue Nov 25, 2014 9:50 am

Deaven wrote:In state GiveCrowClaws you have this

Code: Select all

rule    LostItems(0, 0) goto GetCrowClaws

I think this is always evaluating to true when you have the crow claws, so it sends you to the previous state.

Other than that I don't see anything wrong with the quest. Though there are some inconsistency with the number of crow claws you need. Also why choose such a high quest script number?


Also why choose such a high quest script number?


:cheesy: I'm stupid. I thought it was the NPC ID...
I changed all of the 256 to 1 and now it works.

Thanks for the help!
Last edited by Carrot on Tue Nov 25, 2014 9:50 am, edited 1 time in total.

Return to “EOSERV”

Who is online

Users browsing this forum: No registered users and 3 guests