2018-06-25 00:10:37 +00:00
|
|
|
Script_AbortBugContest:
|
2017-12-17 00:00:50 +00:00
|
|
|
checkflag ENGINE_BUG_CONTEST_TIMER
|
|
|
|
iffalse .finish
|
|
|
|
setflag ENGINE_DAILY_BUG_CONTEST
|
2018-01-24 16:17:05 +00:00
|
|
|
special ContestReturnMons
|
2017-12-17 00:00:50 +00:00
|
|
|
.finish
|
|
|
|
end
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
FindItemInBallScript::
|
2015-11-11 21:11:08 +00:00
|
|
|
callasm .TryReceiveItem
|
|
|
|
iffalse .no_room
|
|
|
|
disappear LAST_TALKED
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2015-11-11 21:11:08 +00:00
|
|
|
writetext .text_found
|
|
|
|
playsound SFX_ITEM
|
|
|
|
pause 60
|
|
|
|
itemnotify
|
2015-11-25 15:16:29 +00:00
|
|
|
closetext
|
2015-11-11 21:11:08 +00:00
|
|
|
end
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
.no_room
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2015-11-11 21:11:08 +00:00
|
|
|
writetext .text_found
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2015-11-11 21:11:08 +00:00
|
|
|
writetext .text_bag_full
|
2015-11-25 15:16:29 +00:00
|
|
|
waitbutton
|
2015-11-11 21:11:08 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
.text_found
|
2015-11-11 21:11:08 +00:00
|
|
|
; found @ !
|
2018-10-28 16:16:55 +00:00
|
|
|
text_far UnknownText_0x1c0a1c
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end
|
2015-11-11 21:11:08 +00:00
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
.text_bag_full
|
2015-11-11 21:11:08 +00:00
|
|
|
; But can't carry any more items.
|
2018-10-28 16:16:55 +00:00
|
|
|
text_far UnknownText_0x1c0a2c
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end
|
2015-11-11 21:11:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
.TryReceiveItem:
|
2015-11-11 21:11:08 +00:00
|
|
|
xor a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wScriptVar], a
|
|
|
|
ld a, [wEngineBuffer1]
|
2015-12-19 01:07:09 +00:00
|
|
|
ld [wNamedObjectIndexBuffer], a
|
2015-11-11 21:11:08 +00:00
|
|
|
call GetItemName
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wStringBuffer3
|
2015-11-11 21:11:08 +00:00
|
|
|
call CopyName2
|
2018-01-23 22:39:09 +00:00
|
|
|
ld a, [wEngineBuffer1]
|
|
|
|
ld [wCurItem], a
|
|
|
|
ld a, [wCurFruit]
|
2015-11-11 21:11:08 +00:00
|
|
|
ld [wItemQuantityChangeBuffer], a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wNumItems
|
2015-11-11 21:11:08 +00:00
|
|
|
call ReceiveItem
|
|
|
|
ret nc
|
|
|
|
ld a, $1
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wScriptVar], a
|
2015-11-11 21:11:08 +00:00
|
|
|
ret
|