Difference between revisions of "SetFactionRank"
Jump to navigation
Jump to search
imported>Khadir m (Grrr ... MediaWiki not updating pages when the page inclusion changed, again ...) |
imported>Vswe m (Added Search Terms) |
||
(8 intermediate revisions by 6 users not shown) | |||
Line 5: | Line 5: | ||
CaranyaRef.SetFactionRank MagesGuild, -1 | CaranyaRef.SetFactionRank MagesGuild, -1 | ||
Sets the actor's rank in the specified [[faction]]. If the actor is not a member of the faction, adds them to the faction at the new rank. | Sets the actor's rank in the specified [[:Category:Factions|faction]]. If the actor is not a member of the faction, adds them to the faction at the new rank. | ||
''SetFactionRank FactionID, -1'' will remove an actor from the faction. | ''SetFactionRank FactionID, -1'' will remove an actor from the faction. | ||
Line 11: | Line 11: | ||
==Notes== | ==Notes== | ||
The faction rank is set on the actor's [[base object]] as well as on the actor ([[reference]]) itself. Any actor spawned from the same base object (by a [[Leveled Creature|leveled list]], by [[PlaceAtMe]] and so on) will have this faction, at the same rank, already set. This is not a problem for named characters (of which there is usually just one in the world), but ''can'' be a problem for random, unnamed characters or creatures. | The faction rank is set on the actor's [[Glossary#B|base object]] as well as on the actor ([[reference]]) itself. Any actor spawned from the same base object (by a [[Leveled Creature|leveled list]], by [[PlaceAtMe]] and so on) will have this faction, at the same rank, already set. This is not a problem for named characters (of which there is usually just one in the world), but ''can'' be a problem for random, unnamed characters or creatures. | ||
==See also== | ==See also== | ||
Line 20: | Line 20: | ||
==Reference== | ==Reference== | ||
[[SetFactionRank/Reference]] | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category:Functions (CS)]] | |||
[[Category: Functions (CS 1.0)]] | |||
[[Category: Faction Functions]] | [[Category: Faction Functions]] | ||
[[Category: Faction Functions (CS 1.0)]] | |||
[[Category:Actor Functions]] | |||
[[Category:Actor Functions (CS 1.0)]] | |||
<!-- Begin Search Terms | |||
Set | |||
Faction | |||
Rank | |||
End Search Terms --> |
Latest revision as of 12:40, 20 June 2008
Syntax:
[ActorID.]SetFactionRank FactionID, newRank
Examples:
SetFactionRank FightersGuild, 0 CaranyaRef.SetFactionRank MagesGuild, -1
Sets the actor's rank in the specified faction. If the actor is not a member of the faction, adds them to the faction at the new rank.
SetFactionRank FactionID, -1 will remove an actor from the faction.
Notes[edit | edit source]
The faction rank is set on the actor's base object as well as on the actor (reference) itself. Any actor spawned from the same base object (by a leveled list, by PlaceAtMe and so on) will have this faction, at the same rank, already set. This is not a problem for named characters (of which there is usually just one in the world), but can be a problem for random, unnamed characters or creatures.
See also[edit | edit source]
Reference[edit | edit source]