Side Relations: Difference between revisions
Jump to navigation
Jump to search
m (category) |
Lou Montana (talk | contribs) m (Text replacement - "{{task/}}" to "{{Checkbox|yes}}") |
||
Line 24: | Line 24: | ||
|- | |- | ||
| [[east]] | | [[east]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 37: | Line 37: | ||
| [[west]] | | [[west]] | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 49: | Line 49: | ||
| [[resistance]] | | [[resistance]] | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 61: | Line 61: | ||
| [[civilian]] | | [[civilian]] | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 79: | Line 79: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 91: | Line 91: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 103: | Line 103: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 115: | Line 115: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 127: | Line 127: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
|- | |- | ||
| [[sideLogic]] | | [[sideLogic]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 163: | Line 163: | ||
| [[east]] | | [[east]] | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 174: | Line 174: | ||
|- | |- | ||
| [[west]] | | [[west]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 180: | Line 180: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 186: | Line 186: | ||
|- | |- | ||
| [[resistance]] | | [[resistance]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 192: | Line 192: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 198: | Line 198: | ||
|- | |- | ||
| [[civilian]] | | [[civilian]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 204: | Line 204: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 210: | Line 210: | ||
|- | |- | ||
| [[sideAmbientLife]] | | [[sideAmbientLife]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 222: | Line 222: | ||
|- | |- | ||
| [[sideUnknown]] | | [[sideUnknown]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 234: | Line 234: | ||
|- | |- | ||
| [[sideEnemy]] | | [[sideEnemy]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 246: | Line 246: | ||
|- | |- | ||
| [[sideFriendly]] | | [[sideFriendly]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 258: | Line 258: | ||
|- | |- | ||
| [[sideEmpty]] | | [[sideEmpty]] | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 276: | Line 276: | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
| {{ | | {{Checkbox|yes}} | ||
| {{task}} | | {{task}} | ||
| {{task}} | | {{task}} | ||
Line 344: | Line 344: | ||
[[if]] (_x) [[then]] | [[if]] (_x) [[then]] | ||
{ | { | ||
_result = _result + "| <nowiki>{{ | _result = _result + "| <nowiki>{{Checkbox|yes}}</nowiki>\n"; | ||
} | } | ||
[[else]] | [[else]] |
Revision as of 05:24, 26 December 2020
Sides relations
Sides friendship
Helper function: BIS_fnc_sideIsFriendly
Sides enmity
Helper function: BIS_fnc_sideIsEnemy
Change relations
- You can set which sides resistance is friendly/enemy to in the mission editor (click on the Intel box).
- Everyone is friendly toward civilians. Civilians AI have a total impunity and can kill any enemy without retaliation (same as captive units).
- You can use the setFriend command to set relations between any sides (even east and west).
// will make east friendly to west and vice versa east setFriend [west, 1]; west setFriend [east, 1];
One way hostility
Using the setCaptive command allows you to stop enemy units to fire on the target unit.
_soldier setCaptive true; // _soldier can shoot at enemy but enemy will not return fire
You can re-activate hostility by canceling captive status.
_soldier setCaptive false; // _soldier will be shot at again by enemy units
Two way hostility with civilians
To make a civilian a potential target to other sides, you can either:
- make the civilian a renegade by using the addRating command. This will make him a renegade, meaning an enemy to everyone including other civilians.
_civilian addRating -10000; // will cause sides to shoot civilian, but not civilian to shoot back - for that, use setFriend
private _eastGroup = createGroup east; [_civilian] joinSilent _eastGroup;
Set in the editor
- Group your civilians with an east leader
- Delete the east leader on mission load:
- Put
deleteVehicle this
in the officer’s initialization field. - Alternatively, set the probability of presence slider of the officer to zero.
- Put
- On mission start, the east leader will not be here but the civilians will be on the east side.
Code used to generate the tables:
private _func = BIS_fnc_sideIsFriendly; private _sidesAsString = ["east", "west", "resistance", "civilian", "sideAmbientLife", "sideUnknown", "sideEnemy", "sideFriendly", "sideEmpty", "sideLogic"]; private _sideResults = []; { private _sideAsString = _x; private _side = call compile _sideAsString; _sideResults pushBack ([_sideAsString] + (_sidesAsString apply { [_side, call compile _x] call _func })); } forEach _sidesAsString; private _result = "{{| class=""bikitable"" style=""text-align: center""\n|-\n"; { _result = _result + "! [[" + _x +"]]\n"; } forEach _sidesAsString; { private _results = _x; { if (_x isEqualType true) then { if (_x) then { _result = _result + "| {{Checkbox|yes}}\n"; } else { _result = _result + "| {{task}}\n"; } } else { _result = _result + ("| [[" + _x + "]]\n"); } } forEach _results; _result = _result + "|-\n"; } forEach _sideResults; _result = _result + "|}"; _result;↑ Back to spoiler's top