Difference between revisions of "setGroupId"
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (example) |
Killzone Kid (talk | contribs) (group id swap explained) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | | Sets a group's identity, how it will be displayed in chat, for example. The identity setup | + | | Sets a group's identity, how it will be displayed in chat, for example. While groups on the different [[Side|sides]] can have identical ids, the groups on the same [[side]] cannot. When given id exists already, the group which currently has it will simply swap it with the current id of the group for which this id is intended. For example: |
+ | <code>group1 <nowiki>=</nowiki> [[createGroup]] [[west]]; | ||
+ | group2 <nowiki>=</nowiki> [[createGroup]] [[west]]; | ||
+ | |||
+ | group1 [[setGroupId]] ["Active Group"]; | ||
+ | group2 [[setGroupId]] ["Inactive Group"]; | ||
+ | |||
+ | [[systemChat]] [[groupId]] group1; //"Active Group"; | ||
+ | [[systemChat]] [[groupId]] group2; //"Inactive Group"; | ||
+ | |||
+ | group2 [[setGroupId]] ["Active Group"]; | ||
+ | |||
+ | [[systemChat]] [[groupId]] group1; //"Inactive Group"; | ||
+ | [[systemChat]] [[groupId]] group2; //"Active Group";</code> | ||
+ | |||
+ | The identity setup could also consist of format keywords (marked with %) and param keywords taken from CfgWorlds config. Basically it is like [[format]] command but with some special group keywords. For Arma 3 possible values are: | ||
<br><br> | <br><br> | ||
%GroupSquad | %GroupSquad | ||
Line 93: | Line 108: | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
− | + | |x1= '''Arma 3''':<code>[[group]] [[player]] [[setGroupId]] ["Some name for the group"]; | |
− | | | + | [[hint]] [[groupId]] [[group]] [[player]]; //"Some name for the group" |
+ | [[player]] [[sideChat]] "lalala"; //Some name for the group (KK): "lalala"</code>|= Example1 | ||
+ | |x2= '''Arma 3''':<code>[[group]] [[player]] [[setGroupId]] ["%GroupNames :=: %GroupColors","Alpha","GroupColor2"]; | ||
[[hint]] [[groupId]] [[group]] [[player]]; //"Alpha :=: Red" | [[hint]] [[groupId]] [[group]] [[player]]; //"Alpha :=: Red" | ||
− | [[player]] [[sideChat]] "lalala"; //Alpha :=: Red | + | [[player]] [[sideChat]] "lalala"; //Alpha :=: Red (KK): "lalala"</code>|= Example 2 |
− | |||
− | |||
− | |||
|x3= '''OFP''':<code>_group1 [[setGroupId]] ["Delta","GroupColor4"]</code> |= Example 3 | |x3= '''OFP''':<code>_group1 [[setGroupId]] ["Delta","GroupColor4"]</code> |= Example 3 | ||
|x4= '''ArmA / ArmA 2''':<code>_group1 [[setGroupId]] ["Assault Squad"]</code> |= Example 4 | |x4= '''ArmA / ArmA 2''':<code>_group1 [[setGroupId]] ["Assault Squad"]</code> |= Example 4 |
Revision as of 22:14, 26 June 2016
Notes
- In OFP, group ID format must be [letter, color, picture] or [letter, color].
Letter is one of:
- "Alpha"
- "Bravo"
- "Charlie"
- "Delta"
- "Echo"
- "Foxtrot"
- "Golf"
- "Hotel"
- "Kilo"
- "Yankee"
- "Zulu"
- "Buffalo"
- "Convoy"
- "Guardian"
- "November"
- "Two"
- "Three"
- "Fox"
- "GroupColor0" - (Nothing)
- "GroupColor1" - Black
- "GroupColor2" - Red
- "GroupColor3" - Green
- "GroupColor4" - Blue
- "GroupColor5" - Yellow
- "GroupColor6" - Orange
- "GroupColor7" - Pink
- "Six" - Six
- Posted on August 4, 2006 - 11:01
- hardrock
- Notes from before the conversion: Note that this command does not name the group. To call a group "grp1", for example, write this in the init field of the group leader: grp1 = group this
- Posted on December 9, 2006 - 12:20
- Mondkalb
- Selfdefined Callsigns: In Armed Assault you're able to define the callsignletter by yourself. This can be for example "Fireteam", or "Specialforces". this setgroupId ["Attackteam"]
- Ceeeb
- In OFP v1.96, the radio callsign strings for a mission can be redefined by creating a stringtable.csv in the mission folder. All string names except FOX can be found within the main stringtable.csv. Note "SIX" has a string suggesting it is a groupname, although the engine uses it as a colour. Some examples of the string names : STR_CFG_GRPNAMES_ALPHA, STR_CFG_GRPNAMES_FOX, STR_CFG_GRPCOL_BLACK, STR_CFG_GRPNAMES_SIX, STR_CFG_FIREFLYBASE, STR_CFG_PAPABEAR, STR_CFG_HQ_BASE, STR_CFG_HQ_BASE.
Bottom Section
- Posted on April 21, 2015 - 23:21 (UTC)
- Killzone Kid
-
List of available keywords from config:
"if ((configName _x) select [0, 5] == 'group') then { diag_log ('%' + configName _x); for '_i' from 0 to count _x - 1 do { diag_log ('* ""' + configName (_x select _i) + '"" -> ' + getText ((_x select _i) >> 'name')); }; }; false" configClasses (configFile >> "CfgWorlds");