![]() ![]() Yy = (enemy.screen_y - tmpbit.height) - 35 + Y_OFFSET Tmpbit = Cache.battler(enemy.battler_name, 0) Tpwidth = ((BAR_WIDTH - 4) * enemy.tp_rate).to_i Mpwidth = ((BAR_WIDTH - 4) * enemy.mp_rate).to_i Hpwidth = ((BAR_WIDTH - 4) * enemy.hp_rate).to_i If enemy.hp_rate != 0 and enemy.enemy_id != 3 THRESHOLD = 20 #Only show number if hp below this percentage SHOW_ABSOLUTE = true #True for absolute hp, false for percentage hpĭISPLAY_ABOVE = true #Display number above or below the hp bar will be right under hp if mp isn't activeĭISPLAY_NUMBER = true #True to display enemy's hp in number #Deals with displaying hp numbers with the bar Y_OFFSET = -35 #Offsets location of bar on the y-axisĪBOVE_MONSTER = false #Sets whether to draw bar above or below monster X_OFFSET = -35 #Offsets location of bar on the x-axis $COLOR_TP2 = Color.new(200, 255, 200) #Second TP bar color, for gradientīAR_HEIGHT = 8 #Sets the height of the bar(Value of 5 or greater)īAR_WIDTH = 75 #Sets the width of the bar(Value of 5 or greater) $COLOR_TP = Color.new(50, 250, 50) #Color of TP bar $COLOR_BACK3 = Color.new( 0, 50, 0) #Back of guage(behind hp) $COLOR_MP2 = Color.new(200, 200, 250) #Second MP bar color, for gradient $COLOR_MP = Color.new(50, 50, 250) #Color of MP bar $COLOR_BACK2 = Color.new( 0, 0, 50) #Back of guage(behind mp) $COLOR_HP2 = Color.new(250, 200, 200) #Second HP bar color, for gradient $COLOR_HP = Color.new(250, 50, 50) #Color of HP bar $COLOR_BACK = Color.new( 50, 0, 0) #Back of guage(behind hp) $COLOR_INSIDE = Color.new(255,255,255) #Base of guage(between hp and border) $COLOR_OUTSIDE = Color.new( 0, 0, 0) #Border of guage #Sets the colors for the frame and hp bars: (Values in RGB mode, 0-255) #This script also colors your bars with similar colors. #also, it says "enemy" appears then what will actually appear until they do like #the morph script is in the troop event to randomize troop encounter #they morph to other enemies, and the bars appear. #in my troops, this ID is what spawns, then on turn 0, # to a specific enemy id to have no bars appear #can exclude enemy id to show none on certain enemies by changing the 0 in #- Free to use in any project with credit given # Usage: Plug and play, no editing required. # Adds slightly customizable hp bars to enemies in battle. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |