diff options
Diffstat (limited to 'macros/scripts/events.asm')
-rw-r--r-- | macros/scripts/events.asm | 340 |
1 files changed, 170 insertions, 170 deletions
diff --git a/macros/scripts/events.asm b/macros/scripts/events.asm index 399dd4bb1..a494a33af 100644 --- a/macros/scripts/events.asm +++ b/macros/scripts/events.asm @@ -5,101 +5,101 @@ scall: MACRO db scall_command dw \1 ; pointer - endm +ENDM enum farscall_command ; $01 farscall: MACRO db farscall_command dba \1 - endm +ENDM enum ptcall_command ; $02 ptcall: MACRO db ptcall_command dw \1 ; pointer - endm +ENDM enum jump_command ; $03 jump: MACRO db jump_command dw \1 ; pointer - endm +ENDM enum farjump_command ; $04 farjump: MACRO db farjump_command dba \1 - endm +ENDM enum ptjump_command ; $05 ptjump: MACRO db ptjump_command dw \1 ; pointer - endm +ENDM enum if_equal_command ; $06 if_equal: MACRO db if_equal_command db \1 ; byte dw \2 ; pointer - endm +ENDM enum if_not_equal_command ; $07 if_not_equal: MACRO db if_not_equal_command db \1 ; byte dw \2 ; pointer - endm +ENDM enum iffalse_command ; $08 iffalse: MACRO db iffalse_command dw \1 ; pointer - endm +ENDM enum iftrue_command ; $09 iftrue: MACRO db iftrue_command dw \1 ; pointer - endm +ENDM enum if_greater_than_command ; $0a if_greater_than: MACRO db if_greater_than_command db \1 ; byte dw \2 ; pointer - endm +ENDM enum if_less_than_command ; $0b if_less_than: MACRO db if_less_than_command db \1 ; byte dw \2 ; pointer - endm +ENDM enum jumpstd_command ; $0c jumpstd: MACRO db jumpstd_command dw \1 ; predefined_script - endm +ENDM enum callstd_command ; $0d callstd: MACRO db callstd_command dw \1 ; predefined_script - endm +ENDM enum callasm_command ; $0e callasm: MACRO db callasm_command dba \1 - endm +ENDM enum special_command ; $0f special: MACRO db special_command dw (\1Special - SpecialsPointers) / 3 - endm +ENDM add_special: MACRO \1Special:: @@ -110,92 +110,92 @@ ENDM ptcallasm: MACRO db ptcallasm_command dw \1 ; asm - endm +ENDM enum checkmapscene_command ; $11 checkmapscene: MACRO db checkmapscene_command map \1 ; map - endm +ENDM enum setmapscene_command ; $12 setmapscene: MACRO db setmapscene_command map \1 ; map db \2 ; scene_id - endm +ENDM enum checkscene_command ; $13 checkscene: MACRO db checkscene_command - endm +ENDM enum setscene_command ; $14 setscene: MACRO db setscene_command db \1 ; scene_id - endm +ENDM enum writebyte_command ; $15 writebyte: MACRO db writebyte_command db \1 ; value - endm +ENDM enum addvar_command ; $16 addvar: MACRO db addvar_command db \1 ; value - endm +ENDM enum random_command ; $17 random: MACRO db random_command db \1 ; input - endm +ENDM enum checkver_command ; $18 checkver: MACRO db checkver_command - endm +ENDM enum copybytetovar_command ; $19 copybytetovar: MACRO db copybytetovar_command dw \1 ; address - endm +ENDM enum copyvartobyte_command ; $1a copyvartobyte: MACRO db copyvartobyte_command dw \1 ; address - endm +ENDM enum loadvar_command ; $1b loadvar: MACRO db loadvar_command dw \1 ; address db \2 ; value - endm +ENDM enum checkcode_command ; $1c checkcode: MACRO db checkcode_command db \1 ; variable_id - endm +ENDM enum writevarcode_command ; $1d writevarcode: MACRO db writevarcode_command db \1 ; variable_id - endm +ENDM enum writecode_command ; $1e writecode: MACRO db writecode_command db \1 ; variable_id db \2 ; value - endm +ENDM enum giveitem_command ; $1f giveitem: MACRO @@ -206,7 +206,7 @@ if _NARG == 2 else db 1 endc - endm +ENDM enum takeitem_command ; $20 takeitem: MACRO @@ -217,76 +217,76 @@ if _NARG == 2 else db 1 endc - endm +ENDM enum checkitem_command ; $21 checkitem: MACRO db checkitem_command db \1 ; item - endm +ENDM enum givemoney_command ; $22 givemoney: MACRO db givemoney_command db \1 ; account dt \2 ; money - endm +ENDM enum takemoney_command ; $23 takemoney: MACRO db takemoney_command db \1 ; account dt \2 ; money - endm +ENDM enum checkmoney_command ; $24 checkmoney: MACRO db checkmoney_command db \1 ; account dt \2 ; money - endm +ENDM enum givecoins_command ; $25 givecoins: MACRO db givecoins_command dw \1 ; coins - endm +ENDM enum takecoins_command ; $26 takecoins: MACRO db takecoins_command dw \1 ; coins - endm +ENDM enum checkcoins_command ; $27 checkcoins: MACRO db checkcoins_command dw \1 ; coins - endm +ENDM enum addcellnum_command ; $28 addcellnum: MACRO db addcellnum_command db \1 ; person - endm +ENDM enum delcellnum_command ; $29 delcellnum: MACRO db delcellnum_command db \1 ; person - endm +ENDM enum checkcellnum_command ; $2a checkcellnum: MACRO db checkcellnum_command db \1 ; person - endm +ENDM enum checktime_command ; $2b checktime: MACRO db checktime_command db \1 ; time - endm +ENDM checkmorn EQUS "checktime MORN" checkday EQUS "checktime DAY" @@ -296,7 +296,7 @@ checknite EQUS "checktime NITE" checkpoke: MACRO db checkpoke_command db \1 ; pkmn - endm +ENDM enum givepoke_command ; $2d givepoke: MACRO @@ -317,91 +317,91 @@ givepoke: MACRO else db 0, 0 endc - endm +ENDM enum giveegg_command ; $2e giveegg: MACRO db giveegg_command db \1 ; pkmn db \2 ; level - endm +ENDM enum givepokeitem_command ; $2f givepokeitem: MACRO db givepokeitem_command dw \1 ; pointer - endm +ENDM enum checkpokeitem_command ; $30 checkpokeitem: MACRO db checkpokeitem_command dw \1 ; pointer - endm +ENDM enum checkevent_command ; $31 checkevent: MACRO db checkevent_command dw \1 ; event_flag - endm +ENDM enum clearevent_command ; $32 clearevent: MACRO db clearevent_command dw \1 ; event_flag - endm +ENDM enum setevent_command ; $33 setevent: MACRO db setevent_command dw \1 ; event_flag - endm +ENDM enum checkflag_command ; $34 checkflag: MACRO db checkflag_command dw \1 ; engine_flag - endm +ENDM enum clearflag_command ; $35 clearflag: MACRO db clearflag_command dw \1 ; engine_flag - endm +ENDM enum setflag_command ; $36 setflag: MACRO db setflag_command dw \1 ; engine_flag - endm +ENDM enum wildon_command ; $37 wildon: MACRO db wildon_command - endm +ENDM enum wildoff_command ; $38 wildoff: MACRO db wildoff_command - endm +ENDM enum xycompare_command ; $39 xycompare: MACRO db xycompare_command dw \1 ; pointer - endm +ENDM enum warpmod_command ; $3a warpmod: MACRO db warpmod_command db \1 ; warp_id map \2 ; map - endm +ENDM enum blackoutmod_command ; $3b blackoutmod: MACRO db blackoutmod_command map \1 ; map - endm +ENDM enum warp_command ; $3c warp: MACRO @@ -409,46 +409,46 @@ warp: MACRO map \1 ; map db \2 ; x db \3 ; y - endm +ENDM enum readmoney_command ; $3d readmoney: MACRO db readmoney_command db \1 ; account db \2 ; memory - endm +ENDM enum readcoins_command ; $3e readcoins: MACRO db readcoins_command db \1 ; memory - endm +ENDM enum RAM2MEM_command ; $3f RAM2MEM: MACRO db RAM2MEM_command db \1 ; memory - endm +ENDM enum pokenamemem_command ; $40 pokenamemem: MACRO db pokenamemem_command db \1 ; pokemon db \2 ; memory - endm +ENDM enum itemtotext_command ; $41 itemtotext: MACRO db itemtotext_command db \1 ; item db \2 ; memory - endm +ENDM enum mapnametotext_command ; $42 mapnametotext: MACRO db mapnametotext_command db \1 ; memory - endm +ENDM enum trainertotext_command ; $43 trainertotext: MACRO @@ -456,273 +456,273 @@ trainertotext: MACRO db \1 ; trainer_id db \2 ; trainer_group db \3 ; memory - endm +ENDM enum stringtotext_command ; $44 stringtotext: MACRO db stringtotext_command dw \1 ; text_pointer db \2 ; memory - endm +ENDM enum itemnotify_command ; $45 itemnotify: MACRO db itemnotify_command - endm +ENDM enum pocketisfull_command ; $46 pocketisfull: MACRO db pocketisfull_command - endm +ENDM enum opentext_command ; $47 opentext: MACRO db opentext_command - endm +ENDM enum refreshscreen_command ; $48 refreshscreen: MACRO db refreshscreen_command db \1 ; dummy - endm +ENDM enum closetext_command ; $49 closetext: MACRO db closetext_command - endm +ENDM enum loadbytec2cf_command ; $4a loadbytec2cf: MACRO db loadbytec2cf_command db \1 ; byte - endm +ENDM enum farwritetext_command ; $4b farwritetext: MACRO db farwritetext_command dba \1 - endm +ENDM enum writetext_command ; $4c writetext: MACRO db writetext_command dw \1 ; text_pointer - endm +ENDM enum repeattext_command ; $4d repeattext: MACRO db repeattext_command db \1 ; byte db \2 ; byte - endm +ENDM enum yesorno_command ; $4e yesorno: MACRO db yesorno_command - endm +ENDM enum loadmenudata_command ; $4f loadmenudata: MACRO db loadmenudata_command dw \1 ; data - endm +ENDM enum closewindow_command ; $50 closewindow: MACRO db closewindow_command - endm +ENDM enum jumptextfaceplayer_command ; $51 jumptextfaceplayer: MACRO db jumptextfaceplayer_command dw \1 ; text_pointer - endm +ENDM ; IF _CRYSTAL enum farjumptext_command ; $52 farjumptext: MACRO db farjumptext_command dba \1 - endm +ENDM ; ENDC enum jumptext_command ; $53 jumptext: MACRO db jumptext_command dw \1 ; text_pointer - endm +ENDM enum waitbutton_command ; $54 waitbutton: MACRO db waitbutton_command - endm +ENDM enum buttonsound_command ; $55 buttonsound: MACRO db buttonsound_command - endm +ENDM enum pokepic_command ; $56 pokepic: MACRO db pokepic_command db \1 ; pokemon - endm +ENDM enum closepokepic_command ; $57 closepokepic: MACRO db closepokepic_command - endm +ENDM enum _2dmenu_command ; $58 _2dmenu: MACRO db _2dmenu_command - endm +ENDM enum verticalmenu_command ; $59 verticalmenu: MACRO db verticalmenu_command - endm +ENDM enum loadpikachudata_command ; $5a loadpikachudata: MACRO db loadpikachudata_command - endm +ENDM enum randomwildmon_command ; $5b randomwildmon: MACRO db randomwildmon_command - endm +ENDM enum loadmemtrainer_command ; $5c loadmemtrainer: MACRO db loadmemtrainer_command - endm +ENDM enum loadwildmon_command ; $5d loadwildmon: MACRO db loadwildmon_command db \1 ; pokemon db \2 ; level - endm +ENDM enum loadtrainer_command ; $5e loadtrainer: MACRO db loadtrainer_command db \1 ; trainer_group db \2 ; trainer_id - endm +ENDM enum startbattle_command ; $5f startbattle: MACRO db startbattle_command - endm +ENDM enum reloadmapafterbattle_command ; $60 reloadmapafterbattle: MACRO db reloadmapafterbattle_command - endm +ENDM enum catchtutorial_command ; $61 catchtutorial: MACRO db catchtutorial_command db \1 ; byte - endm +ENDM enum trainertext_command ; $62 trainertext: MACRO db trainertext_command db \1 ; which_text - endm +ENDM enum trainerflagaction_command ; $63 trainerflagaction: MACRO db trainerflagaction_command db \1 ; action - endm +ENDM enum winlosstext_command ; $64 winlosstext: MACRO db winlosstext_command dw \1 ; win_text_pointer dw \2 ; loss_text_pointer - endm +ENDM enum scripttalkafter_command ; $65 scripttalkafter: MACRO db scripttalkafter_command - endm +ENDM enum end_if_just_battled_command ; $66 end_if_just_battled: MACRO db end_if_just_battled_command - endm +ENDM enum check_just_battled_command ; $67 check_just_battled: MACRO db check_just_battled_command - endm +ENDM enum setlasttalked_command ; $68 setlasttalked: MACRO db setlasttalked_command db \1 ; object id - endm +ENDM enum applymovement_command ; $69 applymovement: MACRO db applymovement_command db \1 ; object id dw \2 ; data - endm +ENDM enum applymovement2_command ; $6a applymovement2: MACRO db applymovement2_command dw \1 ; data - endm +ENDM enum faceplayer_command ; $6b faceplayer: MACRO db faceplayer_command - endm +ENDM enum faceobject_command ; $6c faceobject: MACRO db faceobject_command db \1 ; object1 db \2 ; object2 - endm +ENDM enum variablesprite_command ; $6d variablesprite: MACRO db variablesprite_command db \1 - SPRITE_VARS ; byte db \2 ; sprite - endm +ENDM enum disappear_command ; $6e disappear: MACRO db disappear_command db \1 ; object id - endm +ENDM enum appear_command ; $6f appear: MACRO db appear_command db \1 ; object id - endm +ENDM enum follow_command ; $70 follow: MACRO db follow_command db \1 ; object2 db \2 ; object1 - endm +ENDM enum stopfollow_command ; $71 stopfollow: MACRO db stopfollow_command - endm +ENDM enum moveobject_command ; $72 moveobject: MACRO @@ -730,19 +730,19 @@ moveobject: MACRO db \1 ; object id db \2 ; x db \3 ; y - endm +ENDM enum writeobjectxy_command ; $73 writeobjectxy: MACRO db writeobjectxy_command db \1 ; object id - endm +ENDM enum loademote_command ; $74 loademote: MACRO db loademote_command db \1 ; bubble - endm +ENDM enum showemote_command ; $75 showemote: MACRO @@ -750,34 +750,34 @@ showemote: MACRO db \1 ; bubble db \2 ; object id db \3 ; time - endm +ENDM enum spriteface_command ; $76 spriteface: MACRO db spriteface_command db \1 ; object id db \2 ; facing - endm +ENDM enum follownotexact_command ; $77 follownotexact: MACRO db follownotexact_command db \1 ; object2 db \2 ; object1 - endm +ENDM enum earthquake_command ; $78 earthquake: MACRO db earthquake_command db \1 ; param - endm +ENDM enum changemap_command ; $79 changemap: MACRO db changemap_command db \1 ; map_bank dw \2 ; map_data_pointer - endm +ENDM enum changeblock_command ; $7a changeblock: MACRO @@ -785,205 +785,205 @@ changeblock: MACRO db \1 ; x db \2 ; y db \3 ; block - endm +ENDM enum reloadmap_command ; $7b reloadmap: MACRO db reloadmap_command - endm +ENDM enum reloadmappart_command ; $7c reloadmappart: MACRO db reloadmappart_command - endm +ENDM enum writecmdqueue_command ; $7d writecmdqueue: MACRO db writecmdqueue_command dw \1 ; queue_pointer - endm +ENDM enum delcmdqueue_command ; $7e delcmdqueue: MACRO db delcmdqueue_command db \1 ; byte - endm +ENDM enum playmusic_command ; $7f playmusic: MACRO db playmusic_command dw \1 ; music_pointer - endm +ENDM enum encountermusic_command ; $80 encountermusic: MACRO db encountermusic_command - endm +ENDM enum musicfadeout_command ; $81 musicfadeout: MACRO db musicfadeout_command dw \1 ; music db \2 ; fadetime - endm +ENDM enum playmapmusic_command ; $82 playmapmusic: MACRO db playmapmusic_command - endm +ENDM enum dontrestartmapmusic_command ; $83 dontrestartmapmusic: MACRO db dontrestartmapmusic_command - endm +ENDM enum cry_command ; $84 cry: MACRO db cry_command dw \1 ; cry_id - endm +ENDM enum playsound_command ; $85 playsound: MACRO db playsound_command dw \1 ; sound_pointer - endm +ENDM enum waitsfx_command ; $86 waitsfx: MACRO db waitsfx_command - endm +ENDM enum warpsound_command ; $87 warpsound: MACRO db warpsound_command - endm +ENDM enum specialsound_command ; $88 specialsound: MACRO db specialsound_command - endm +ENDM enum passtoengine_command ; $89 passtoengine: MACRO db passtoengine_command db \1 ; data_pointer - endm +ENDM enum newloadmap_command ; $8a newloadmap: MACRO db newloadmap_command db \1 ; which_method - endm +ENDM enum pause_command ; $8b pause: MACRO db pause_command db \1 ; length - endm +ENDM enum deactivatefacing_command ; $8c deactivatefacing: MACRO db deactivatefacing_command db \1 ; time - endm +ENDM enum priorityjump_command ; $8d priorityjump: MACRO db priorityjump_command dw \1 ; pointer - endm +ENDM enum warpcheck_command ; $8e warpcheck: MACRO db warpcheck_command - endm +ENDM enum ptpriorityjump_command ; $8f ptpriorityjump: MACRO db ptpriorityjump_command dw \1 ; pointer - endm +ENDM enum return_command ; $90 return: MACRO db return_command - endm +ENDM enum end_command ; $91 end: MACRO db end_command - endm +ENDM enum reloadandreturn_command ; $92 reloadandreturn: MACRO db reloadandreturn_command db \1 ; which_method - endm +ENDM enum end_all_command ; $93 end_all: MACRO db end_all_command - endm +ENDM enum pokemart_command ; $94 pokemart: MACRO db pokemart_command db \1 ; dialog_id dw \2 ; mart_id - endm +ENDM enum elevator_command ; $95 elevator: MACRO db elevator_command dw \1 ; floor_list_pointer - endm +ENDM enum trade_command ; $96 trade: MACRO db trade_command db \1 ; trade_id - endm +ENDM enum askforphonenumber_command ; $97 askforphonenumber: MACRO db askforphonenumber_command db \1 ; number - endm +ENDM enum phonecall_command ; $98 phonecall: MACRO db phonecall_command dw \1 ; caller_name - endm +ENDM enum hangup_command ; $99 hangup: MACRO db hangup_command - endm +ENDM enum describedecoration_command ; $9a describedecoration: MACRO db describedecoration_command db \1 ; byte - endm +ENDM enum fruittree_command ; $9b fruittree: MACRO db fruittree_command db \1 ; tree_id - endm +ENDM enum specialphonecall_command ; $9c specialphonecall: MACRO db specialphonecall_command dw \1 ; call_id - endm +ENDM enum checkphonecall_command ; $9d checkphonecall: MACRO db checkphonecall_command - endm +ENDM enum verbosegiveitem_command ; $9e verbosegiveitem: MACRO @@ -994,31 +994,31 @@ if _NARG == 2 else db 1 endc - endm +ENDM enum verbosegiveitem2_command ; $9f verbosegiveitem2: MACRO db verbosegiveitem2_command db \1 ; item db \2 ; var - endm +ENDM enum swarm_command ; $a0 swarm: MACRO db swarm_command db \1 ; flag map \2 ; map - endm +ENDM enum halloffame_command ; $a1 halloffame: MACRO db halloffame_command - endm +ENDM enum credits_command ; $a2 credits: MACRO db credits_command - endm +ENDM enum warpfacing_command ; $a3 warpfacing: MACRO @@ -1027,27 +1027,27 @@ warpfacing: MACRO map \2 ; map db \3 ; x db \4 ; y - endm +ENDM enum battletowertext_command ; $a4 battletowertext: MACRO db battletowertext_command db \1 ; memory - endm +ENDM enum landmarktotext_command ; $a5 landmarktotext: MACRO db landmarktotext_command db \1 ; id db \2 ; memory - endm +ENDM enum trainerclassname_command ; $a6 trainerclassname: MACRO db trainerclassname_command db \1 ; id db \2 ; memory - endm +ENDM enum name_command ; $a7 name: MACRO @@ -1055,15 +1055,15 @@ name: MACRO db \1 ; type db \2 ; id db \3 ; memory - endm +ENDM enum wait_command ; $a8 wait: MACRO db wait_command db \1 ; duration - endm +ENDM enum check_save_command ; $a9 check_save: MACRO db check_save_command - endm +ENDM |