I'm trying to quest a boatman npc that gives you an option after you finish a quest. I'm just not quiet sure how to call the, or what to call. I'm assuming you need to call the storageID from the quest, but I'm not sure how to do that. I can script the travel functions for the boatman I'm just not sure how to do an if then statement to tell if the player has finished the quest or not.
Basically it would act like this:
If player has finished quest 1 then
player has access to Location1 and Location2
Else
player has access to Location1.
End
Dialogue if player has finished quest:
Player: Hi
NPC: Hello |PlayerName| I can take you to main city, or second city!
Dialogue if player has not finished quest:
Player: Hi
NPC: Hello |PlayerName| I can take you to the main city.
Thanks in advance,
Jester
- - - Updated - - -
Would I have to call the quest.lua file to get the storageId or is there a better way?
Basically it would act like this:
If player has finished quest 1 then
player has access to Location1 and Location2
Else
player has access to Location1.
End
Dialogue if player has finished quest:
Player: Hi
NPC: Hello |PlayerName| I can take you to main city, or second city!
Dialogue if player has not finished quest:
Player: Hi
NPC: Hello |PlayerName| I can take you to the main city.
Thanks in advance,
Jester
- - - Updated - - -
Would I have to call the quest.lua file to get the storageId or is there a better way?