Hi! I need some help about programming a BossBattle function.
I know GolisopodUser made a script about it, but it's for version 18 and also has too many things that don't interest me (like boosts, totems...). I need something much simpler.
So what I really need is a wild battle, with a few small presets, nothing more.
I've done that simple little thing, but it works (only cannot run + disable pokeballs):
And then I call it like this with an event (for exemple, simulating the Lake of Rage):
So, it's just a slightly modified pokemon, and then I call WildBattle.Start() with some little BattleRules.
The QUESTION is, is there any possibility to modify the HP of the boss intrinsically? (duplicate it, for example)
Something like this:
Or something similar that allows me to modify the Boss hp? (obviously in v20.1)
If possible, without using switches (completely unnecessarily), since in the future I would like to do more stuff, like changing the UI for Boss Battles...
Thank you very much for the help!
I know GolisopodUser made a script about it, but it's for version 18 and also has too many things that don't interest me (like boosts, totems...). I need something much simpler.
So what I really need is a wild battle, with a few small presets, nothing more.
I've done that simple little thing, but it works (only cannot run + disable pokeballs):
Code:
class BossBattle
def self.start(pkmn)
setBattleRule("cannotRun")
setBattleRule("disablePokeBalls")
WildBattle.start(pkmn)
end
end
And then I call it like this with an event (for exemple, simulating the Lake of Rage):
Code:
Pokemon.play_cry(:GYARADOS)
pkmn = Pokemon.new(:GYARADOS, 30)
pkmn.shiny = true
BossBattle.start(pkmn)
So, it's just a slightly modified pokemon, and then I call WildBattle.Start() with some little BattleRules.
The QUESTION is, is there any possibility to modify the HP of the boss intrinsically? (duplicate it, for example)
Something like this:
Code:
pkmn.hp *= 2
# or pkmn.totalhp *= 2
Or something similar that allows me to modify the Boss hp? (obviously in v20.1)
If possible, without using switches (completely unnecessarily), since in the future I would like to do more stuff, like changing the UI for Boss Battles...
Thank you very much for the help!