Last Help Needed

I have basically all the scripts i need, except i do have little issues with them.

I'm wondering if anyone would review all my scripts and check to make them work together whatsoever.

Since I'm not really the best scripter.

This would be my last request.

I can post a link to a project with all my scripts if i obtain a reply.
Which RPGMaker are you using? If it's XP, I can probably help you out.
It is XP thanks i hope you can clear this out.

I only have 2 Bugs

Bug 1 : (Minor) : A little bit of lag with the menus

Bug 2 : (Medium) : HP/SP Numbers no longer show in menu or battle.

If you can fix the compatibility issues within these scripts i would be dearly grateful.

Heres a Link to the scripts.

http://www.mediafire.com/download/r7fhm ... ityFix.zip
Cassandrainbows wrote:
It is XP thanks i hope you can clear this out.

I only have 2 Bugs

Bug 1 : (Minor) : A little bit of lag with the menus

Bug 2 : (Medium) : HP/SP Numbers no longer show in menu or battle.

If you can fix the compatibility issues within these scripts i would be dearly grateful.

Heres a Link to the scripts.

http://www.mediafire.com/download/r7fhm ... ityFix.zip
With the HP/SP text, did you still want the pink bar next to the heart to represent HP as well as the one underneath? This bar is the one overriding the original text. I can place the text back on top if you'd like, but then you still have the two HP bars.
Likewise for the SP bar as well.
I find two Bars being a Minor bug really, if you want to make it one, i believe the one with the heart and magic symbol would be best.

