Merge pull request #1904 from GriffinRichards/temp-alias
Add temp flag and var aliases
This commit is contained in:
@@ -743,37 +743,36 @@ EventScript_TradeCenter_Chair3::
|
||||
waitstate
|
||||
end
|
||||
|
||||
@ VAR_TEMP_1 for below scripts set by ReceiveGiftItem
|
||||
EventScript_RecordCenter_Spot0::
|
||||
setvar VAR_0x8005, 0
|
||||
special RecordMixingPlayerSpotTriggered
|
||||
waitstate
|
||||
goto_if_ne VAR_TEMP_1, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
goto_if_ne VAR_TEMP_RECORD_MIX_GIFT_ITEM, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
end
|
||||
|
||||
EventScript_RecordCenter_Spot1::
|
||||
setvar VAR_0x8005, 1
|
||||
special RecordMixingPlayerSpotTriggered
|
||||
waitstate
|
||||
goto_if_ne VAR_TEMP_1, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
goto_if_ne VAR_TEMP_RECORD_MIX_GIFT_ITEM, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
end
|
||||
|
||||
EventScript_RecordCenter_Spot2::
|
||||
setvar VAR_0x8005, 2
|
||||
special RecordMixingPlayerSpotTriggered
|
||||
waitstate
|
||||
goto_if_ne VAR_TEMP_1, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
goto_if_ne VAR_TEMP_RECORD_MIX_GIFT_ITEM, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
end
|
||||
|
||||
EventScript_RecordCenter_Spot3::
|
||||
setvar VAR_0x8005, 3
|
||||
special RecordMixingPlayerSpotTriggered
|
||||
waitstate
|
||||
goto_if_ne VAR_TEMP_1, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
goto_if_ne VAR_TEMP_RECORD_MIX_GIFT_ITEM, ITEM_NONE, RecordCorner_EventScript_ReceivedGiftItem
|
||||
end
|
||||
|
||||
RecordCorner_EventScript_ReceivedGiftItem::
|
||||
bufferitemname STR_VAR_2, VAR_TEMP_1
|
||||
bufferitemname STR_VAR_2, VAR_TEMP_RECORD_MIX_GIFT_ITEM
|
||||
message RecordCorner_Text_PlayerSentOverOneX
|
||||
waitmessage
|
||||
waitbuttonpress
|
||||
@@ -814,7 +813,7 @@ TradeCenter_EventScript_Attendant::
|
||||
end
|
||||
|
||||
RecordCorner_EventScript_Attendant::
|
||||
goto_if_ne VAR_TEMP_0, 0, RecordCorner_EventScript_AlreadyMixed
|
||||
goto_if_ne VAR_TEMP_MIXED_RECORDS, 0, RecordCorner_EventScript_AlreadyMixed
|
||||
special Script_FacePlayer
|
||||
message RecordCorner_Text_TakeSeatAndWait
|
||||
waitmessage
|
||||
|
||||
@@ -202,7 +202,7 @@ GabbyAndTy_EventScript_FirstInterview::
|
||||
call_if_eq VAR_FACING, DIR_NORTH, GabbyAndTy_EventScript_FacePlayerNorth
|
||||
call_if_eq VAR_FACING, DIR_SOUTH, GabbyAndTy_EventScript_FacePlayerSouth
|
||||
call_if_eq VAR_FACING, DIR_EAST, GabbyAndTy_EventScript_FacePlayerEast
|
||||
goto_if_set FLAG_TEMP_1, GabbyAndTy_EventScript_KeepingAnEyeOutForYou
|
||||
goto_if_set FLAG_TEMP_SKIP_GABBY_INTERVIEW, GabbyAndTy_EventScript_KeepingAnEyeOutForYou
|
||||
msgbox GabbyAndTy_Text_WhoAreYouInterview, MSGBOX_YESNO
|
||||
goto GabbyAndTy_EventScript_Interview
|
||||
end
|
||||
@@ -230,7 +230,7 @@ GabbyAndTy_EventScript_RequestInterview::
|
||||
call_if_eq VAR_FACING, DIR_NORTH, GabbyAndTy_EventScript_FacePlayerNorth
|
||||
call_if_eq VAR_FACING, DIR_SOUTH, GabbyAndTy_EventScript_FacePlayerSouth
|
||||
call_if_eq VAR_FACING, DIR_EAST, GabbyAndTy_EventScript_FacePlayerEast
|
||||
goto_if_set FLAG_TEMP_1, GabbyAndTy_EventScript_KeepingAnEyeOutForYou
|
||||
goto_if_set FLAG_TEMP_SKIP_GABBY_INTERVIEW, GabbyAndTy_EventScript_KeepingAnEyeOutForYou
|
||||
specialvar VAR_RESULT, GabbyAndTyGetLastQuote
|
||||
goto_if_eq VAR_RESULT, 0, GabbyAndTy_EventScript_DidntInterviewLastTime
|
||||
msgbox GabbyAndTy_Text_QuoteFromLastInterview, MSGBOX_DEFAULT
|
||||
@@ -295,13 +295,13 @@ GabbyAndTy_EventScript_Interview::
|
||||
goto_if_eq VAR_RESULT, 0, GabbyAndTy_EventScript_DontGiveUpKeepingEyeOut
|
||||
msgbox GabbyAndTy_Text_PerfectWellBeSeeingYou, MSGBOX_DEFAULT
|
||||
special GabbyAndTyAfterInterview
|
||||
setflag FLAG_TEMP_1
|
||||
setflag FLAG_TEMP_SKIP_GABBY_INTERVIEW
|
||||
release
|
||||
end
|
||||
|
||||
GabbyAndTy_EventScript_DontGiveUpKeepingEyeOut::
|
||||
msgbox GabbyAndTy_Text_DontGiveUpKeepingEyeOut, MSGBOX_DEFAULT
|
||||
setflag FLAG_TEMP_1
|
||||
setflag FLAG_TEMP_SKIP_GABBY_INTERVIEW
|
||||
release
|
||||
end
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ Common_EventScript_NameReceivedBoxMon::
|
||||
|
||||
Common_EventScript_TransferredToPC::
|
||||
bufferboxname STR_VAR_1, VAR_PC_BOX_TO_SEND_MON
|
||||
bufferspeciesname STR_VAR_2, VAR_TEMP_1
|
||||
bufferspeciesname STR_VAR_2, VAR_TEMP_TRANSFERRED_SPECIES
|
||||
call_if_unset FLAG_SYS_PC_LANETTE, EventScript_TransferredSomeonesPC
|
||||
call_if_set FLAG_SYS_PC_LANETTE, EventScript_TransferredLanettesPC
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user