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 Need Help with scripting (https://www.pokecommunity.com/showthread.php?t=465964)

chadwick2118 February 15th, 2022 7:24 AM

Need Help with scripting
 
Hello All,

I am trying to add a script into Fire Red where; once the player steps on a certain grass tile in the route, it triggers a random one-time shiny Pokemon battle. I don't know if I am just writing the script wrong or don't know how to insert it into the rom effectively. Any help would be appreciated and I will paste my current script here. Thank you.

#dynamic 0x800120

#org @start
checkflag 0x1000
if ox1 goto @end
callasm 0x800121
setvar 0x8003 0x1
setflag 0x1000
wildbattle 0x4 0x3 0x0
end

#org @end
release
end

UPDATE:
I figured out what I was doing wrong with my scripting. I just had to take a long coffee break and collect my thoughts, thank you anyways for consideration.


All times are GMT -8. The time now is 9:20 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.