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

Print text on screen when buying a door.

broken avatar :(
Created 7 years ago
by StyledSnail
0 Members and 1 Guest are viewing this topic.
1,996 views
broken avatar :(
×
broken avatar :(
Location: usAuburn, NY
Date Registered: 24 December 2013
Last active: 3 years ago
Posts
40
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
StyledSnail's Groups
How do i get text on screen when buying a door. Not hintstring, but text that would literally say "you bought a door" or something.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Print text in the top-leftof the screen:
Code Snippet
Plaintext
player iprintln( "You bought a door!");



Print text in the center of the screen:
Code Snippet
Plaintext
player iprintlnbold( "You bought a door!");
Last Edit: July 14, 2017, 05:17:38 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: usAuburn, NY
Date Registered: 24 December 2013
Last active: 3 years ago
Posts
40
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
StyledSnail's Groups
I already know the print script. I need to know how to make it so when I buy the door it prints it. Like how to get the action of buying the door to lead to the text being printed. Thanks for the reference script though. It will come in handy.
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Thread a function after
maps\_zombiemode::main();
thread yourfunction();

In yourfunction() get the trigger with getent. You can add kvp "script_personality" "anyname" to the trigger if the targetname and script_noteworthy arent unique.
Then waitill trigger and then println.
Ex
trigger = getent ("script_personality","anyname");
trigger waittill ("trigger");
Iprintln(" your message ");
broken avatar :(
×
broken avatar :(
Location: usAuburn, NY
Date Registered: 24 December 2013
Last active: 3 years ago
Posts
40
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
StyledSnail's Groups
Ok thank you. I'll try it out when I'm able to get to my pc.

 
Loading ...