Difference between revisions of "Lua:SmartTeamMessage"

From Fortress Forever Wiki
Jump to navigationJump to search
(New page: {{Infobox manual/Header}} ==SmartTeamMessage== Displays one text message for a specified team, and another for the other team(s). ===Usage=== <pre>SmartTeamMessage(player, playermessage,...)
 
m (2.4 update)
 
Line 2: Line 2:
 
==SmartTeamMessage==
 
==SmartTeamMessage==
  
Displays one text message for a specified team, and another for the other team(s).
+
Displays one text message for a specified team, and another for the other team(s). You can specify colors for both messages.
  
 
===Usage===
 
===Usage===
<pre>SmartTeamMessage(player, playermessage, teammessage, otherteammessage)</pre>
+
<pre>SmartTeamMessage(team, teammessage, otherteammessage)
 +
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorid, colorid )
 +
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorid, colorstring )
 +
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorstring, colorid )
 +
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorstring, colorstring )</pre>
  
 
===Input===
 
===Input===
Line 11: Line 15:
 
* teammessage(string) message for the selected team
 
* teammessage(string) message for the selected team
 
* otherteammessage(string) message for the other team(s)
 
* otherteammessage(string) message for the other team(s)
 +
* colorid(int) preset colors. See [[Lua:Flags#Color]]
 +
* colorstring(string) An RGB color string, e.g. "255 255 255"
  
 
Type in your own message, or use an entry from resource\FortressForever_english.txt
 
Type in your own message, or use an entry from resource\FortressForever_english.txt

Latest revision as of 23:42, 15 February 2010


SmartTeamMessage

Displays one text message for a specified team, and another for the other team(s). You can specify colors for both messages.

Usage

SmartTeamMessage(team, teammessage, otherteammessage)
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorid, colorid )
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorid, colorstring )
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorstring, colorid )
SmartTeamMessage( team, "teammessage", "otherteamsmessage", colorstring, colorstring )

Input

  • team(CFFTeam) The team that will see the primary message
  • teammessage(string) message for the selected team
  • otherteammessage(string) message for the other team(s)
  • colorid(int) preset colors. See Lua:Flags#Color
  • colorstring(string) An RGB color string, e.g. "255 255 255"

Type in your own message, or use an entry from resource\FortressForever_english.txt

Output

Returns nothing

Example

SmartTeamMessage(team, "You win!", "You lose, losers.")