EOSERV Forum > Game Development > Quest action recursion too deep
Page: << 1 >>
Quest action recursion too deep
Author Message
Post #204692 Quest action recursion too deep

Hello there everyone, working on a quest and right at the end i get the error on the post Subject.
I think it's related to the very last part, "state end" 
I must end the quest like this or otherwise people would be able to reclaim the reward over and over again example:

}

state reward
{
 action     ShowHint("You received 200 EXP and a Comendation Letter. ");
 action     GiveEXP(200);
 action     GiveItem(854,1);
 action     PlaySound(18);
 action  End()
}

If I do it like this, reward reclaim problem surges, and the quest won't fiinish.
_______________________________

This is the solutions I came up with... it causes players to log off after completing the quest, but fixes the first problem.

}
state reward
{
 action     ShowHint("You received 200 EXP and a Comendation Letter. ");
 action     GiveEXP(200);
 action     GiveItem(854,1);
 action     PlaySound(18);
 action     SetQuestState(74, "end");
}
state end

    action  End()
}


Any clues about this? I'll try to fix it and post it here if i find out.

Thanks and happy holidays

EDITED:
Fixed...
Seems the problem was caused by the order of the actions...

state reward
{
 action     GiveEXP(200);
    action     GiveItem(854,1);
 action     ShowHint("You received 200 EXP and a Comendation Letter. ");
 action     PlaySound(18);
 action  End()
}

5 years, 18 weeks ago
Page: << 1 >>

EOSERV Forum > Game Development > Quest action recursion too deep