http://cleovlyers.blogspot.com/
Are there any backups for any of this user's scripts?
Are there any backups for any of this user's scripts?
Yeah, I checked through those forums too haha
Removed code, use the code provided by Sixth.
change_color(actor.level > 9 ? text_color(17) : normal_color)
draw_text(x + 32, y, 24, line_height, sprintf("%02d", actor.level), 2)
method_1 if xyz > value
method_2 if xyz < value
method_3 if xyz == value
method_4 if xyz != value
# Or even worse:
method_1 if xyz < value
method_2 if xyz < value
My bad, Kept messing up with the draw_text method and rushed for a solution.
class Game_Party
def get_all_level
level_a = all_members.collect {|actor| actor.level }
level_a.inject(0, :+)
end
end
class Game_Interpreter
def party_level
$game_party.get_all_level / $game_party.all_members.size
end
end
class Game_Variables
def [](variable_id)
return <your desired value> if variable_id == 10
@data[variable_id] || 0
end
end
$game_party.get_all_level / $game_party.all_members.size
module BattleManager
def self.can_escape=(val)
@can_escape = val
end
end
BattleManager.can_escape = true
That worked beautifully, thank you kind sir.
You probably need to refresh the party command window
Well I'm also using a bunch of other scripts, including but not limited to Yanfly Battle Engine and Yanfly Command List, so maybe that's why. I don't know much.
Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/