Trainer data structure and field move functions

Trainer data in map scripts is now a macro-defined structure.

Field move functions in main.asm are now nearly completely annotated, with local references.

Trailing white space deleted.
This commit is contained in:
PikalaxALT
2015-07-18 23:45:39 -04:00
parent e674869018
commit 60cd04b023
116 changed files with 2148 additions and 8705 deletions

View File

@@ -36,23 +36,7 @@ BrockScript_0x1a2864:
end
TrainerCamperJerry:
; bit/flag number
dw EVENT_BEAT_CAMPER_JERRY
; trainer group && trainer id
db CAMPER, JERRY
; text when seen
dw CamperJerrySeenText
; text when trainer beaten
dw CamperJerryBeatenText
; script when lost
dw $0000
; script when talk again
dw CamperJerryScript
trainer EVENT_BEAT_CAMPER_JERRY, CAMPER, JERRY, CamperJerrySeenText, CamperJerryBeatenText, $0000, CamperJerryScript
CamperJerryScript:
talkaftercancel