- 34
- Posts
- 5
- Years
- Seen Sep 20, 2024
Hey there, I found this script on this website and think I've followed the instructions to the letter, but continue getting a syntax error whilst trying to implement the hard level cap.
The original thread is on the site, titled "How to remove Pokémon not obeying orders?"
And the script is:
badgelevel=MAXIMUMLEVEL
if pbOwnedByPlayer?(thispoke.partyIndex) && internalbattle
badgelevel=10
badgelevel=20 if pbPlayer.numbadges>=1
badgelevel=30 if pbPlayer.numbadges>=2
badgelevel=40 if pbPlayer.numbadges>=3
badgelevel=50 if pbPlayer.numbadges>=4
badgelevel=60 if pbPlayer.numbadges>=5
badgelevel=70 if pbPlayer.numbadges>=6
badgelevel=80 if pbPlayer.numbadges>=7
badgelevel=100 if pbPlayer.numbadges>=8
end
if thispoke.level>badgelevel
newexp=PBExperience.pbAddExperience(thispoke.exp,1,growthrate)
else
newexp=PBExperience.pbAddExperience(thispoke.exp,exp,growthrate)
end
exp=newexp-thispoke.exp
if exp > 0
if thispoke.level>badgelevel
pbDisplayPaused(_INTL("{1} gained a measly {2} Exp. Points.",thispoke.name,exp))
elsif isOutsider
Could anyone by any chance help me by providing a modified version of the Pokebattle_Battle script, or assist in specifying exactly where this goes? This script is 3.9 years old so it may just be outdated and if that is the case, does anyone know of a v17 alternative?
All the best and many thanks,
Valiant
The original thread is on the site, titled "How to remove Pokémon not obeying orders?"
And the script is:
badgelevel=MAXIMUMLEVEL
if pbOwnedByPlayer?(thispoke.partyIndex) && internalbattle
badgelevel=10
badgelevel=20 if pbPlayer.numbadges>=1
badgelevel=30 if pbPlayer.numbadges>=2
badgelevel=40 if pbPlayer.numbadges>=3
badgelevel=50 if pbPlayer.numbadges>=4
badgelevel=60 if pbPlayer.numbadges>=5
badgelevel=70 if pbPlayer.numbadges>=6
badgelevel=80 if pbPlayer.numbadges>=7
badgelevel=100 if pbPlayer.numbadges>=8
end
if thispoke.level>badgelevel
newexp=PBExperience.pbAddExperience(thispoke.exp,1,growthrate)
else
newexp=PBExperience.pbAddExperience(thispoke.exp,exp,growthrate)
end
exp=newexp-thispoke.exp
if exp > 0
if thispoke.level>badgelevel
pbDisplayPaused(_INTL("{1} gained a measly {2} Exp. Points.",thispoke.name,exp))
elsif isOutsider
Could anyone by any chance help me by providing a modified version of the Pokebattle_Battle script, or assist in specifying exactly where this goes? This script is 3.9 years old so it may just be outdated and if that is the case, does anyone know of a v17 alternative?
All the best and many thanks,
Valiant