- 148
- Posts
- 11
- Years
- Upstate New York
- Seen Sep 5, 2023
I have it so the graphic of the player on their bike changes depending on which Pokemon they have first in their party. If Rhyhorn is first, they'll be riding Rhyhorn instead of their bike. I'm trying to make the speed of the bike change depending on which Pokemon is first in the party and am having no luck. This is what I thought would work.
In the Walk_Run Script
That's not working. I assumed this was the right section to edit. Is this just not the way to go about this?
In the Walk_Run Script
Code:
def update
if !moving? && !@move_route_forcing && $PokemonGlobal
if $PokemonGlobal.bicycle
@move_speed = $RPGVX ? 5 : 5
elsif $PokemonGlobal.bicycle && $Trainer.pokemonParty[0].species==PBSpecies::RHYHORN
@move_speed = $RPGVX ? 9.5 : 9.2
elsif $game_switches[291]
@move_speed = $RPGVX ? 6.5 : 5.2
elsif pbCanRun?
@move_speed = $RPGVX ? 6.5 : 4.8
else
@move_speed = $RPGVX ? 4.5 : 4.0
end
end
update_old
end
end
That's not working. I assumed this was the right section to edit. Is this just not the way to go about this?