Making a message show a variable

Post » Sat May 28, 2011 6:25 pm

Hey

can i make a script to load when the player enters the cell maybe "onload" to get the number of one npc, say a guard in that cell and make a message in the top right and have it say "There are (number of guards in cell) on duty"

Thanks Persidon
User avatar
Euan
 
Posts: 3376
Joined: Mon May 14, 2007 3:34 pm

Post » Sat May 28, 2011 2:45 pm

Yes there is, see here - http://geck.gamesas.com/index.php/ShowMessage#Formatting_messages.

To display an integer, you'll want to include "%g" in your message where you want the value to appear, then passing the variable storing the value as a parameter of http://geck.gamesas.com/index.php/ShowMessage, after the message itself.

Cipscis
User avatar
JLG
 
Posts: 3364
Joined: Fri Oct 19, 2007 7:42 pm


Return to Fallout 3