set_faction_attackable_above - ryzom/ryzomcore GitHub Wiki


title: Set Faction Attackable Above description: published: true date: 2023-03-12T19:03:01.481Z tags: editor: markdown dateCreated: 2023-03-12T19:02:58.582Z

setFactionAttackableAbove

The setFactionAttackableAbove native AI script function sets the group as being attackable or not by players having their fame matching the specified condition.

Syntax

()setFactionAttackableAbove(Faction: s, Threshold: f, Attackable: f) // setFactionAttackableAbove_sff_ 

Arguments

  • 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).

Examples

()setFactionAttackableAbove("TribeNightTurners", 0, 1);

This example code sets the group as attackable by players with positive "TribeNightTurners" fame.

⚠️ **GitHub.com Fallback** ⚠️