Files
pokeplatinum/res/field/scripts/scripts_unk_0411.s
Eduardo Quezada 34369649a5
Some checks failed
build / build (push) Has been cancelled
Amity Square map script documentation + Scr commands (#481)
* Messages

* scrcmd_amity_square

* BufferItemNamePlural

* BufferAccessoryName

* CanFitAccessory

* FLAG_AMITY_SQUARE_MAN_GIFT_RECEIVED

* VAR_FOLLOWER_MON_PARTY_ID

* VAR_AMITY_SQUARE_GIFT_ID

* VAR_FOLLOWER_MON_SPECIES

* VAR_FOLLOWER_MON_NEXT_PICKUP_TYPE

* VAR_FOLLOWER_MON_PICKUP_ITEM_ID

* Organized sMonFindableAccessories

* VAR_FOLLOWER_MON_PICKUP_ACCESSORY_ID

* LOCALID_HAS_NATIONAL_DEX

* LOCALID_ITEM_OR_ACCESSORY_ID

* LOCALID_COUNT

* PICKUP_TYPE_ITEM

* PICKUP_TYPE_ACCESORY

* Gift Man

* Species-specific cases

* Static NPCs

* Party has species

* Follower messages

* Follower Pickup

* Receptionists

* GetSetNationalDexEnabled

* VAR_FOLLOWER_MON_ACTIVE

* Triggers

* National dex macros
2025-04-21 08:25:41 -07:00

118 lines
1.8 KiB
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/unk_0381.h"
.data
ScriptEntry _0012
ScriptEntry _00AB
ScriptEntry _004C
ScriptEntry _009D
ScriptEntryEnd
_0012:
BufferPlayerName 0
Message 0
ShowYesNoMenu VAR_RESULT
GoToIfEq VAR_RESULT, MENU_NO, _0031
GoTo _003E
End
_0031:
Message 2
WaitABXPadPress
CloseMessage
ReleaseAll
ReturnCommonScript
End
_003E:
Call _00E8
CloseMessage
ReleaseAll
ReturnCommonScript
End
_004C:
BufferPlayerName 0
GetPlayerGender VAR_RESULT
CallIfEq VAR_RESULT, GENDER_MALE, _0086
CallIfEq VAR_RESULT, GENDER_FEMALE, _008B
ShowYesNoMenu VAR_RESULT
GoToIfEq VAR_RESULT, MENU_NO, _0090
GoTo _009D
End
_0086:
Message 18
Return
_008B:
Message 19
Return
_0090:
Message 21
WaitABXPadPress
CloseMessage
ReleaseAll
ReturnCommonScript
End
_009D:
Call _0126
CloseMessage
ReleaseAll
ReturnCommonScript
End
_00AB:
Call _00B5
ReturnCommonScript
End
_00B5:
GetNationalDexEnabled VAR_RESULT
GoToIfEq VAR_RESULT, 0, _00D6
GoToIfEq VAR_RESULT, 1, _00DF
End
_00D6:
Message 43
GoTo _00E8
_00DF:
Message 44
GoTo _0126
_00E8:
GoToIfUnset FLAG_UNK_0x09BA, _0104
ScrCmd_1E8 VAR_RESULT
CallIfEq VAR_RESULT, 1, _0120
_0104:
ScrCmd_11E VAR_0x8004
BufferNumber 0, VAR_0x8004
Message 1
ScrCmd_123 0, VAR_RESULT
BufferPlayerName 0
MessageVar VAR_RESULT
WaitABPress
Return
_0120:
SetFlag FLAG_UNK_0x0110
Return
_0126:
ScrCmd_121 VAR_0x8004
GetPlayerGender VAR_0x8005
BufferNumber 0, VAR_0x8004
Message 20
ScrCmd_123 1, VAR_RESULT
BufferPlayerName 0
MessageVar VAR_RESULT
WaitABPress
Return
.byte 0
.byte 0