Skip to content

rq.QuestEvent ​

What rq.quests.on_event and on_event_after callbacks get.

code 8 is start and 7 is map_load; otherwise fg names the kind: 4 map_event, 5 warp, 6 warp_cancel, 7 before_battle, 8 after_battle, 9 chest, 10 contact, 11 before_warp; anything else is other.

Fields ​

NameTypeDescription
questintegerThe quest being played.
kind"start"|"map_load"|"map_event"|"warp"|"warp_cancel"|"before_warp"|"before_battle"|"after_battle"|"chest"|"contact"|"other"The quest moment.
nointegerThe map event number, or the map number for map_load.
codeintegerThe first argument of the game's クエスト処理.
fgintegerThe third argument of クエスト処理.
result (optional)integerWhat the game's handling returned; only in on_event_after.
id (optional)stringThe quest's id, for a quest a mod defined (rq.quests.define); nil for the game's. Since 2.41.0.

Used by ​

rq.quests.on_event, rq.quests.on_event_after