2013-06-11 01:56:34 +00:00
|
|
|
; script vars
|
2015-07-22 06:49:18 +00:00
|
|
|
PLAYER EQU 0
|
|
|
|
LAST_TALKED EQU -2
|
2015-07-10 02:08:03 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; GetVarAction arguments (see engine/variables.asm)
|
2015-07-10 02:08:03 +00:00
|
|
|
const_def
|
2015-11-16 16:53:26 +00:00
|
|
|
const VAR_STRINGBUFFER2 ; 00
|
|
|
|
const VAR_PARTYCOUNT ; 01
|
|
|
|
const VAR_BATTLERESULT ; 02
|
|
|
|
const VAR_BATTLETYPE ; 03
|
|
|
|
const VAR_TIMEOFDAY ; 04
|
|
|
|
const VAR_DEXCAUGHT ; 05
|
|
|
|
const VAR_DEXSEEN ; 06
|
|
|
|
const VAR_BADGES ; 07
|
|
|
|
const VAR_MOVEMENT ; 08
|
|
|
|
const VAR_FACING ; 09
|
|
|
|
const VAR_HOUR ; 0a
|
|
|
|
const VAR_WEEKDAY ; 0b
|
|
|
|
const VAR_MAPGROUP ; 0c
|
|
|
|
const VAR_MAPNUMBER ; 0d
|
|
|
|
const VAR_UNOWNCOUNT ; 0e
|
|
|
|
const VAR_ROOFPALETTE ; 0f
|
|
|
|
const VAR_BOXSPACE ; 10
|
|
|
|
const VAR_CONTESTMINUTES ; 11
|
|
|
|
const VAR_XCOORD ; 12
|
|
|
|
const VAR_YCOORD ; 13
|
|
|
|
const VAR_SPECIALPHONECALL ; 14
|
2015-12-01 20:35:28 +00:00
|
|
|
const VAR_BT_WIN_STREAK ; 15
|
2015-11-16 16:53:26 +00:00
|
|
|
const VAR_KURT_APRICORNS ; 16
|
|
|
|
const VAR_CALLERID ; 17
|
|
|
|
const VAR_BLUECARDBALANCE ; 18
|
|
|
|
const VAR_BUENASPASSWORD ; 19
|
|
|
|
const VAR_KENJI_BREAK ; 1a
|
|
|
|
NUM_VARS EQU const_value ; 1b
|
2015-10-24 14:34:19 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; variable action types
|
2015-10-24 14:34:19 +00:00
|
|
|
RETVAR_STRBUF2 EQU (0 << 6)
|
|
|
|
RETVAR_ADDR_DE EQU (1 << 6)
|
|
|
|
RETVAR_EXECUTE EQU (2 << 6)
|
2015-11-05 20:08:00 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; PlayerEventScriptPointers indexes (see engine/events.asm)
|
2017-12-29 16:15:01 +00:00
|
|
|
const_value set -1
|
2015-11-05 20:08:00 +00:00
|
|
|
const PLAYEREVENT_MAPSCRIPT
|
|
|
|
const PLAYEREVENT_NONE
|
|
|
|
const PLAYEREVENT_SEENBYTRAINER
|
|
|
|
const PLAYEREVENT_TALKTOTRAINER
|
|
|
|
const PLAYEREVENT_ITEMBALL
|
2015-11-12 04:38:57 +00:00
|
|
|
const PLAYEREVENT_CONNECTION
|
2015-11-05 20:08:00 +00:00
|
|
|
const PLAYEREVENT_WARP
|
|
|
|
const PLAYEREVENT_FALL
|
2015-11-11 21:11:08 +00:00
|
|
|
const PLAYEREVENT_WHITEOUT
|
2015-11-05 20:08:00 +00:00
|
|
|
const PLAYEREVENT_HATCH
|
2015-11-12 04:38:57 +00:00
|
|
|
const PLAYEREVENT_JOYCHANGEFACING
|
2015-11-05 20:08:00 +00:00
|
|
|
NUM_PLAYER_EVENTS EQU const_value
|