mirror of
https://github.com/pret/pokefirered.git
synced 2026-03-22 01:35:52 -05:00
61 lines
1.0 KiB
C++
61 lines
1.0 KiB
C++
Std_MsgboxNPC::
|
|
lock
|
|
faceplayer
|
|
message 0x0
|
|
waitmessage
|
|
waitbuttonpress
|
|
release
|
|
return
|
|
|
|
Std_MsgboxSign::
|
|
lockall
|
|
message 0x0
|
|
waitmessage
|
|
waitbuttonpress
|
|
releaseall
|
|
return
|
|
|
|
Std_MsgboxDefault::
|
|
message 0x0
|
|
waitmessage
|
|
waitbuttonpress
|
|
return
|
|
|
|
Std_MsgboxYesNo::
|
|
message 0x0
|
|
waitmessage
|
|
yesnobox 20, 8
|
|
return
|
|
|
|
Std_ReceivedItem::
|
|
textcolor NPC_TEXT_COLOR_NEUTRAL
|
|
call_if_eq VAR_0x8002, MUS_LEVEL_UP, EventScript_ReceivedItemFanfare1
|
|
call_if_eq VAR_0x8002, MUS_OBTAIN_KEY_ITEM, EventScript_ReceivedItemFanfare2
|
|
message 0x0
|
|
waitmessage
|
|
waitfanfare
|
|
call_if_eq VAR_0x8002, MUS_LEVEL_UP, EventScript_ReceivedItemWaitFanfare
|
|
putitemaway VAR_0x8000, VAR_0x8001
|
|
call EventScript_RestorePrevTextColor
|
|
return
|
|
|
|
EventScript_ReceivedItemFanfare1::
|
|
playfanfare MUS_LEVEL_UP
|
|
return
|
|
|
|
EventScript_ReceivedItemFanfare2::
|
|
playfanfare MUS_OBTAIN_KEY_ITEM
|
|
return
|
|
|
|
EventScript_ReceivedItemWaitFanfare::
|
|
delay 50
|
|
return
|
|
|
|
EventScript_UnusedReturn::
|
|
return
|
|
|
|
EventScript_AskSaveGame::
|
|
special Field_AskSaveTheGame
|
|
waitstate
|
|
return
|