Hey there,
I have a quest set up where the player needs to find the dungeon exit (which is a Quest Task). I also have a trigger volume at the exit which calls my script function, in which I want to complete / remove the current quest task and continue to the second task of the quest (which will be talking to an NPC).
How do I complete a Quest Task by LUA script?
What I’ve done at the moment is just give the player a token when he enters the trigger. In the QuestEditor, I have set my task objective’s condition to whether or not the player has that token (i.e. he reached the exit), and in the “Action” tab I entered Begin 2nd Task, Complete 1st Task.
Is this the correct way to do it? I’ve noticed the “WaitForCompletion” option in the quest editor. Is this supposed to be triggered by a method through scripting?
Thanks in advance!