The PokéCommunity Forums Fan Games ROM Hacks Studio PokéCommunity ROM Hack Planning
Script Scripting Reference

Planning Where all the hard work happens. Got an idea? You don't have to be part of the team to share it with us.


Reply
 
Thread Tools
  #1    
Old November 10th, 2016 (11:57 AM). Edited April 7th, 2017 by esperance.
esperance's Avatar
esperance esperance is online now
 
Join Date: Mar 2010
Location: Ohio
Age: 21
Gender: Male
Nature: Relaxed
Posts: 3,820
This thread is a reference for what's being used in the ROM. Be sure to check here when you want to add something new.

Flags


Spoiler:
XXX - used by the Pokepad
YZW - flags used by Pokepad applications
200 - Starter selection script

Variables


Spoiler:
407B - Script executor queue
407C - Last searched species (Dexnav)
4015 - Starter selection

Addresses


Spoiler:
0203C000 - 450 bytes - SearchLevel
0203C000 + SPECIES_MAX - 4 bytes - DexNavStatePtr
0203D000 - 480 bytes = GeneralPurposeBuffer (free use memory)
__________________
What are you so afraid of?
Reply With Quote

Relevant Advertising!

  #2    
Old November 10th, 2016 (12:35 PM).
FBI's Avatar
FBI FBI is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,858
Please reserve these memory addresses:

SearchLevel = 0x203C000 (450 bytes)
DexNavStatePtr = 0x203C000 + SPECIES_MAX (4 bytes)
General_Purpose_Buffer = 0x203D000 (480 bytes) -> free use memory, not saved after function call


Variables:
0x407B = Script executer queue
0x407C = Last searched species (dexnav)

Flags:
Haven't settled on a specific one yet, but we need a flag for the Pokepad and certain applications.
__________________
...
Reply With Quote
  #3    
Old November 24th, 2016 (7:26 AM). Edited December 7th, 2016 by Logan.
Logan's Avatar
Logan Logan is offline
 
Join Date: Nov 2008
Location: Salisbury, England
Age: 23
Gender: Male
Nature: Sassy
Posts: 10,157
Using var 4015 for starter selection
__________________
Reply With Quote
  #4    
Old December 7th, 2016 (1:03 AM).
Logan's Avatar
Logan Logan is offline
 
Join Date: Nov 2008
Location: Salisbury, England
Age: 23
Gender: Male
Nature: Sassy
Posts: 10,157
im gonna use flag 200 in the starter selection script later too because yolo
__________________
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 3:29 PM.