That can be fixed
Just use this code instead
class Scene_Battle
alias shinami_make_basic_action_result make_basic_action_result
def make_basic_action_result
if @active_battler.current_action.basic == 1
sp_regain = $game_actors[@active_battler.id].maxsp * ($game_variables[id#] / 100.0)
$game_actors[@active_battler.id].sp += sp_regain.to_i
end#of "if @active_battler.current_action.basic == 1"
shinami_make_basic_action_result
end#of aliased "def make_basic_action_result"
end
The number in $game_variables[id#] is now the percentage
You still need to change the "id#"
Lower the 100.0 if you want finer distinction. You can also raise it. Just remember to make it a float. (100 wrong, 100.0 correct)