Welcome message

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Welcome message

Post by smartaiguy »

OK I want to display a welcome message when the game starts like "WElecome to my map, by smartaiguy!!". I also would like to add a message when you going to team. Like "Welcome to the battlefield, go get em." I don't want to change the localization file so it gets changed allover just my map. I know I should use this:

Code: Select all

iprintlnbold_noloc "Text"
Thanks!
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Loading screen

Post by tltrude »

iprintlnbold_noloc "Text" will make that cliking sound and display the text in bold white on the left of the screen.

iprintln "text" will print the text in yellow on the left with no sound.
You can put either under "level waittill spawn" or prespawn.

A third way is to place a trigger_multiple around each player spawn spot and set:

Key: message
Value: The text of your message!!!
Key: count
Value: 1

That prints the message in the middle of the screen in non-bold white.

For the welcome a nice loading screen is what you want. There is a tutorial here in the scripting forum for that (Sticky: Loadingscreens De-Mystified) .
Last edited by tltrude on Thu Oct 30, 2003 2:06 am, edited 1 time in total.
Tom Trude,

Image
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

Yes I've got my loading screen

here's my script

Code: Select all

level waittill spawn 

iprintlnbold_noloc "Man your Battelstations!!"
That doesn't seem to work though!
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

should

Post by tltrude »

Should work, although you might want to look up how to spell "battle". It will probably only work the first game and not on restart.
Tom Trude,

Image
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Re: should

Post by smartaiguy »

tltrude wrote:Should work, altough you might want to look up how to spell "battle".
:oops: :oops: whoops
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Post by tltrude »

I misspelled "although", DOH! Look at my first post again and try that trigger idea.
Tom Trude,

Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

trigger

Post by tltrude »

This uses something like that spawn spot trigger, but it is on the target and displays the message (the number of the target) when shot.

Image
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

level waittill spawn

iprintlnbold_noloc "Man your Battelstations!!"

This only prints the text to the players that are currently on the server. Generally, immediately after server spawn there are no players in the game yet, so nobody will see the message. If you use this:

level waittill spawn

wait 2

iprintlnbold_noloc "Man your Battelstations!!"

You will see the message :) but players who join later won't :(
Image
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

OK, I'll add the wait

But do you think I should do this

Code: Select all

level waittill spawn
level waittill roundstart
wait 2

iprintlnbold_noloc "Man your Battelstations!!" 

Since it only works if I type "restart" in the console. :?
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

You could also try this, although I have no idea if the players who join later will see it too. (NIL is time in seconds);


level waittill spawn

wait 4
exec global/message_print.scr::message "your message" NIL 5
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

Right, but I've got things working though (thanks anyways)
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
Post Reply