Is it possible to target an Action
or an entire mod against own ship, OR friendly, OR enemy?
Inspired by 0.12.10 ShieldCollisions
feature mentioned here.
Possible use cases:
- Allegiance-based mods that empower/restrict ship designs by allegiance
- Hero-ship mods that affects only player ship(s)
- Aesthetic mods that creates visually different (colors, decals, particle effects, etc) ships, without having to introduce whole new ship class.
Pseudo code/syntax:
Let's say a new parameter, Scope
- For backward compatibility, It would be an optional parameter.
- To be future proof,
Scope
could be a set/array of pre-defined strings similar to a ship part's TypeCategories
, for example:
Scope = [ own, enemy, friendly, neutral, player_1, player_2, ..., player_N ]
// OR simply, by default
Scope = [ all ]
Example 1: At mod-level; default [all]
Scope = [ own, friendly, player_1 ] // Actions only affect player and friendly ships
Actions
[
...
]
Example 2: At action-level; default [all]
Actions
[
Action
{
Scope = [ enemy, player_2, player_3, player_4 ]
Action = Add | AddMany | Replace | Overrides | Remove | RemoveMany
...
}
...
]
Are you an active modder?
You are welcome to provide alternative model or workaround, from your experience.