2021-07-20 21:18:31 +02:00
|
|
|
EventScript_RepelWoreOff::
|
2022-09-14 05:17:04 +02:00
|
|
|
.if I_REPEL_LURE_MENU == TRUE
|
|
|
|
checkitem ITEM_REPEL, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_RepelUseAnother
|
|
|
|
checkitem ITEM_SUPER_REPEL, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_RepelUseAnother
|
|
|
|
checkitem ITEM_MAX_REPEL, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_RepelUseAnother
|
|
|
|
.else
|
|
|
|
checkitem VAR_LAST_REPEL_LURE_USED, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_RepelUseAnother
|
|
|
|
.endif
|
2022-08-28 01:46:59 +02:00
|
|
|
lock
|
2019-10-21 12:46:57 +02:00
|
|
|
msgbox Text_RepelWoreOff, MSGBOX_SIGN
|
2022-08-28 01:46:59 +02:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2022-09-14 05:17:04 +02:00
|
|
|
EventScript_RepelUseAnother:
|
2022-08-28 01:46:59 +02:00
|
|
|
lock
|
2022-09-14 05:17:04 +02:00
|
|
|
msgbox Text_UseAnotherRepel, MSGBOX_YESNO
|
|
|
|
.if I_REPEL_LURE_MENU == TRUE
|
|
|
|
callnative TryDrawRepelMenu
|
|
|
|
goto_if_eq VAR_RESULT, FALSE, EventScript_RepelWoreOff_Chose
|
|
|
|
waitstate
|
|
|
|
goto_if_eq VAR_RESULT, 127, EventScript_RepelWoreOff_End
|
|
|
|
EventScript_RepelWoreOff_Chose:
|
|
|
|
callnative HandleRepelMenuChoice
|
|
|
|
bufferitemname 1, VAR_0x8004
|
|
|
|
removeitem VAR_0x8004, 1
|
|
|
|
playse SE_REPEL
|
|
|
|
msgbox Text_UsedNewRepelLure, MSGBOX_SIGN
|
|
|
|
.else
|
|
|
|
goto_if_eq VAR_RESULT, YES, EventScript_UsedRepel
|
|
|
|
.endif
|
|
|
|
EventScript_RepelWoreOff_End:
|
2022-08-28 01:46:59 +02:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
EventScript_UsedRepel:
|
2022-09-14 05:17:04 +02:00
|
|
|
bufferitemname 1, VAR_LAST_REPEL_LURE_USED
|
2022-08-28 01:46:59 +02:00
|
|
|
playse SE_REPEL
|
|
|
|
lock
|
2022-09-12 01:48:27 +02:00
|
|
|
msgbox Text_UsedNewRepelLure, MSGBOX_SIGN
|
2022-09-14 05:17:04 +02:00
|
|
|
removeitem VAR_LAST_REPEL_LURE_USED, 1
|
2022-08-28 01:46:59 +02:00
|
|
|
waitse
|
|
|
|
callnative HandleUseExpiredRepel
|
|
|
|
release
|
2019-10-21 12:46:57 +02:00
|
|
|
end
|
|
|
|
|
2022-09-12 01:48:27 +02:00
|
|
|
EventScript_LureWoreOff::
|
2022-09-14 05:17:04 +02:00
|
|
|
.if I_REPEL_LURE_MENU == TRUE
|
|
|
|
checkitem ITEM_LURE, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_LureUseAnother
|
|
|
|
checkitem ITEM_SUPER_LURE, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_LureUseAnother
|
|
|
|
checkitem ITEM_MAX_LURE, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_LureUseAnother
|
|
|
|
.else
|
|
|
|
checkitem VAR_LAST_REPEL_LURE_USED, 1
|
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_LureUseAnother
|
|
|
|
.endif
|
2022-09-12 01:48:27 +02:00
|
|
|
lock
|
|
|
|
msgbox Text_LureWoreOff, MSGBOX_SIGN
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
EventScript_LureUseAnother:
|
|
|
|
lock
|
|
|
|
msgbox Text_UseAnotherLure, MSGBOX_YESNO
|
2022-09-14 05:17:04 +02:00
|
|
|
.if I_REPEL_LURE_MENU == TRUE
|
|
|
|
callnative TryDrawLureMenu
|
|
|
|
goto_if_eq VAR_RESULT, FALSE, EventScript_LureWoreOff_Chose
|
|
|
|
waitstate
|
|
|
|
goto_if_eq VAR_RESULT, 127, EventScript_LureWoreOff_End
|
|
|
|
EventScript_LureWoreOff_Chose:
|
|
|
|
callnative HandleLureMenuChoice
|
|
|
|
bufferitemname 1, VAR_0x8004
|
|
|
|
removeitem VAR_0x8004, 1
|
|
|
|
playse SE_REPEL
|
|
|
|
msgbox Text_UsedNewRepelLure, MSGBOX_SIGN
|
|
|
|
.else
|
|
|
|
goto_if_eq VAR_RESULT, YES, EventScript_UsedLure
|
|
|
|
.endif
|
|
|
|
EventScript_LureWoreOff_End:
|
2022-09-12 01:48:27 +02:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
EventScript_UsedLure:
|
2022-09-14 05:17:04 +02:00
|
|
|
bufferitemname 1, VAR_LAST_REPEL_LURE_USED
|
2022-09-12 01:48:27 +02:00
|
|
|
playse SE_REPEL
|
|
|
|
lock
|
|
|
|
msgbox Text_UsedNewRepelLure, MSGBOX_SIGN
|
2022-09-14 05:17:04 +02:00
|
|
|
removeitem VAR_LAST_REPEL_LURE_USED, 1
|
2022-09-12 01:48:27 +02:00
|
|
|
waitse
|
|
|
|
callnative HandleUseExpiredLure
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2022-09-14 05:17:04 +02:00
|
|
|
Text_RepelWoreOff:
|
|
|
|
.string "REPEL's effect wore off…$"
|
|
|
|
|
|
|
|
Text_UseAnotherRepel::
|
|
|
|
.string "REPEL's effect wore off!\n"
|
|
|
|
.string "Use another?$"
|
|
|
|
|
2022-09-12 01:48:27 +02:00
|
|
|
Text_LureWoreOff:
|
|
|
|
.string "Lure's effect wore off…$"
|
|
|
|
|
|
|
|
Text_UseAnotherLure::
|
|
|
|
.string "Lure's effect wore off!\n"
|
|
|
|
.string "Use another?$"
|
2022-09-14 05:17:04 +02:00
|
|
|
|
|
|
|
Text_UsedNewRepelLure::
|
|
|
|
.string "{PLAYER} used the\n"
|
|
|
|
.string "{STR_VAR_2}.$"
|