View Single Post
  #7221    
Old August 20th, 2012, 10:30 AM
machomuu's Avatar
machomuu
Fueled by Pepsi
Community Supporter
 
Join Date: Apr 2008
Location: 'Murca
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by RetroRoller View Post
I decompiled this after it didn't work in game. The Overworld moves fine, but when the first msgbox is about to appear, you're frozen in place and the message box does not appear.
Also, does anyone know how to play the 'itemobtained!' fanfare when you're setting a flag? (Giving the player the running shoes)

My first assumption was the offset I used ran out of free-space, so it wouldn't work so I changed it. It still didn't work.

Thanks.
Spoiler:
'---------------
#org 0x161400
checkflag 0x1001
if 0x1 goto 0x8800495
lock
applymovement 0x2 0x8800498
waitmovement 0x2
msgbox 0x88004A1 0x2 '"[red_fr]Dad:[blue_fr] [player]!\nY..."
msgbox 0x880053D MSG_NORMAL '"You received the Running Shoes\nfr..."
setflag 0x82F
msgbox 0x8800568 0x2 '"[red_fr]Dad:[blue_fr] Isn't it gre..."
applymovement 0x2 0x8800605
release
end

'---------------
#org 0x800495
release
end


'---------
' Strings
'---------
#org 0x8004A1
= [red_fr]Dad:[blue_fr] [player]!\nYou're awake!\pBecause you're graduating Trainer\nSchool today, I'd like to give you\la present to help you on your\ladventure.\pHere, open it!

#org 0x80053D
= You received the Running Shoes\nfrom Dad!

#org 0x800568
= [red_fr]Dad:[blue_fr] Isn't it great? There's a\nlabel attached to it too.\p[red_fr]If you're using\nVisualBoyAdvance, the default\lrunning control is holding down\lthe X key.


'-----------
' Movements
'-----------
#org 0x800498
#raw 0x62 'Exclamation Mark (!)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)

#org 0x800605
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x3 'Face Right
Try using msgbox 0x6 rather than 0x2.
__________________