Line 192 is where I put a replica of the badges but then with trophies instead.
The whole def from line 164 to 197:
So this part has an direct influence on restarting the game. As of course, renewing a game also resets the number of badges back to zero, or as in this case, the number of trophies.
Even while I have duplicated all badge components and renamed those with trophies, there still is an error in the script. But I wonder where?
The whole def from line 164 to 197:
Code:
def initialize(name,trainertype)
@name=name
@language=pbGetLanguage()
@trainertype=trainertype
@id=rand(256)
@id|=rand(256)<<8
@id|=rand(256)<<16
@id|=rand(256)<<24
@seen=[]
@owned=[]
@shadowcaught=[]
@formseen=[]
@formlastseen=[]
@badges=[]
@trophies=[8]
@pokedex=false
@pokegear=false
for i in 1..PBSpecies.maxValue
@seen[i]=false
@owned[i]=false
@shadowcaught[i]=false
@formlastseen[i]=[]
@formseen[i]=[[],[]]
end
for i in 0...8
@badges[i]=false
end
for i in 0...8
[B]@tropies[i]=false[/B]
end
@money=INITIALMONEY
@party=[]
end
end
So this part has an direct influence on restarting the game. As of course, renewing a game also resets the number of badges back to zero, or as in this case, the number of trophies.
Even while I have duplicated all badge components and renamed those with trophies, there still is an error in the script. But I wonder where?