Split some smaller files from event_scripts

This commit is contained in:
GriffinR
2019-10-21 06:46:57 -04:00
committed by huderlem
parent 5b845bb0a0
commit c70162086b
17 changed files with 585 additions and 586 deletions

18
data/scripts/surf.inc Normal file
View File

@@ -0,0 +1,18 @@
EventScript_UseSurf:: @ 8271EA0
checkpartymove MOVE_SURF
compare VAR_RESULT, 6
goto_if_eq EventScript_CantSurf
bufferpartymonnick 0, VAR_RESULT
setfieldeffectargument 0, VAR_RESULT
lockall
msgbox gText_WantToUseSurf, MSGBOX_YESNO
compare VAR_RESULT, 0
goto_if_eq EventScript_CancelSurf
msgbox gText_PlayerUsedSurf, MSGBOX_DEFAULT
dofieldeffect FLDEFF_USE_SURF
EventScript_CancelSurf:: @ 8271ED5
releaseall
EventScript_CantSurf:: @ 8271ED6
end