Message display help with Mr.Bubble's Auto-Life effect

● ARCHIVED · READ-ONLY
Started by lucofthewind 9 posts View original ↗
  1. Script in question: http://mrbubblewand.wordpress.com/rgss3/auto-life-effect/

    Hey guys!

    As the title suggests, I am trying to get a little help with the display messgaes for Mr Bibbles auto life script. While everything works just fine, I was hoping to find a way to have "Eric's miracle ring breaks!" (as shown below), appear for just a bit longer. I'm doing this mostly because I have slow reading friends who are helping out with testing.  I tried text codes, but that didn't work :-\

    autolife.png

    In any case, any help would be most welcome!
  2. I believe with the script Victors - Control Text script, MIGHT allow you to add waits into those messages. At least it says you can use commands in any window with his script, but you'll have to find where the link to his scripts are on his page..

    http://victorscripts.wordpress.com/rpg-maker-vx-ace/windows-scripts/control-text/

    If you don't like that Modern Algebra has a similar script that enables text codes in all windows.
  3. Euphoria said:
    I believe with the script Victors - Control Text script, MIGHT allow you to add waits into those messages. At least it says you can use commands in any window with his script, but you'll have to find where the link to his scripts are on his page..

    http://victorscripts.wordpress.com/rpg-maker-vx-ace/windows-scripts/control-text/

    If you don't like that Modern Algebra has a similar script that enables text codes in all windows.
    Hey there! Thanks for taking the time to post your suggestions. I'm actually using Modern Algerbra's script and it doesn't seem to do it. :-\
  4. Then maybe it's not a window :o

    I just figured it was a window with the opacity set to 0...

    Hmm. In the auto-life script did you put \\*\\| to make it wait? (or you could have used \\*\\.) Don't forget that in MA's Global Text unless you have the auto mode set to true, you have to put \\* before all commands in scripts and double slash the other commands in scripts.

    P.S. Quote me if it doesn't work, that way I get notified :p
  5. Euphoria said:
    Then maybe it's not a window :o

    I just figured it was a window with the opacity set to 0...

    Hmm. In the auto-life script did you put \\*\\| to make it wait? (or you could have used \\*\\.) Don't forget that in MA's Global Text unless you have the auto mode set to true, you have to put \\* before all commands in scripts and double slash the other commands in scripts.

    P.S. Quote me if it doesn't work, that way I get notified :p
    Hello again!

    I probably should have mentioned this before, but I tried it with the \\* already as well. Sadly I got crazy amount of errors and crashes from it.
  6. That's strange, it shouldn't crash the game :o

    But I'm not sure if it would work either... I really don't know for sure, I'll look into the battle message script and get back to you if I have an answer, if not maybe someone else will come in and be of more help.

    Edit: You can try playing with the default battle log settings:

    Spoiler
    class Window_BattleLog < Window_Selectable #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, window_width, window_height) self.z = 200 self.opacity = 0 @lines = [] @num_wait = 0 create_back_bitmap create_back_sprite refresh end #-------------------------------------------------------------------------- # * Free #-------------------------------------------------------------------------- def dispose super dispose_back_bitmap dispose_back_sprite end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width Graphics.width end #-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height fitting_height(max_line_number) end #-------------------------------------------------------------------------- # * Get Maximum Number of Lines #-------------------------------------------------------------------------- def max_line_number return 6 end #-------------------------------------------------------------------------- # * Create Background Bitmap #-------------------------------------------------------------------------- def create_back_bitmap @back_bitmap = Bitmap.new(width, height) end #-------------------------------------------------------------------------- # * Create Background Sprite #-------------------------------------------------------------------------- def create_back_sprite @back_sprite = Sprite.new @back_sprite.bitmap = @back_bitmap @back_sprite.y = y @back_sprite.z = z - 1 end #-------------------------------------------------------------------------- # * Free Background Bitmap #-------------------------------------------------------------------------- def dispose_back_bitmap @back_bitmap.dispose end #-------------------------------------------------------------------------- # * Free Background Sprite #-------------------------------------------------------------------------- def dispose_back_sprite @back_sprite.dispose end #-------------------------------------------------------------------------- # * Clear #-------------------------------------------------------------------------- def clear @num_wait = 0 @lines.clear refresh end #-------------------------------------------------------------------------- # * Get Number of Data Lines #-------------------------------------------------------------------------- def line_number @lines.size end #-------------------------------------------------------------------------- # * Go Back One Line #-------------------------------------------------------------------------- def back_one @lines.pop refresh end #-------------------------------------------------------------------------- # * Return to Designated Line #-------------------------------------------------------------------------- def back_to(line_number) @lines.pop while @lines.size > line_number refresh end #-------------------------------------------------------------------------- # * Add Text #-------------------------------------------------------------------------- def add_text(text) @lines.push(text) refresh end #-------------------------------------------------------------------------- # * Replace Text # Replaces the last line with different text. #-------------------------------------------------------------------------- def replace_text(text) @lines.pop @lines.push(text) refresh end #-------------------------------------------------------------------------- # * Get Text From Last Line #-------------------------------------------------------------------------- def last_text @lines[-1] end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh draw_background contents.clear @lines.size.times {|i| draw_line(i) } end #-------------------------------------------------------------------------- # * Draw Background #-------------------------------------------------------------------------- def draw_background @back_bitmap.clear @back_bitmap.fill_rect(back_rect, back_color) end #-------------------------------------------------------------------------- # * Get Background Rectangle #-------------------------------------------------------------------------- def back_rect Rect.new(0, padding, width, line_number * line_height) end #-------------------------------------------------------------------------- # * Get Background Color #-------------------------------------------------------------------------- def back_color Color.new(0, 0, 0, back_opacity) end #-------------------------------------------------------------------------- # * Get Background Opacity #-------------------------------------------------------------------------- def back_opacity return 64 end #-------------------------------------------------------------------------- # * Draw Line #-------------------------------------------------------------------------- def draw_line(line_number) rect = item_rect_for_text(line_number) contents.clear_rect(rect) draw_text_ex(rect.x, rect.y, @lines[line_number]) end #-------------------------------------------------------------------------- # * Set Wait Method #-------------------------------------------------------------------------- def method_wait=(method) @method_wait = method end #-------------------------------------------------------------------------- # * Set Wait Method for Effect Execution #-------------------------------------------------------------------------- def method_wait_for_effect=(method) @method_wait_for_effect = method end #-------------------------------------------------------------------------- # * Wait #-------------------------------------------------------------------------- def wait @num_wait += 1 @method_wait.call(message_speed) if @method_wait end #-------------------------------------------------------------------------- # * Wait Until Effect Execution Ends #-------------------------------------------------------------------------- def wait_for_effect @method_wait_for_effect.call if @method_wait_for_effect end #-------------------------------------------------------------------------- # * Get Message Speed #-------------------------------------------------------------------------- def message_speed return 20 end
    Right at the bottom, try changing message_speed's "return 20" to like return 35

    Oh, that's located in the script editor under Window_BattleLog
  7. Euphoria said:
    That's strange, it shouldn't crash the game :o

    But I'm not sure if it would work either... I really don't know for sure, I'll look into the battle message script and get back to you if I have an answer, if not maybe someone else will come in and be of more help.

    Edit: You can try playing with the default battle log settings:

    Spoiler
    class Window_BattleLog < Window_Selectable #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, window_width, window_height) self.z = 200 self.opacity = 0 @lines = [] @num_wait = 0 create_back_bitmap create_back_sprite refresh end #-------------------------------------------------------------------------- # * Free #-------------------------------------------------------------------------- def dispose super dispose_back_bitmap dispose_back_sprite end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width Graphics.width end #-------------------------------------------------------------------------- # * Get Window Height #-------------------------------------------------------------------------- def window_height fitting_height(max_line_number) end #-------------------------------------------------------------------------- # * Get Maximum Number of Lines #-------------------------------------------------------------------------- def max_line_number return 6 end #-------------------------------------------------------------------------- # * Create Background Bitmap #-------------------------------------------------------------------------- def create_back_bitmap @back_bitmap = Bitmap.new(width, height) end #-------------------------------------------------------------------------- # * Create Background Sprite #-------------------------------------------------------------------------- def create_back_sprite @back_sprite = Sprite.new @back_sprite.bitmap = @back_bitmap @back_sprite.y = y @back_sprite.z = z - 1 end #-------------------------------------------------------------------------- # * Free Background Bitmap #-------------------------------------------------------------------------- def dispose_back_bitmap @back_bitmap.dispose end #-------------------------------------------------------------------------- # * Free Background Sprite #-------------------------------------------------------------------------- def dispose_back_sprite @back_sprite.dispose end #-------------------------------------------------------------------------- # * Clear #-------------------------------------------------------------------------- def clear @num_wait = 0 @lines.clear refresh end #-------------------------------------------------------------------------- # * Get Number of Data Lines #-------------------------------------------------------------------------- def line_number @lines.size end #-------------------------------------------------------------------------- # * Go Back One Line #-------------------------------------------------------------------------- def back_one @lines.pop refresh end #-------------------------------------------------------------------------- # * Return to Designated Line #-------------------------------------------------------------------------- def back_to(line_number) @lines.pop while @lines.size > line_number refresh end #-------------------------------------------------------------------------- # * Add Text #-------------------------------------------------------------------------- def add_text(text) @lines.push(text) refresh end #-------------------------------------------------------------------------- # * Replace Text # Replaces the last line with different text. #-------------------------------------------------------------------------- def replace_text(text) @lines.pop @lines.push(text) refresh end #-------------------------------------------------------------------------- # * Get Text From Last Line #-------------------------------------------------------------------------- def last_text @lines[-1] end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh draw_background contents.clear @lines.size.times {|i| draw_line(i) } end #-------------------------------------------------------------------------- # * Draw Background #-------------------------------------------------------------------------- def draw_background @back_bitmap.clear @back_bitmap.fill_rect(back_rect, back_color) end #-------------------------------------------------------------------------- # * Get Background Rectangle #-------------------------------------------------------------------------- def back_rect Rect.new(0, padding, width, line_number * line_height) end #-------------------------------------------------------------------------- # * Get Background Color #-------------------------------------------------------------------------- def back_color Color.new(0, 0, 0, back_opacity) end #-------------------------------------------------------------------------- # * Get Background Opacity #-------------------------------------------------------------------------- def back_opacity return 64 end #-------------------------------------------------------------------------- # * Draw Line #-------------------------------------------------------------------------- def draw_line(line_number) rect = item_rect_for_text(line_number) contents.clear_rect(rect) draw_text_ex(rect.x, rect.y, @lines[line_number]) end #-------------------------------------------------------------------------- # * Set Wait Method #-------------------------------------------------------------------------- def method_wait=(method) @method_wait = method end #-------------------------------------------------------------------------- # * Set Wait Method for Effect Execution #-------------------------------------------------------------------------- def method_wait_for_effect=(method) @method_wait_for_effect = method end #-------------------------------------------------------------------------- # * Wait #-------------------------------------------------------------------------- def wait @num_wait += 1 @method_wait.call(message_speed) if @method_wait end #-------------------------------------------------------------------------- # * Wait Until Effect Execution Ends #-------------------------------------------------------------------------- def wait_for_effect @method_wait_for_effect.call if @method_wait_for_effect end #-------------------------------------------------------------------------- # * Get Message Speed #-------------------------------------------------------------------------- def message_speed return 20 end
    Spoiler
    Right at the bottom, try changing message_speed's "return 20" to like return 35

    Oh, that's located in the script editor under Window_BattleLog
    From what I was seeing, my first guess would be the two scripts not liking each other because the battle text window and the normal text window are different apparently. In any case, you suggestion to edit the Window_battlelog proved to be just what was needed! Thanks!
  8. Glad I could help! I'd suggest keeping a comment of the original number that was there in case you want to change back though!
  9. Euphoria said:
    Glad I could help! I'd suggest keeping a comment of the original number that was there in case you want to change back though!
    That is ALWAYS good advice lol :p