- 183
- Posts
- 7
- Years
- Seen Jan 22, 2025
well, i don't know if this doubt goes here but, how can i make pokemon trainer's levels set to be equal to yours?
and it is possible to make them be around a margin of -5 and +5 levels in relation to yours?
like, i have a pokémon that is level 20 in first slot, so the last gym pokemon will be level 15 or even level 25
or can the code choose the higher level pokémon in your party to calculate this? because i could make the game the easiest game by having a level 5 pokémon and then a team of level 40, so i could beat the gym in no-time. if the code take the higher leveled pokemon, then the gym leader would have level 35-45 pokémon and the battle could be more challenging
the thing that i did was this:
in the battle_main.c i wrote this:
but then i get a "syntax error before createmon" error, and i dont know if the error is in the "fixedLVL" thing or in somewhere else...
and it is possible to make them be around a margin of -5 and +5 levels in relation to yours?
like, i have a pokémon that is level 20 in first slot, so the last gym pokemon will be level 15 or even level 25
or can the code choose the higher level pokémon in your party to calculate this? because i could make the game the easiest game by having a level 5 pokémon and then a team of level 40, so i could beat the gym in no-time. if the code take the higher leveled pokemon, then the gym leader would have level 35-45 pokémon and the battle could be more challenging
the thing that i did was this:
in the battle_main.c i wrote this:
Code:
fixedLVL = GetMonData(&gPlayerParty[0], MON_DATA_LEVEL)
CreateMon(&party[i], partyData[i].species, fixedLVL.lvl, fixedIV, TRUE, personalityValue, OT_ID_RANDOM_NO_SHINY, 0);