mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 03:57:38 +01:00
17 lines
448 B
C++
17 lines
448 B
C++
EventScript_UseSurf::
|
|
checkpartymove MOVE_SURF
|
|
compare VAR_RESULT, PARTY_SIZE
|
|
goto_if_eq EventScript_EndUseSurf
|
|
bufferpartymonnick 0, VAR_RESULT
|
|
setfieldeffectargument 0, VAR_RESULT
|
|
lockall
|
|
msgbox gText_WantToUseSurf, MSGBOX_YESNO
|
|
compare VAR_RESULT, NO
|
|
goto_if_eq EventScript_ReleaseUseSurf
|
|
msgbox gText_PlayerUsedSurf, MSGBOX_DEFAULT
|
|
dofieldeffect FLDEFF_USE_SURF
|
|
EventScript_ReleaseUseSurf::
|
|
releaseall
|
|
EventScript_EndUseSurf::
|
|
end
|