I need help with editing (altering) this script The original script showed the enemy's hp, but I've got it to show other stats. I'm trying to event a level up system for the enemies and I need something visual DURING the battles to see if my events are working. I know there are monster adaption/difficulty/level up scripts out there, but they don't work the way I want them to. Should be able to create an event that will do the same thing. I just need to see the event's workings in detail as I test play.
this script works with the scripts I have, as is. However, I'm requesting help in modifying the script to do what I need or for some one with more know-how to modify it for me.
The problem I'm having now is coordinates (placement and spacing of the information). So far all I understand is that y is vertical and x is horizontal. The numbers are to what degree they are spaced on the 2 axis. No matter how I fiddle with the coordinates of the stats , it winds up like this:
Hell hound
HP 888/888 SP 888/888 ATK 100 PDEF 100 (with about 10 to 20 spaces between stat name and value. really spaced out)
I'm also wondering why there are so many spaces between the stat name and the value.
example: ATK <- about 10-20 spaces -> 100
Basically, all the way across the screen, and with some coordinate changes, the stat names and the values would overlap. What I'm trying to accomplish is something like this:
Hell hound
HP 888/888 SP 888/888
ATK 100 PDEF 100
something to that effect, anyway
this script works with the scripts I have, as is. However, I'm requesting help in modifying the script to do what I need or for some one with more know-how to modify it for me.
class Window_EnemyHP < Window_Base def initialize super(0, 0, 640, 480) self.contents = Bitmap.new(width - 32, height - 32) self.opacity = 0 @old_enemy = [] refresh end def refresh self.contents.clear for i in 0...$game_troop.enemies.size @enemy = $game_troop.enemies @old_enemy = @enemy.clone unless @enemy.hp == 0 self.contents.font.size = 15 self.contents.font.bold = true self.contents.font.color = Color.new(0,0,0) self.contents.font.color = normal_color self.contents.draw_text(0, i * 45 + 37, 100, 32, @enemy.name) draw_actor_hp(@enemy, 0, i*45 + 50) draw_actor_sp(@enemy, 80, i*45 + 50) draw_actor_parameter(@enemy, 160, i*45 + 50, 0) draw_actor_parameter(@enemy, 240, i*45 + 50, 1) end end end def update for i in 0...$game_troop.enemies.size enemy = $game_troop.enemies if enemy.hp != @old_enemy.hp || enemy.sp != @old_enemy.sp || enemy.atk != @old_enemy.atk || enemy.pdef != @old_enemy.pdef || enemy.mdef != @old_enemy.mdef || enemy.str != @old_enemy.str || enemy.dex != @old_enemy.dex || enemy.int != @old_enemy.int || enemy.agi != @old_enemy.agi refresh end end endend
Hell hound
HP 888/888 SP 888/888 ATK 100 PDEF 100 (with about 10 to 20 spaces between stat name and value. really spaced out)
I'm also wondering why there are so many spaces between the stat name and the value.
example: ATK <- about 10-20 spaces -> 100
Basically, all the way across the screen, and with some coordinate changes, the stat names and the values would overlap. What I'm trying to accomplish is something like this:
Hell hound
HP 888/888 SP 888/888
ATK 100 PDEF 100
something to that effect, anyway