Variable; ROE - HWRM/KarosGraveyard GitHub Wiki

Description

Rules Of Engagement define a ship's behavior in different situations regarding enemy actions.

Note: HWRM has no such thing as 'tactics' anymore; this concept was split between ROE and Stances (behavior toward enemies vs. formation spacing and multipliers).

There are three ROE:

Variable Name Value Description
OffensiveROE 0 Ships with offensive ROE will immediately try to attack any nearby enemy. What classes as 'nearby' varies from ship to ship.
DefensiveROE 1 Defensive ROE will make ships retaliate against enemies who attack either themselves or nearby allies. What classes as 'nearby' varies from ship to ship.
PassiveROE 2 Ships with passive ROE will not attack enemy ships under any circumstance unless directly ordered to do so.

Examples

SobGroups:

You can interact with a sobgroup's ROE via SobGroup_SetROE and SobGroup_GetROE.

SobGroup_GetROE("my-group"); -- returns 0, 1, or 2 for offensive, defensive, or passive ROE respectively
SobGroup_SetROE("my-group", DefensiveROE); -- sets "my-group"s ROE to defensive

Players:

A player's whole fleet can have their ROE set via Player_SetGlobalROE.

Player_SetGlobalROE(1, OffensiveROE); -- all ships belonging to player 1 are set to offensive

Related Pages