Hey guys,
I wanted to create an add-on based on this post here: https://rpginabox.com/forum/d/382-text-above-entities-heads/3
This allows you to place text on the screen without a background like in Display_Message. You can add a character image to the printed text, change color and also add a character name as if it is being spoken by them. The text is non-blocking, meaning you can still do things on the map as it is displayed.
See Screenshots below for an idea of what this is like (Sorry, should have chosen better colors for this)
README:
ALWAYS MAKE A BACK UP OF YOUR GAME BEFORE USING THIS ADD-ON.
Installation:
STEP 1: Create your game in RPG in a box if you haven't already.
STEP 2: VERY IMPORTANT: Exit out of RPG in a Box.
STEP 3: Copy both the "widgets" and "Functions" folders from this zip and paste it into the game's directory which includes the game configuration and game folders.
STEP 4: Start up your game.
STEP 5: In whatever startup script you use, add the following:
show_widget("PrintText");
USAGE:
There is only one command you need to make use of this add-on:
disText(TEXT TO DISPLAY, TEXT COLOR, ENTITY OR PLAYER, SHOW THE CHARACTER NAME TRUE OR FALSE)
TEXT TO DISPLAY – The text you wish to print on screen.
TEXT COLOR – the color of the text being displayed. Does not effect the color of the character name if you show it. The text color can be in RGB or actual color.
ENTITY OR PLAYER – specify either player or specify the name of the entity you wish to speak this text. Make sure the entity is on the map, has a name id assigned to it.
SHOW THE CHARACTER NAME TRUE OR FALSE – True or false. True will display the text with the character name. EG: “Justin: Hey there!”. The character name will be in purple. False will just display the text without the character name.
EXAMPLES:
disText("Sup! no image", "green", "none", true); //Displays the text, but no image and no name
disText("Sup! ", "green", "sarah", true); //Displays the text, show character image and name
disText("Sup! ", "green", "sarah", false); //Displays the text, character image but no name
disText("Sup! ", "green", "none", false); //Displays the text, but no image and no name
disText("Hey there", "", player, true); //Displays the text, show player image and name


