The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other JPAN's FRHE: Change Battled Pokemon Level Problem

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 April 4th, 2016 (10:52 PM). Edited April 4th, 2016 by pokemonsterxtream.
pokemonsterxtream pokemonsterxtream is offline
 
Join Date: Nov 2014
Gender: Female
Posts: 23
From the FRHE's Instruction Manual
Change Battled Pokémon Level:
Spoiler:
One code is set by the content of variable 0x4051. That is the Wild Pokémon Level Switch.
The other is set by the contents of variable 0x4052. That is the Trainer Battle Level Switch.

0x0yy  nothing, default setting
0x1yy  gets the highest leveled pokémon in the party and sets all trainers pokémon/wild pokémon levels to that value.
0x2yy  gets the highest leveled pokémon in the party and sets all trainers pokémon/wild pokémon levels to that value plus yy.
0x3yy  gets the highest leveled pokémon in the party and sets all trainers pokémon/wild pokémon levels to that value minus yy.
0x4yy  gets the lowest leveled pokémon in the party and sets all trainers pokémon/wild pokémon levels to that value.
0x5yy  gets the lowest leveled pokémon in the party and sets all trainers pokémon/wild pokémon levels to that value plus yy.
0x6yy  gets the lowest leveled pokémon in the party and sets all trainers pokémon/wild pokémon levels to that value minus yy.
0x7yy  adds up all the pokémon levels in your party, makes a weighted average and sets all trainers pokémon/wild pokémon levels to that value.
0x8yy  adds up all the pokémon levels in your party, makes a weighted average and sets all trainers pokémon/wild pokémon levels to that value plus yy.
0x9yy  adds up all the pokémon levels in your party, makes a weighted average and sets all trainers pokémon/wild pokémon levels to that value minus yy.
0xfyy  Sets the pokémon level to yy.

Also, the Wild variable accepts these settings:
0xayy  calculates a random number between highest and lowest party level, and makes that the pokémon level.
0xbyy  calculates a random number between highest - yy and highest + yy , and makes that the pokémon level.
0xcyy  calculates a random number between lowest - yy and lowest + yy, and makes that the pokémon level.
0xdyy  calculates a random number between average - yy and average + yy, and makes that the pokémon level.


Please confirm the ff scripts thanks.(Note: I assume the value that i will insert at yy is not hex. So PLEASE correct me if i'm wrong)

If I want to change the level of wild pokemon to lets say 5.
setvar 0x4051 0xf05
and if to trainer's pokemon, ill just change 0x4051 to 0x4052?

if i want the default setting(I assume this will use a-map's wild pokemon level, and yet correct me if im wrong)
setvar 0x4051 0x0
setvar 0x4052 0x0

Thanks!

Edit:
Delete this thread if possible, thanks.

I did trial and error and got answers to my questions so:
1. The value to be inserted at yy is in hex(actually I only forgot 100 will not fit in yy :) )
2. setvar 0x4051(or your value) 0xf05 will change the level of wild pokemon to 5
3. setvar 0x4051(or your value) 0x0 will use a-map's level thing
__________________
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:08 AM.