set_faction_attackable_above - ryzom/ryzomcore GitHub Wiki
title: Set Faction Attackable Above description: published: true date: 2023-03-16T23:10:34.917Z tags: editor: markdown dateCreated: 2023-03-16T22:28:06.204Z
The setFactionAttackableAbove native AI script function sets the group as being attackable or not by players having their fame matching the specified condition.
()setFactionAttackableAbove(Faction: s, Threshold: f, Attackable: f) // setFactionAttackableAbove_sff_
- Faction (string): The faction against which player fame will be tested.
- Threshold (float): The test threshold above which players will be able to attack.
- Attackable (float): Tells whether the group is attackable or not (0 meaning not attackable, 1 meaning attackable).
()setFactionAttackableAbove("TribeNightTurners", 0, 1);
This example code sets the group as attackable by players with positive "TribeNightTurners" fame.