Save-Point
Console Window (HUD) - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+------ Forum: Message/Text System (https://www.save-point.org/forum-96.html)
+------ Thread: Console Window (HUD) (/thread-6314.html)



Console Window (HUD) - Eradicator - 03-27-2008

Console Window (HUD)
By [CE]Eradicator
Sep 27, 2008

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Installation

Put both of these in new scripts above Main.

Window_Console

Scene_Map



Now edit Game_Temp, add this with the other accessors.

Code:
attr_accessor :ctext

Add this in the Game_Temp initalization method

Code:
@ctext = ["","","Game Initalized","Welcome to Game Name Here!"]


Add a new def to Game_Temp.

Code:
def push(msg)
    pushi = 0
    @ctext.each { |ltext|
      #print(i)
      if pushi == 3
        @ctext[pushi] = msg
      else
        @ctext[pushi] = @ctext[pushi+1]
      end
      pushi = pushi + 1
    }
  end


Your Game_Temp should look something like this.

Finished Game_Temp


Adding Messages

To add a message to the console screen from an event, put a script call and do this.

Code:
$game_temp.push("Your message here.")


NOTE: Messages aren't handled, if you enter something extremely long its going to display like garbage from RGSS.

Screenshots
[Image: screen1-1.png]

Thanks for looking over my topic.

Regards,
Eradicator