As for the first one, is done, Thank you ^^
For the sprite, how can I check if there is scrollable content up/down & hide sprite if it hasn't?
if $game_player.direction == 2
do X thing
end
if $game_player.direction == 6
do X thing
end
if $game_player.direction == 2 [or] 6
do X thing
else
do Y thing
end
[2,6].include?($game_player.direction)
class Numeric
def clamp(min, max)
return [[self,min].max,max].min
end
end
Why would you need to use more than two values for a min or max? This comment contributed nothing of value to the question at hand.
class Numeric
def clamp(min, max)
[min, self, max].sort[1]
end
end
class Numeric
def clamp(mn, mx)
return mn if self < mn
return mx if self > mx
self
end
end
def call_ok_handler
$game_message.choice_proc.call(index)
close #to remove?
end
def call_cancel_handler
$game_message.choice_proc.call($game_message.choice_cancel_type - 1)
close #to remove?
end
You don't technically dispose the window, but you can have a similar effect if you don't want to use close command. Just use
self.openness = 0
I am not sure if this will work with RGSS3, but in pure ruby this will do the trick:
File.readlines(file_path)
would max stats if lvl 99 count as rate?
Honest opinion, drawing gauge bar in stat display does not convey anything. And by that logic it will really be a small fraction of the bar. And not to mention, if you use equip, it may exceed 100. And the bar will be maxed.
Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/