UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Making Text Appear

broken avatar :(
Created 10 years ago
by animallover
0 Members and 1 Guest are viewing this topic.
1,866 views
broken avatar :(
×
broken avatar :(
Location: gbIsle of Man
Date Registered: 17 July 2013
Last active: 4 years ago
Posts
536
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
- It was a clear black night, a clear white moon -
Signature
<3

AnimalLover

Aranda
Aldenrade
Christmas

<3

×
animallover's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Quick question! Anyway of making text appear on the screen from hitting certain triggers? Like say you walk into a trigger or shoot a trigger text shows up on the screen! :) Thanks
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Not sure what your looking for exactly but heres some of the functions that print things on the screen:

Code Snippet
Plaintext
iprintln("");
iprintlnbold("");
bbPrint( "", level.script ); // not sure what this one does exactly
Last Edit: April 03, 2014, 08:54:30 pm by daedra descent
broken avatar :(
×
broken avatar :(
Location: gbIsle of Man
Date Registered: 17 July 2013
Last active: 4 years ago
Posts
536
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
- It was a clear black night, a clear white moon -
×
animallover's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Not sure what your looking for exactly but heres some of the functions that print things on the screen:

Code Snippet
Plaintext
iprintln("");
iprintlnbold("");
bbPrint( "", level.script ); // not sure what this one does exactly

So where abouts do i go to put these codes? and lets say i shoot a trigger (like you do to open secret doors) you can make it say "you found a secret teddy bear"
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
So where abouts do i go to put these codes? and lets say i shoot a trigger (like you do to open secret doors) you can make it say "you found a secret teddy bear"

You only need one of them, i just posted them since i didn't know what you wanted.

i'd use this one though:
Code Snippet
Plaintext
iprintln("");

Put that after the trigger has been activated. To make it say anything you need to add it in between the quotation marks like so:

Code Snippet
Plaintext
iprintln("you found a secret teddy bear");

The message should display in the top left corner once the trigger has been activated.
broken avatar :(
×
broken avatar :(
Location: gbIsle of Man
Date Registered: 17 July 2013
Last active: 4 years ago
Posts
536
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
- It was a clear black night, a clear white moon -
×
animallover's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
So do i just add that in my maps gsc?  :P
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
So do i just add that in my maps gsc?  :P

If thats hwere your trigger function is at then yes.
Marked as best answer by animallover 10 years ago
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 4 days ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Right click in the 2d view of radiant.
Go to "trigger" then you can see you can choose between different triggers, "use" is for if you want to press a button on the keyboard to show the text. The one called "damage" is if you want to shoot the trigger to show the text.
The one called "multiple" is for if you want to touch the trigger to show the text. Give whatever trigger you use this KVP
targetname - trigger
Code Snippet
Plaintext
text_script()
{
trigger = GetEntArray ("trigger","targetname");

for(i = 0; i < trigger.size; i++)
{
trigger[i] SetCursorHint( "HINT_NOICON" );
trigger[i] sethintstring("Press &&1 to show a text");

trigger[i] waittill ("trigger");
iprintlnBold("you found a secret teddy bear");
wait(1);
trigger[i] delete();
}
}

Edit: Script is not tested
Last Edit: April 03, 2014, 09:53:21 pm by Ege115

 
Loading ...