Page 1 of 1
Welcome message
Posted: Thu Oct 30, 2003 1:15 am
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:
Thanks!
Loading screen
Posted: Thu Oct 30, 2003 1:52 am
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) .
Posted: Thu Oct 30, 2003 2:06 am
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!
should
Posted: Thu Oct 30, 2003 2:12 am
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.
Re: should
Posted: Thu Oct 30, 2003 2:15 am
by smartaiguy
tltrude wrote:Should work, altough you might want to look up how to spell "battle".

whoops
Posted: Thu Oct 30, 2003 2:19 am
by tltrude
I misspelled "although", DOH! Look at my first post again and try that trigger idea.
trigger
Posted: Thu Oct 30, 2003 2:23 am
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.

Posted: Thu Oct 30, 2003 6:44 am
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

Posted: Thu Oct 30, 2003 1:51 pm
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.

Posted: Mon Nov 10, 2003 1:31 pm
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
Posted: Mon Nov 10, 2003 1:41 pm
by smartaiguy
Right, but I've got things working though (thanks anyways)