-
Notifications
You must be signed in to change notification settings - Fork 90
set_faction_prop
Ryzom Core Wiki edited this page Jul 8, 2024
·
3 revisions
title: Set Faction Prop description: published: true date: 2023-03-16T23:10:41.030Z tags: editor: markdown dateCreated: 2023-03-16T22:28:13.985Z
The setFactionProp native AI script function sets a property of the group's faction profile.
There are special factions that are automatically attributed to entities.
- Player
- Predator
- Famous<faction>, where faction is the name of a Ryzom faction with uppercase initials and without underscores (e.g., FamousTribeBeachcombers represents players with a positive fame with the Tribe Beachcombers faction).
- outpost:<id>:<side>, where id is the outpost alias as an int, and side is either attacker or defender. These factions may see their format change soon and shouldn't be used without prior discussion with the responsible coder. They represent players and squads fighting in an outpost conflict.
()setFactionProp(Property: s, Content: s) // setFactionProp_ss_
- Property (string): The property to modify. Valid values for Property are:
- faction
- ennemyFaction
- friendFaction
- Content (string): A '|' separated list of faction names.
()setFactionProp("ennemyFaction", "Predator|FamousTribeBeachcombers");
This example code sets the enemyFaction property of the group's faction profile to include both the "Predator" faction and the "FamousTribeBeachcombers" faction.