Some months ago, I asked in this topic on how to edit a dash graphic change script, and while I managed to edit Galv's script to my use, I ended up noticing a bug only now...
Specifically, its related to those lines:
Basically, the script only works the way intended for the characters in index 4 (or the characters in index 0, if you invert the line order), because for some reason it seems to ignore the "if c =" part I've put and considers only the last line as... "absolute"?
I tried putting those two lines in case and if conditions, but even then, this happens:
(Notice how Eric doesn't change back to Eric and changes to Ernest even if he didn't start dashing)
Here's the full method:
Specifically, its related to those lines:
Code:
$game_party.members.each { |m| m.set_g(2) } if c = 0
$game_party.members.each { |m| m.set_g(6) } if c = 4
$game_party.members.each { |m| m.set_g(0) } if c = 2
$game_party.members.each { |m| m.set_g(4) } if c = 6
I tried putting those two lines in case and if conditions, but even then, this happens:
(Notice how Eric doesn't change back to Eric and changes to Ernest even if he didn't start dashing)
Here's the full method:
Code:
def move_anim
c = $game_party.leader.character_index
if $game_player.dash?
if c != [2,6]
$game_party.members.each { |m| m.set_g(2) } if c = 0
$game_party.members.each { |m| m.set_g(6) } if c = 4
$game_player.refresh
end
else
if c != [0,4]
$game_party.members.each { |m| m.set_g(0) } if c = 2
$game_party.members.each { |m| m.set_g(4) } if c = 6
$game_player.refresh
end
end
@idletime = 0
end