but how do i make it to where they are im the inventory at a certain time?
pause menu editing
RGSS3 Script Requestsi also cant seem to add a number to the life bar. like, i want it to go to 5 but i cant seem to figure out which variable is to add life points,
Actor HP is based on Classes for MHP which is the maxed Value for HP
You may request a script edit to show the HP variable on HP_BAR image without changes to HP_BAR picture.
Current IB Menu script for HP_BAR shows image losing it's portion when losing HP without value showing.
You may request a script edit to show the HP variable on HP_BAR image without changes to HP_BAR picture.
Current IB Menu script for HP_BAR shows image losing it's portion when losing HP without value showing.
still about the call commands how do i call items at certain points and have them gone after i use them? and the image be gone from the menu?
Script call
When adding an item-
Next content line, use a script call
menu_item(id)
replace id with a number you used Items database
by using this script call, adds a certain item picture in the menu
_____
When removing an item-
Next content line, use a script call
remove_menu_item(id)
replace id with a number you used Items database
by using this script call, removes a certain item picture in menu
When adding an item-
Next content line, use a script call
menu_item(id)
replace id with a number you used Items database
by using this script call, adds a certain item picture in the menu
_____
When removing an item-
Next content line, use a script call
remove_menu_item(id)
replace id with a number you used Items database
by using this script call, removes a certain item picture in menu
Show hp value
Ruby:
module R2_IB_Life
HP_X_Offset = 10 # adjust position up or down
HP_Y_Offset = 30 # adjust position up or down
Life_Color = [150,255,50,255] # red, green, blue, opacity
Bold_Text = true
end
class Scene_Menu
alias r2_create_hp_life create_life
def create_life
r2_create_hp_life
spritelife = Cache.system("HP_BAR")
x = BIKO::Position_life[0]
y = BIKO::Position_life[1]
create_hp_text(x,y,spritelife.height)
end
#-----------------------------------------------------------------------------
# * New Method : Create Savetext
#-----------------------------------------------------------------------------
def create_hp_text(x,y,h)
ox = R2_IB_Life::HP_X_Offset
oy = R2_IB_Life::HP_Y_Offset
@hptext = Sprite.new
@hptext.bitmap = Bitmap.new(Graphics.width, Graphics.height)
@hptext.z = 200
@hptext.bitmap.font.size = BIKO::Size_Savetext
@hptext.bitmap.font.bold = R2_IB_Life::Bold_Text
@hptext.bitmap.font.color = Color.new(R2_IB_Life::Life_Color[0], R2_IB_Life::Life_Color[1], R2_IB_Life::Life_Color[2], R2_IB_Life::Life_Color[3])
@hptext.bitmap.draw_text(x + ox,y + h - oy, 30, 24, $game_actors[Scene_Menu.perso].hp.to_i, 2)
end
end
thank you! i got it now i appreciate it!
Original thread: https://forums.rpgmakerweb.com/threads/pause-menu-editing.142936/