[Solved] On Screen Messages

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
KadoDragon
Posts: 34
Joined: Sat Oct 18, 2014 3:54 am

[Solved] On Screen Messages

Post by KadoDragon »

Is there a way to make on screen messages appear? For example, I walk on a floor trigger and a message shows up on the screen saying something.
Last edited by KadoDragon on Fri Oct 24, 2014 9:45 am, edited 1 time in total.
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: On Screen Messages

Post by ScroLL »

This is off the top of my head but should be correct.

Make a floor trigger that connects to a script entity and runs the customMessage function. the script should have the following code

Code: Select all

function customMessage()
    hudPrint("This is my custom message. Hello world!")
end
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Re: On Screen Messages

Post by SnowyOwl47 »

ScroLL wrote:This is off the top of my head but should be correct.

Make a floor trigger that connects to a script entity and runs the customMessage function. the script should have the following code

Code: Select all

function customMessage()
    hudPrint("This is my custom message. Hello world!")
end
Correct and use \n to make enters whatever there called like this
\n =

That gap
User avatar
KadoDragon
Posts: 34
Joined: Sat Oct 18, 2014 3:54 am

Re: On Screen Messages

Post by KadoDragon »

SnowyOwl47 wrote:
ScroLL wrote:This is off the top of my head but should be correct.

Make a floor trigger that connects to a script entity and runs the customMessage function. the script should have the following code

Code: Select all

function customMessage()
    hudPrint("This is my custom message. Hello world!")
end
Correct and use \n to make enters whatever there called like this
\n =

That gap
Are you refering to a Hard Return.
Like
That?

EDIT: Ooooh! I just thought of something. Am I able to play a sound with a trigger too? I could do some simple voice acting narration to go with the hud messages. Would give me an excuse to use my $100 microphone. :P

EDIT 2: Kay. I found the sound entity. Dur... But, I don't know how to import a sound. I'm assuming it's like importing music. I tried but only failed. Would like to know how to import sounds.
Post Reply