-
Notifications
You must be signed in to change notification settings - Fork 101
set_faction_attackable_below
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Set Faction Attackable Below description: published: true date: 2023-03-16T23:10:37.815Z tags: editor: markdown dateCreated: 2023-03-16T22:28:10.264Z
The setFactionAttackableBelow native AI script function sets the group as being attackable (or not) by players having their fame matching the specified condition. If player fame for Faction is below specified Threshold, the bot will be attackable by that player or not depending on Attackable parameter, 0 meaning not attackable, 1 meaning attackable.
()setFactionAttackableBelow(faction: s, threshold: f, attackable: f) // setFactionAttackableBelow_sff_
- faction (string): The faction against which player fame will be tested.
- threshold (float): The test threshold below which players will be able to attack.
- attackable (float): Whether the group is attackable or not, 0 meaning not attackable, 1 meaning attackable.
()setFactionAttackableBelow("TribeMatisianBorderGuards", 0, 1);
This example code makes the group attackable by players with negative tribe_matisian_border_guards fame.