The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Is there a simple way to change every single trainer's level to a specified number? (Fire Red)

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 June 9th, 2022 (9:01 PM).
Chill 'Doof's Avatar
Chill 'Doof Chill 'Doof is offline
 
Join Date: Feb 2022
Posts: 10
I'm asking this again, yes.

I'm inexperienced at programming, but is there an easy way to change every trainer mon and wild mon's level to 1? Just 1. It can never go higher than that. Perfect number.

But I don't exactly want to do horribly huge amounts of clicking and changing values, so any less time-consuming way? Thanks.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 11th, 2022 (11:29 PM). Edited June 12th, 2022 by Tacobell24.
Tacobell24's Avatar
Tacobell24 Tacobell24 is offline
 
Join Date: Nov 2018
Posts: 232
Unlikely.
Especially wirh binary hacking

Plus wouldn't you have to cancel out getting EXP too?
__________________
Praise the Solrock
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 12th, 2022 (2:47 AM).
Anon822 Anon822 is offline
 
Join Date: Nov 2017
Posts: 326
Quote:
Originally Posted by Chill 'Doof View Post
I'm asking this again, yes.

I'm inexperienced at programming, but is there an easy way to change every trainer mon and wild mon's level to 1? Just 1. It can never go higher than that. Perfect number.

But I don't exactly want to do horribly huge amounts of clicking and changing values, so any less time-consuming way? Thanks.
No, if by easy you mean a program that does it for you.

Your options are basically:
1. Write a program that edits a rom file and sets all trainer and wild mon level data to 1.
2. Modify the game's code to always create level 1 pokemon regardless of what the trainer/wild mon data says.

The latter is probably as simple as it gets since it requires editing only a couple lines of code in the decomp.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 17th, 2022 (10:36 AM).
Chill 'Doof's Avatar
Chill 'Doof Chill 'Doof is offline
 
Join Date: Feb 2022
Posts: 10
Uh, hey, so how exactly do I do that modification? I'm kinda bad at editing code, but I can modify basic stuff and all.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old June 18th, 2022 (2:14 AM).
Anon822 Anon822 is offline
 
Join Date: Nov 2017
Posts: 326
Quote:
Originally Posted by Chill 'Doof View Post
Uh, hey, so how exactly do I do that modification? I'm kinda bad at editing code, but I can modify basic stuff and all.
There are a couple ways to do it but one quick and hacky way is to modify the pokemon generation code since that will apply to all types of mons.

src/pokemon.c
Code:
@@ -1715,7 +1715,6 @@ void CreateMon(struct Pokemon *mon, u16 species, u8 level, u8 fixedIV, u8 hasFix
     u32 arg;
     ZeroMonData(mon);
     CreateBoxMon(&mon->box, species, level, fixedIV, hasFixedPersonality, fixedPersonality, otIdType, fixedOtId);
-    SetMonData(mon, MON_DATA_LEVEL, &level);
     arg = 255;
     SetMonData(mon, MON_DATA_MAIL, &arg);
     CalculateMonStats(mon);
@@ -1727,7 +1726,7 @@ void CreateBoxMon(struct BoxPokemon *boxMon, u16 species, u8 level, u8 fixedIV,
     u32 personality;
     u32 value;
     u16 checksum;
-
+    level = 1;
     ZeroBoxMonData(boxMon);
 
     if (hasFixedPersonality)
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
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 9:22 AM.