-
Notifications
You must be signed in to change notification settings - Fork 99
set_faction_attackable_above
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
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.