So flags 1171 and 1170 are set before this script. It goes directly to the offset after the checkitem ... even though the player has to go get the item and doesn't have the item yet ... any help?
(All offsets with nothing afterwards are just text offsets, removed text)
(All offsets with nothing afterwards are just text offsets, removed text)
Spoiler:
#dynamic 0x102BD6A
#org @event
checkflag 0x1170
if 0x1 goto @next
lock
faceplayer
msgbox @gl 0x6
release
end
#org @donewith
lock
faceplayer
msgbox @poop 0x6
release
end
#org @poop
#org @gl
#org @next2
checkflag 0x1172
if 0x1 goto @donewith
lock
faceplayer
sound 0x15
applymovement 0x1 @woo
waitmovement 0x0
msgbox @youdid 0x6
removeitem 0x116 0x1
givemoney 0x1F4 0x0
sound 0xFF
msgbox @monayy 0x6
msgbox @thats 0x6
cry 0x84 0x0
msgbox @huh 0x6
copyvar 0x8000 PLAYERFACING
compare 0x8000 0x2
if 0x1 goto @downer
copyvar 0x8000 PLAYERFACING
compare 0x8000 0x4
if 0x1 goto @lefter
release
end
#org @lefter
clearflag 0x1171
hidesprite 0x7
applymovement 0x7 @godown
waitmovement 0x0
showsprite 0x7
sound 0x15
applymovement 0x1 @downagain
waitmovement 0x0
msgbox @noway 0x6
cry 0x84 0x0
applymovement 0x7 @ditto2
waitmovement 0x0
hidesprite 0x7
setflag 0x1171
msgbox @dissa 0x6
sound 0x18C
msgbox @didgood 0x6
fadedefault
addvar 0x40FE 0x1
setflag 0x1172
release
end
#org @godown
#raw 0x08
#raw 0x55
#raw 0x08
#raw 0xFE
#org @downagain
#raw 0x56
#raw 0x00
#raw 0xFE
#org @ditto2
#raw 0x08
#raw 0x0A
#raw 0x08
#raw 0x54
#raw 0xFE
#org @downer
clearflag 0x1171
hidesprite 0x7
applymovement 0x7 @goleft
waitmovement 0x0
showsprite 0x7
sound 0x15
applymovement 0x1 @leftagain
waitmovement 0x0
msgbox @noway 0x6
cry 0x84 0x0
applymovement 0x7 @ditto
waitmovement 0x0
hidesprite 0x7
setflag 0x1171
msgbox @dissa 0x6
sound 0x18C
msgbox @didgood 0x6
fadedefault
addvar 0x40FE 0x1
setflag 0x1172
release
end
#org @didgood
#org @dissa
#org @ditto
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x54
#raw 0xFE
#org @noway
#org @leftagain
#raw 0x56
#raw 0x02
#raw 0xFE
#org @goleft
#raw 0x0A
#raw 0x55
#raw 0x0A
#raw 0xFE
#org @huh
#org @thats
#org @monayy
#org @youdid
#org @woo
#raw 0x56
#raw 0xFE
#org @next
checkitem 0x173 0x1
if 0x1 goto @next2
lock
faceplayer
msgbox @talk 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
compare LASTRESULT 0x0
if 0x1 goto @no
msgbox @darn 0x6
release
end
#org @talk
#org @yes
clearflag 0x1170
setflag 0x45A
lock
faceplayer
msgbox @ty 0x6
release
end
#org @ty
#org @no
lock
faceplayer
msgbox @darn 0x6
release
end
#org @darn
#org @event
checkflag 0x1170
if 0x1 goto @next
lock
faceplayer
msgbox @gl 0x6
release
end
#org @donewith
lock
faceplayer
msgbox @poop 0x6
release
end
#org @poop
#org @gl
#org @next2
checkflag 0x1172
if 0x1 goto @donewith
lock
faceplayer
sound 0x15
applymovement 0x1 @woo
waitmovement 0x0
msgbox @youdid 0x6
removeitem 0x116 0x1
givemoney 0x1F4 0x0
sound 0xFF
msgbox @monayy 0x6
msgbox @thats 0x6
cry 0x84 0x0
msgbox @huh 0x6
copyvar 0x8000 PLAYERFACING
compare 0x8000 0x2
if 0x1 goto @downer
copyvar 0x8000 PLAYERFACING
compare 0x8000 0x4
if 0x1 goto @lefter
release
end
#org @lefter
clearflag 0x1171
hidesprite 0x7
applymovement 0x7 @godown
waitmovement 0x0
showsprite 0x7
sound 0x15
applymovement 0x1 @downagain
waitmovement 0x0
msgbox @noway 0x6
cry 0x84 0x0
applymovement 0x7 @ditto2
waitmovement 0x0
hidesprite 0x7
setflag 0x1171
msgbox @dissa 0x6
sound 0x18C
msgbox @didgood 0x6
fadedefault
addvar 0x40FE 0x1
setflag 0x1172
release
end
#org @godown
#raw 0x08
#raw 0x55
#raw 0x08
#raw 0xFE
#org @downagain
#raw 0x56
#raw 0x00
#raw 0xFE
#org @ditto2
#raw 0x08
#raw 0x0A
#raw 0x08
#raw 0x54
#raw 0xFE
#org @downer
clearflag 0x1171
hidesprite 0x7
applymovement 0x7 @goleft
waitmovement 0x0
showsprite 0x7
sound 0x15
applymovement 0x1 @leftagain
waitmovement 0x0
msgbox @noway 0x6
cry 0x84 0x0
applymovement 0x7 @ditto
waitmovement 0x0
hidesprite 0x7
setflag 0x1171
msgbox @dissa 0x6
sound 0x18C
msgbox @didgood 0x6
fadedefault
addvar 0x40FE 0x1
setflag 0x1172
release
end
#org @didgood
#org @dissa
#org @ditto
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x54
#raw 0xFE
#org @noway
#org @leftagain
#raw 0x56
#raw 0x02
#raw 0xFE
#org @goleft
#raw 0x0A
#raw 0x55
#raw 0x0A
#raw 0xFE
#org @huh
#org @thats
#org @monayy
#org @youdid
#org @woo
#raw 0x56
#raw 0xFE
#org @next
checkitem 0x173 0x1
if 0x1 goto @next2
lock
faceplayer
msgbox @talk 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
compare LASTRESULT 0x0
if 0x1 goto @no
msgbox @darn 0x6
release
end
#org @talk
#org @yes
clearflag 0x1170
setflag 0x45A
lock
faceplayer
msgbox @ty 0x6
release
end
#org @ty
#org @no
lock
faceplayer
msgbox @darn 0x6
release
end
#org @darn