Skip to content

Activateselectedquest

Mark a specific BoardQuest or the one whose id is in flagvar 0 as taken which removes it from the open board and adds it to the taken board.

Syntax

(1)

|activateselectedquest|

(2)

|activateselectedquest,quest|

Parameters

quest: int | vint | varint | money

The BoardQuest id to mark as taken. The int form specifies the id directly while either string forms specifies the flagvar slot used to get the id. The int form must be a valid BoardQuest or an exception will be thrown.

Either string forms are equivalent, but they must contain v or var once or they will be interpreted as the int form which will cause an exception to be thrown. Additionally, the value inside of them must be a valid flagvar slot or an exception will be thrown. Finally, that flagvar slot must also contain a valid BoardQuest id or an exception will be thrown.

Specifying money is technically possible, but is not recommended because it will interpret the current berry count as a BoardQuest id which will likely result in an exception being thrown.

Remarks

Syntax (1) is meant to be used in conjunction with the Quest Board List Type because flagvar 0 is where the selected BoardQuests is located upon confirmation. For more details, check Quest Board List Type > Confirmation handling. This syntax is actually sent by SetText itself when a questprompt is confirmed as part of the normal quest prompting process.

This command also makes sure that the open board has the NoQuest element if there are no more open quests after the transfer.

This also changes some flags:

  • The taken flag slot of the BoardQuest from boardquestdata is set to true if it exists (-1 denotes that)
  • flagstring 11 is set to all open BoardQuests id after the transfer separated by ,
  • flags 2 is set to true