The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Understanding certain variables and how they act

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 11th, 2015 (3:34 PM). Edited May 12th, 2015 by Criminon.
Criminon's Avatar
Criminon Criminon is offline
Forever Spriting
 
Join Date: Aug 2012
Location: California
Gender: Male
Nature: Timid
Posts: 264
So I've started using JPAN's engine because it seems like the hack I was working on is broken. (Might as well start over)

I found out I'm able to change IVs, and I want to do so through the pokemon selection menu. I feel like I'm close to being able to, and I understand how most calls work, but I'm having trouble understanding what each variable does, and how it is used in conjunction with other variables. What are the limits to these variables? etc


Below is an example of my code.

Spoiler:
#dyn 0x740000
#org @start
'-----------------------------------
lock
call @menu
compare 0x8004 0x6
if >= jump @goback
copyvar 0x8005 0x800A
special2 LASTRESULT 0xFF
copyvar 0x800B LASTRESULT 'end of menu muk
jump @iv

#org @iv
bufferpartypokemon 0x0 0x0
setvar 0x8004 0x0
special 0x6 ' sets iv change
setvar 0x8005 0x0 ' hp
setvar 0x8006 0x1F
special 0x10 ' makes it happen
setvar 0x8005 0x1 ' atk
setvar 0x8006 0x1F
special 0x10
setvar 0x8005 0x2 ' def
setvar 0x8006 0x1F
special 0x10
setvar 0x8005 0x3 ' spd
setvar 0x8006 0x1F
special 0x10
setvar 0x8005 0x4 ' satk
setvar 0x8006 0x1F
special 0x10
setvar 0x8005 0x5 ' sdef
setvar 0x8006 0x1F
special 0x10
special 0x6 ' ends iv change
storepokemon 0 LASTRESULT ' stores pkmn name
removeitem 0x31 1
jump @grats

#org @grats
msgbox @text1
callstd MSG_STANDARD
release
end

#org @goback
release
end

#org @menu
'-----------------------------------
special 0x9F
lock
faceplayer
copyvar 0x800A 0x8004
return

#org @text1
= \v\h02's potential has\nbeen realized.\pThe stone has become inert.


Solved.
__________________
Unbound Team / Crown Team
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 17th, 2015 (8:32 AM).
rhapsodian_pixo rhapsodian_pixo is offline
 
Join Date: Jul 2013
Gender: Male
Posts: 98
did you change iv of pokemon?? how did you do it?
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
Ad Content

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 9:09 AM.