mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Use a 'trainer' macro for trainers in scripts/
This commit is contained in:
parent
be326c6565
commit
5c0f33cb53
71 changed files with 413 additions and 2645 deletions
|
|
@ -47,6 +47,27 @@ warp_to: MACRO
|
|||
event_displacement \3, \1, \2
|
||||
ENDM
|
||||
|
||||
|
||||
;\1 event flag
|
||||
;\2 view range
|
||||
;\3 TextBeforeBattle
|
||||
;\4 TextAfterBattle
|
||||
;\5 TextEndBattle
|
||||
trainer: MACRO
|
||||
IF _NARG > 5
|
||||
dbEventFlagBit \1, \2
|
||||
db (\3 << 4)
|
||||
dwEventFlagAddress \1, \2
|
||||
SHIFT
|
||||
ELSE
|
||||
dbEventFlagBit \1
|
||||
db (\2 << 4)
|
||||
dwEventFlagAddress \1
|
||||
ENDC
|
||||
dw \3, \5, \4, \4
|
||||
ENDM
|
||||
|
||||
|
||||
;\1 map name
|
||||
;\2 map id
|
||||
;\3 tileset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue