Control flight speed in Galv's Superman script

Hello, I am using Galv's Superman script in a game I'm making and am looking to edit the flight speed with a variable.

Here is the script:

I'm not a coder, but I play with code a little. My attempt to modify didn't work. When I asked Galv, he suggested reaching out on these forums. 🙂

The current script has a speed modifier, but it is set and cannot change mid-game.

Any suggestions on how I could modify it so that I can control the speed boost with a variable?

Thanks ahead of time! ^_^
Can't you put the variable script: $game_variables[X]

in place of the speed bonus (Galv_Superman::SPEED_BONUS) where it increases/decreases movement speed in the script?

For example: $game_player.move_speed += $game_variables[X]
Yes it can be changed but it would need to be placed in a few spots

Line 53 needs to be the variable number

Line 155 needs to change for when you land
$game_player.move_speed -= $game_variables[Galv_Superman::SPEED_BONUS]

Line 177 needs to change for when you take off
$game_player.move_speed += $game_variables[Galv_Superman::SPEED_BONUS]

Then you need to set the value in the variable.
It can be anything from 0 to whatever you have the move speed for the player set to.
You can include decimals as well.
e.g. 1.2
It works! Thanks, guys! 😀

Original thread: https://forums.rpgmakerweb.com/threads/control-flight-speed-in-galvs-superman-script.160980/