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( | + | <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
|
SmartTeamMessageDisplays one text message for a specified team, and another for the other team(s). You can specify colors for both messages. UsageSmartTeamMessage(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
Type in your own message, or use an entry from resource\FortressForever_english.txt OutputReturns nothing ExampleSmartTeamMessage(team, "You win!", "You lose, losers.") |