set_faction_attackable_below - ryzom/ryzomcore GitHub Wiki


title: Set Faction Attackable Below description: published: true date: 2023-03-12T19:07:35.978Z tags: editor: markdown dateCreated: 2023-03-12T19:07:33.167Z

setFactionAttackableBelow

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.

Syntax

()setFactionAttackableBelow(faction: s, threshold: f, attackable: f) // setFactionAttackableBelow_sff_

Arguments

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

Examples

()setFactionAttackableBelow("TribeMatisianBorderGuards", 0, 1);

This example code makes the group attackable by players with negative tribe_matisian_border_guards fame.

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