import from github

This commit is contained in:
2022-05-19 17:14:13 +00:00
parent 5247c34f50
commit ab32b30591
12612 changed files with 1905035 additions and 83 deletions

31
data/scripts/repel.inc Normal file
View File

@ -0,0 +1,31 @@
EventScript_RepelWoreOff::
lockall
checkitem VAR_REPEL_LAST_USED, 1
compare VAR_RESULT, FALSE
goto_if_eq EventScript_RepelWoreOff_NoMoreRepels
msgbox Text_RepelWoreOff_UseAnother, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq EventScript_RepelWoreOff_ChooseNo
copyvar VAR_0x8004, VAR_REPEL_LAST_USED
callnative ItemId_GetHoldEffectParam_Script
copyvar VAR_REPEL_STEP_COUNT, VAR_RESULT
bufferitemname 1, VAR_REPEL_LAST_USED
removeitem VAR_REPEL_LAST_USED, 1
playse SE_REPEL
msgbox gText_PlayerUsedVar2, MSGBOX_SIGN
goto EventScript_RepelWoreOff_End
EventScript_RepelWoreOff_ChooseNo:
closemessage
goto EventScript_RepelWoreOff_End
EventScript_RepelWoreOff_NoMoreRepels:
msgbox Text_RepelWoreOff, MSGBOX_SIGN
EventScript_RepelWoreOff_End:
releaseall
end
Text_RepelWoreOff:
.string "REPEL's effect wore off…$"
Text_RepelWoreOff_UseAnother:
.string "REPEL's effect wore off…\n"
.string "Use another?$"