Aslong as everything works and it looks fine, with the numbers is all (: thanks for the reply too.

If you have to get rid of that HP bar so that theres only 1, so be it.
Got any news?
Yeah, been looking at it for a bit. It's a little tricky because there's so many custom scripts.
I'm just working out some final text drawing bugs at the second then I can send you a script to fix the bar problem.

I don't know what causes the lag, unfortunately.

EDIT: Place this above main
  1. class Window_Base
  2.   def draw_actor_hp(actor, x, y, width = 144, text = true)
  3.     # Draw hp bar
  4.     bitmap = RPG::Cache.acms_menusprite("HP")
  5.     rect = Rect.new(x + BAR_PADDING, y, (width - 2 * BAR_PADDING) * actor.hp / actor.maxhp, bitmap.height)
  6.     self.contents.stretch_blt(rect, bitmap, Rect.new(0, 0,
  7.       bitmap.width * actor.hp / actor.maxhp, bitmap.height), opacity)
  8.     bitmap = RPG::Cache.acms_menusprite("Gauge")
  9.     rect = []
  10.     w = bitmap.width / 3
  11.     for i in 0...3
  12.       rect << Rect.new(i * w, 0, w, bitmap.height)
  13.     end
  14.     self.contents.blt(x, y, bitmap, rect[0], opacity)
  15.     i = w
  16.     while i < width - 2 * w
  17.       self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  18.       i += w
  19.     end
  20.     rect[1].width = (width - 1) % w + 1
  21.     self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  22.     i += (width - 1) % w + 1
  23.     self.contents.blt(x + i, y, bitmap, rect[2], opacity)
  24.     # Draw hp name
  25.     rect = self.contents.text_size($data_system.words.hp)
  26.     self.contents.draw_text(x, y + (bitmap.height - rect.height) / 2, 32, 32, $data_system.words.hp, opacity)
  27.    
  28.     self.contents.font.color = Color.new(255,255,255)
  29.     sz = self.contents.font.size
  30.     self.contents.font.size = 18
  31.     self.contents.font.bold = true
  32.     self.contents.draw_text_outline(x-16, y-8, width, 32, sprintf("%4d/%4d", actor.hp, actor.maxhp),2)
  33.     self.contents.font.size = sz
  34.     self.contents.font.bold = false
  35.     return unless text
  36.     # Draw hp
  37.    # self.contents.mp_draw_text(x + 32 + 8, y, width, 32, sprintf("%4d/%4d", actor.hp, actor.maxhp),0)
  38.   end
  39.  
  40.   def draw_actor_sp(actor, x, y, width = 144, text = true)
  41.     # Draw sp bar
  42.     bitmap = RPG::Cache.acms_menusprite("SP")
  43.     rect = Rect.new(x + BAR_PADDING, y, (width - 2 * BAR_PADDING) * actor.sp / actor.maxsp, bitmap.height)
  44.     self.contents.stretch_blt(rect, bitmap, Rect.new(0, 0,
  45.       bitmap.width * actor.sp / actor.maxsp, bitmap.height), opacity)
  46.     bitmap = RPG::Cache.acms_menusprite("Gauge")
  47.     rect = []
  48.     w = bitmap.width / 3
  49.     for i in 0...3
  50.       rect << Rect.new(i * w, 0, w, bitmap.height)
  51.     end
  52.     self.contents.blt(x, y, bitmap, rect[0], opacity)
  53.     i = w
  54.     while i < width - 2 * w
  55.       self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  56.       i += w
  57.     end
  58.     rect[1].width = (width - 1) % w + 1
  59.     self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  60.     i += (width - 1) % w + 1
  61.     self.contents.blt(x + i, y, bitmap, rect[2], opacity)
  62.     # Draw sp name
  63.     rect = self.contents.text_size($data_system.words.sp)
  64.     self.contents.draw_text(x, y + (bitmap.height - rect.height) / 2, 32, 32, $data_system.words.sp, opacity)
  65.    
  66.     self.contents.font.color = Color.new(255,255,255)
  67.     sz = self.contents.font.size
  68.     self.contents.font.size = 18
  69.     self.contents.font.bold = true
  70.     self.contents.draw_text_outline(x-16, y-8, width, 32, sprintf("%4d/%4d", actor.sp, actor.maxsp),2)
  71.     self.contents.font.bold = false
  72.     self.contents.font.size = sz
  73.  
  74.     #return unless text
  75.     # Draw sp
  76.   end
  77. end
  78.  
  79. class Bitmap
  80.   def draw_text_outline(x,y,w,h,s,align=0)
  81.     c = font.color.dup
  82.     font.color = Color.new(0,0,0)
  83.     draw_text(x,  y+1 ,w  ,h,s,align)
  84.     draw_text(x+2,y+1 ,w,h,s,align)
  85.    
  86.     draw_text(x+1,y   ,w,h  ,s,align)
  87.     draw_text(x+1,y+2 ,w,h,s,align)
  88.    
  89.     font.color = c
  90.     mp_draw_text(x+1,  y+1 ,w,h,s,align)
  91.   end
  92. end
  93.  
  94.  
  95. class Window_Status < Window_Base
  96.   #--------------------------------------------------------------------------
  97.   # * Refresh
  98.   #--------------------------------------------------------------------------
  99.   def refresh
  100.     self.contents.clear
  101.     draw_actor_graphic(@actor, 16, 48)
  102.     draw_actor_name(@actor, 40, 0)
  103.     #draw_actor_class(@actor, 160, 0)
  104.     draw_actor_level(@actor, 160, 0)
  105.     draw_actor_state(@actor, 224, 0)
  106.     draw_actor_hp(@actor, 64, 44, 192, true)
  107.     draw_actor_sp(@actor, 64, 64, 192, true)
  108.    
  109.     self.contents.font.color = system_color
  110.     self.contents.draw_text(0, 88, 40, 32, "EXP")
  111.     self.contents.draw_text(128, 88, 40, 32, "NEXT")
  112.     self.contents.font.color = normal_color
  113.     self.contents.draw_text(24, 88, 80, 32, @actor.exp_s, 2)
  114.     self.contents.draw_text(152, 88, 80, 32, @actor.next_rest_exp_s, 2)
  115.     draw_actor_parameter(@actor, 0, 120, 0)
  116.     draw_actor_parameter(@actor, 0, 144, 1)
  117.     draw_actor_parameter(@actor, 0, 168, 2)
  118.     draw_actor_parameter(@actor, 0, 192, 3)
  119.     draw_actor_parameter(@actor, 0, 216, 4)
  120.     draw_actor_parameter(@actor, 0, 240, 5)
  121.     draw_actor_parameter(@actor, 0, 264, 6)
  122.     draw_item_name($data_weapons[@actor.weapon_id], 120, 120, 136)
  123.     draw_item_name($data_armors[@actor.armor1_id], 120, 152, 136)
  124.     draw_item_name($data_armors[@actor.armor2_id], 120, 184, 136)
  125.     draw_item_name($data_armors[@actor.armor3_id], 120, 216, 136)
  126.     draw_item_name($data_armors[@actor.armor4_id], 120, 248, 136)
  127.   end
  128. end
Expand to see the code.
Maybe the lag is the overflow of menu's in the ACMS, as i have a custom Equip Menu, it might collide with the ACMS Equip Menu, Hopefully the Missionmenu (quest log) works aswell as the level up menu, those are probably the things that cause menu lags, possible in the inanimated menus, the ACMS(animated menu) is still applying (in the background but you don't see it) causing lag, although lag is really not the issue at hand for me it's mainly making everything work together (compatibility).

