Skip to content

Questprompt

Sets the last prompt as a quest prompt which needs specific handling.

Syntax

|questprompt|

Parameters

None.

Remarks

When confirming an ItemList whose type is Quest Board List Type, this will call SetText with a prompt command to ask if it should be taken. If it is, it will redirect like a normal prompt command, but this isn't enough: the actual BoardQuests needs to be transferred using activateselectedquest as well as some special handling logic that are specific to quest prompts such as showing the tutorial if applicable.

This commands allows SetText to know that it is dealing with such prompts. How it works is during the Quest Board List Type > Confirmation handling, it will call SetText with the boardcaller's dialogue line, but it will be prepended with this command. This command will be in effect for the rest of the SetText call, but it is typically used only once. The effect will only be taken into account during Dialogue post-processing.

If it is in effect and we have confirmed a prompt, after obtaining the OrganiseLines version of the dialogue text to redirect, that text is appended with a string that handles the quest prompt.

If we confirmed any other option than the first one (which is the Yes one), this string is |break||loadcamera||end|.

If we confirmed the first option (Yes), this string starts with |activateselectedquest||break|. If flag 64 is false (received the quest board tutorial), this is also added to it: |tail,null||blank||boxstyle,4| followed by menutext 170 (the quest board tutorial) followed by |flag,64,true||break|. Finally, this last portion is added in either cases: |loadcamera||end|.