View Single Post
  #7575    
Old January 22nd, 2013 (04:04 PM).
Noossab Blue's Avatar
Noossab Blue
 
Join Date: Dec 2012
Location: USA
Gender: Female
Nature: Quirky
Thanks Doesnt and karatekid.

But now I'm having one small problem...

I'm copying the original mart text verbatim, only changing the beginning offset and the offset of the mart items (and of course, the mart items themselves). But now, when I test the marts in-game, some of them work and others don't bring up the buy menu, seemingly at random...

Here's an example of one that works:

Code:
'-----------------------
#org 0x8022B2
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
lock
faceplayer
msgbox2 0x81A6211 '"Hi, there!\nMay I help you?"
waitmsgbox
pokemart 0x88022DA
msgbox 0x81A5190 '"Please come again!"
callstd 0x4
release
end

'-----------------------
#org 0x1A7AE0
release
end


'-----------
' MartItems
'-----------
#org 0x8022DA
#raw word 12C
#raw word 14D
#raw word 142
#raw word 148
#raw word 129
#raw word 147
#raw word 0


'---------
' Strings
'---------
#org 0x1A6211
= Hi, there!\nMay I help you?

#org 0x1A5190
= Please come again!
And here is one that doesn't:

Code:
'-----------------------
#org 0x802337
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
lock
faceplayer
msgbox2 0x880236A '"Hi, there!\nMay I help you?"
waitmsgbox
pokemart 0x880235F
msgbox 0x81A5190 '"Please come again!"
callstd 0x4
release
end

'-----------------------
#org 0x1A7AE0
release
end


'-----------
' MartItems
'-----------
#org 0x80235F
#raw word 124
#raw word 128
#raw word 130
#raw word 141
#raw word 0


'---------
' Strings
'---------
#org 0x80236A
= Hi, there!\nMay I help you?

#org 0x1A5190
= Please come again!
__________________
IGN: Anna/Noossab Blue
3DS FC: 3196 3609 8450

Thanks to SilverGrey for the awesome banner! Click to see!
Current as of 1/31/14: I updated again!