rigbycwts
Hmm, hmm.
- 98
- Posts
- 12
- Years
- Seen Feb 22, 2019
Okay, so this shows how the BGM changes if the player's Pokemon are on low health, similar to the Gen 5 games.
Note that this requires Luka's Elite Battle System.
Step 1: In EliteBattle_Scene, inside the function pbStartBattle, add this line:
Step 2: In EliteBattle_UI, inside the function update, below this:
Add these:
What to fix next: if the HP is low at the very first turn of the battle, the BGM won't change.
Note that this requires Luka's Elite Battle System.
Step 1: In EliteBattle_Scene, inside the function pbStartBattle, add this line:
Code:
$lowHPbattle=false
Step 2: In EliteBattle_UI, inside the function update, below this:
Code:
@animatingHP=false if @currenthp==@endhp
Code:
if (@battler.index==0 or @battler.index==2) && (@currenthp<=(@battler.totalhp*0.2) && !(self.hp<1)) && $lowHPbattle==false
$game_system.bgm_memorize
pbBGMPlay("lowhp-gen5.mp3")
$lowHPbattle=true
end
if (@battler.index==0 or @battler.index==2) && (@currenthp>(@battler.totalhp*0.2) or @currenthp<=0) && $lowHPbattle==true
$game_system.bgm_restore
$lowHPbattle=false
end
What to fix next: if the HP is low at the very first turn of the battle, the BGM won't change.