- 72
- Posts
- 6
- Years
- Seen Jan 24, 2021
Hello. I'm trying to make an event that boosts experience gained of the first Pokémon in the party. I thought that using a tag might work. So I called this event:
And made a tag to place and call:
Finally, in PokeBattle_Battle, i placed this around Lucky Egg and Exp. Share.
I tried this but it does not work. Can someone point out what I did wrong? Or suggest a simpler way? Thanks for any help in advance.
Code:
poke=pbGetPokemon(1)
poke.ExpUp
And made a tag to place and call:
Code:
def isExpBoosted?
return @expflag if @expflag!=nil
end
def ExpUp
@expflag=true
end
def RemoveExpUp
@expflag=false
end
Finally, in PokeBattle_Battle, i placed this around Lucky Egg and Exp. Share.
Code:
boost=(thispoke.isExpBoosted?)
if boost=true
exp=(exp*4/2).floor
end
if boost=false
exp=(exp*1/2).floor
end
I tried this but it does not work. Can someone point out what I did wrong? Or suggest a simpler way? Thanks for any help in advance.