The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script CFRU Mart Script (https://www.pokecommunity.com/showthread.php?t=453777)

GriloKapu June 11th, 2021 2:47 PM

CFRU Mart Script
 
I make a mart script with the new itens of CFRU but it is freezing in game. I checked the compiled script and the mart offset is empty.

Here's the script img

Someone can help me?

kalarie June 11th, 2021 3:52 PM

@GriloKapu

If that string is empty after compiling, you probably didn't compile the script correctly. Have you tried any scripting tutorial?

GriloKapu June 11th, 2021 4:35 PM

That's my script:

#dynamic 0x9D38A9
#org @start
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
lock
faceplayer
preparemsg 0x81A6211 '"Olá!\nComo posso ajudá-lo? "
waitmsg
pokemart @1
msgbox 0x81A5190 MSG_KEEPOPEN '"Volte sempre! "
release
end

#org @1
#raw word 0x2A3
#raw word 0x2B0
#raw word 0x2B1
#raw word 0x2B7
#raw word 0x2B8
#raw word 0x2BE
#raw word 0x2BF
#raw word 0x2C0
#raw word 0x2C5
#raw word 0x2C6
#raw word 0x2C7
#raw word 0x2CA
#raw word 0x2CC
#raw word 0x2D2
#raw word 0x2D4
#raw word 0x2D5
#raw word 0x2D7
#raw word 0x2A4
#raw word 0xBA
#raw word 0x2A9
#raw word 0x2A8
#raw word 0x2AB
#raw word 0x2A1
#raw word 0x0

Mason Shu June 13th, 2021 10:27 AM

Quote:

Originally Posted by GriloKapu (Post 10370635)
That's my script:

#dynamic 0x9D38A9
#org @start
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
lock
faceplayer
preparemsg 0x81A6211 '"Olá!\nComo posso ajudá-lo? "
waitmsg
pokemart @1
msgbox 0x81A5190 MSG_KEEPOPEN '"Volte sempre! "
release
end

#org @1
#raw word 0x2A3
#raw word 0x2B0
#raw word 0x2B1
#raw word 0x2B7
#raw word 0x2B8
#raw word 0x2BE
#raw word 0x2BF
#raw word 0x2C0
#raw word 0x2C5
#raw word 0x2C6
#raw word 0x2C7
#raw word 0x2CA
#raw word 0x2CC
#raw word 0x2D2
#raw word 0x2D4
#raw word 0x2D5
#raw word 0x2D7
#raw word 0x2A4
#raw word 0xBA
#raw word 0x2A9
#raw word 0x2A8
#raw word 0x2AB
#raw word 0x2A1
#raw word 0x0

Don’t do @1 that compiles that to offset one try like t1

kalarie June 13th, 2021 11:23 AM

Quote:

Originally Posted by Mason Shu (Post 10371221)
Don’t do @1 that compiles that to offset one try like t1

This is completely false. @1 is formatted as a dynamic offset. When using #dynamic 0x9D38A9, XSE will compile that string to the first free space in which it fits starting from 0x9D38A9.

Dr. Seuss June 14th, 2021 6:10 AM

The issue is with XSE that can't compile items further than the ones originally programmed in vanilla games. I also had the issue. What I did is to write the mart scripts directly in the CFRU script files.

GriloKapu June 15th, 2021 4:56 PM

How i can do that? Can you help me?

Pyxal June 16th, 2021 5:58 AM

Quote:

Originally Posted by GriloKapu (Post 10371927)
How i can do that? Can you help me?

CFRU scripting is a tad bit different from XSE. Visit the Unbound Discord server to understand CFRU scripting.


All times are GMT -8. The time now is 9:16 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.