2018-06-24 17:10:37 -07:00
|
|
|
Script_AbortBugContest:
|
2017-12-16 16:00:50 -08:00
|
|
|
checkflag ENGINE_BUG_CONTEST_TIMER
|
|
|
|
iffalse .finish
|
|
|
|
setflag ENGINE_DAILY_BUG_CONTEST
|
2018-01-24 08:17:05 -08:00
|
|
|
special ContestReturnMons
|
2017-12-16 16:00:50 -08:00
|
|
|
.finish
|
|
|
|
end
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
FindItemInBallScript::
|
2015-11-11 13:11:08 -08:00
|
|
|
callasm .TryReceiveItem
|
|
|
|
iffalse .no_room
|
|
|
|
disappear LAST_TALKED
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2019-10-20 15:24:17 -07:00
|
|
|
writetext .FoundItemText
|
2015-11-11 13:11:08 -08:00
|
|
|
playsound SFX_ITEM
|
|
|
|
pause 60
|
|
|
|
itemnotify
|
2015-11-25 07:16:29 -08:00
|
|
|
closetext
|
2015-11-11 13:11:08 -08:00
|
|
|
end
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
.no_room
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2019-10-20 15:24:17 -07:00
|
|
|
writetext .FoundItemText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2019-10-20 15:24:17 -07:00
|
|
|
writetext .CantCarryItemText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2015-11-11 13:11:08 -08:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2019-10-20 15:24:17 -07:00
|
|
|
.FoundItemText:
|
|
|
|
text_far _FoundItemText
|
2018-11-17 10:33:03 -08:00
|
|
|
text_end
|
2015-11-11 13:11:08 -08:00
|
|
|
|
2019-10-20 15:24:17 -07:00
|
|
|
.CantCarryItemText:
|
|
|
|
text_far _CantCarryItemText
|
2018-11-17 10:33:03 -08:00
|
|
|
text_end
|
2015-11-11 13:11:08 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
.TryReceiveItem:
|
2015-11-11 13:11:08 -08:00
|
|
|
xor a
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wScriptVar], a
|
2019-04-08 15:50:10 -07:00
|
|
|
ld a, [wItemBallItemID]
|
2015-12-18 17:07:09 -08:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-11-11 13:11:08 -08:00
|
|
|
call GetItemName
|
2018-01-23 14:39:09 -08:00
|
|
|
ld hl, wStringBuffer3
|
2015-11-11 13:11:08 -08:00
|
|
|
call CopyName2
|
2019-04-08 15:50:10 -07:00
|
|
|
ld a, [wItemBallItemID]
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wCurItem], a
|
2019-04-08 15:50:10 -07:00
|
|
|
ld a, [wItemBallQuantity]
|
2015-11-11 13:11:08 -08:00
|
|
|
ld [wItemQuantityChangeBuffer], a
|
2018-01-23 14:39:09 -08:00
|
|
|
ld hl, wNumItems
|
2015-11-11 13:11:08 -08:00
|
|
|
call ReceiveItem
|
|
|
|
ret nc
|
|
|
|
ld a, $1
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wScriptVar], a
|
2015-11-11 13:11:08 -08:00
|
|
|
ret
|