Thanks for your response and Script, I will def try it out.
If theres anything you add/need to add, do let me know (:
Script line 35 : ''Return unless text'' Syntax Error when launching the game.

In your script that i added above main, thanks still.
Cassandrainbows wrote:
Script line 35 : ''Return unless text'' Syntax Error when launching the game.

In your script that i added above main, thanks still.

There shouldn't be a capital R in return, if that's exactly what line 35 had. The code I posted worked fine, try copying it over again.
If that still doesn't work for some magical reason, you can use this. It is literally just what I wrote before without some of the useless garbage.
  1. class Window_Base
  2.   def draw_actor_hp(actor, x, y, width = 144, text = true)
  3.     # Draw hp bar
  4.     bitmap = RPG::Cache.acms_menusprite("HP")
  5.     rect = Rect.new(x + BAR_PADDING, y, (width - 2 * BAR_PADDING) * actor.hp / actor.maxhp, bitmap.height)
  6.     self.contents.stretch_blt(rect, bitmap, Rect.new(0, 0,
  7.       bitmap.width * actor.hp / actor.maxhp, bitmap.height), opacity)
  8.     bitmap = RPG::Cache.acms_menusprite("Gauge")
  9.     rect = []
  10.     w = bitmap.width / 3
  11.     for i in 0...3
  12.       rect << Rect.new(i * w, 0, w, bitmap.height)
  13.     end
  14.     self.contents.blt(x, y, bitmap, rect[0], opacity)
  15.     i = w
  16.     while i < width - 2 * w
  17.       self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  18.       i += w
  19.     end
  20.     rect[1].width = (width - 1) % w + 1
  21.     self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  22.     i += (width - 1) % w + 1
  23.     self.contents.blt(x + i, y, bitmap, rect[2], opacity)
  24.     # Draw hp name
  25.     rect = self.contents.text_size($data_system.words.hp)
  26.     self.contents.draw_text(x, y + (bitmap.height - rect.height) / 2, 32, 32, $data_system.words.hp, opacity)
  27.    
  28.     self.contents.font.color = Color.new(255,255,255)
  29.     sz = self.contents.font.size
  30.     self.contents.font.size = 18
  31.     self.contents.font.bold = true
  32.     self.contents.draw_text_outline(x-16, y-8, width, 32, sprintf("%4d/%4d", actor.hp, actor.maxhp),2)
  33.     self.contents.font.size = sz
  34.     self.contents.font.bold = false
  35.   end
  36.  
  37.   def draw_actor_sp(actor, x, y, width = 144, text = true)
  38.     # Draw sp bar
  39.     bitmap = RPG::Cache.acms_menusprite("SP")
  40.     rect = Rect.new(x + BAR_PADDING, y, (width - 2 * BAR_PADDING) * actor.sp / actor.maxsp, bitmap.height)
  41.     self.contents.stretch_blt(rect, bitmap, Rect.new(0, 0,
  42.       bitmap.width * actor.sp / actor.maxsp, bitmap.height), opacity)
  43.     bitmap = RPG::Cache.acms_menusprite("Gauge")
  44.     rect = []
  45.     w = bitmap.width / 3
  46.     for i in 0...3
  47.       rect << Rect.new(i * w, 0, w, bitmap.height)
  48.     end
  49.     self.contents.blt(x, y, bitmap, rect[0], opacity)
  50.     i = w
  51.     while i < width - 2 * w
  52.       self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  53.       i += w
  54.     end
  55.     rect[1].width = (width - 1) % w + 1
  56.     self.contents.blt(x + i, y, bitmap, rect[1], opacity)
  57.     i += (width - 1) % w + 1
  58.     self.contents.blt(x + i, y, bitmap, rect[2], opacity)
  59.     # Draw sp name
  60.     rect = self.contents.text_size($data_system.words.sp)
  61.     self.contents.draw_text(x, y + (bitmap.height - rect.height) / 2, 32, 32, $data_system.words.sp, opacity)
  62.    
  63.     self.contents.font.color = Color.new(255,255,255)
  64.     sz = self.contents.font.size
  65.     self.contents.font.size = 18
  66.     self.contents.font.bold = true
  67.     self.contents.draw_text_outline(x-16, y-8, width, 32, sprintf("%4d/%4d", actor.sp, actor.maxsp),2)
  68.     self.contents.font.bold = false
  69.     self.contents.font.size = sz
  70.   end
  71. end
  72.  
  73. class Bitmap
  74.   def draw_text_outline(x,y,w,h,s,align=0)
  75.     c = font.color.dup
  76.     font.color = Color.new(0,0,0)
  77.     draw_text(x,  y+1 ,w  ,h,s,align)
  78.     draw_text(x+2,y+1 ,w,h,s,align)
  79.    
  80.     draw_text(x+1,y   ,w,h  ,s,align)
  81.     draw_text(x+1,y+2 ,w,h,s,align)
  82.    
  83.     font.color = c
  84.     mp_draw_text(x+1,  y+1 ,w,h,s,align)
  85.   end
  86. end
  87.  
  88.  
  89. class Window_Status < Window_Base
  90.   #--------------------------------------------------------------------------
  91.   # * Refresh
  92.   #--------------------------------------------------------------------------
  93.   def refresh
  94.     self.contents.clear
  95.     draw_actor_graphic(@actor, 16, 48)
  96.     draw_actor_name(@actor, 40, 0)
  97.     #draw_actor_class(@actor, 160, 0)
  98.     draw_actor_level(@actor, 160, 0)
  99.     draw_actor_state(@actor, 224, 0)
  100.     draw_actor_hp(@actor, 64, 44, 192, true)
  101.     draw_actor_sp(@actor, 64, 64, 192, true)
  102.    
  103.     self.contents.font.color = system_color
  104.     self.contents.draw_text(0, 88, 40, 32, "EXP")
  105.     self.contents.draw_text(128, 88, 40, 32, "NEXT")
  106.     self.contents.font.color = normal_color
  107.     self.contents.draw_text(24, 88, 80, 32, @actor.exp_s, 2)
  108.     self.contents.draw_text(152, 88, 80, 32, @actor.next_rest_exp_s, 2)
  109.     draw_actor_parameter(@actor, 0, 120, 0)
  110.     draw_actor_parameter(@actor, 0, 144, 1)
  111.     draw_actor_parameter(@actor, 0, 168, 2)
  112.     draw_actor_parameter(@actor, 0, 192, 3)
  113.     draw_actor_parameter(@actor, 0, 216, 4)
  114.     draw_actor_parameter(@actor, 0, 240, 5)
  115.     draw_actor_parameter(@actor, 0, 264, 6)
  116.     draw_item_name($data_weapons[@actor.weapon_id], 120, 120, 136)
  117.     draw_item_name($data_armors[@actor.armor1_id], 120, 152, 136)
  118.     draw_item_name($data_armors[@actor.armor2_id], 120, 184, 136)
  119.     draw_item_name($data_armors[@actor.armor3_id], 120, 216, 136)
  120.     draw_item_name($data_armors[@actor.armor4_id], 120, 248, 136)
  121.   end
  122. end
Expand to see the code.
Alright thanks, I'll put it in my USB tomorrow so i can test it, I'll give you news tomorrow if anything works fine or not, and I believe the line 35 Return Unless Text the R is minimal, so that little fix should prolly do the trick, are you testing all the other scripts to see if everything works?
It runs correctly in the demo you gave me, so it should work in your game perfectly fine. At the very least it should run, as there's no syntax errors in it or anything.
yeah sorry for being abit late, I've been moving and I've yet to get internet at home... I'll be done soon though so don't worry ^^
Think you can post the fixed project in a Demo too? it would be easier to transfer to my computer via USB drive.

P.S: Did you test the other scripts to make sure they all work?
I can't post the fixed project because my net is too slow and it will take all day.
Put the script I gave you above main and it should work. I took it straight from the demo, because I built it there.
Alright
Sorry for the late late reply, i had no internet for all that time and so i couldn't even get to try it, I will do so now that i have internet at home again :D, Hopefully you're still around and will forgive this Late thanks, I really thank you for trying to help me out with scripting wether in the end it works or not, even though I'm pretty sure it will work, It is kind of you to have put time on it.

Time for me to test this and start going HAM on my RPG :D
Sorry for the triple post, but hey, THANKS ALOT, i just tested the last script you posted and A1, even the battle events work, thanks Alot ZenVirZan, I owe you one.

If you wish to discuss projects, or assist me on mine or just talk, you can contact me directly if you want :)
I do have a few optional tweaks but they aren't really big needs so it's all good.

Thanks alot again, and your script does work :D (Even though you knew alrdy)

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=78722