Editing
Faction Script
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Extends:''' [[Form Script]] Script for the manipulation of faction base objects. == Definition == <syntaxhighlight lang="papyrus"> ScriptName Faction extends Form </syntaxhighlight> == Properties == None == Global Functions == None == Member Functions == :'''Bool [[CanPayCrimeGold - Faction|CanPayCrimeGold]]()''' :*Checks to see if the player can pay the crime gold for this faction. :'''Int [[GetCrimeGold - Faction|GetCrimeGold]]()''' :*Obtains the amount of gold the player has to pay to this faction for crimes. :'''Int [[GetCrimeGoldNonViolent - Faction|GetCrimeGoldNonViolent]]()''' :*Obtains the amount of gold the player has to pay to this faction for non-violent crimes. :'''Int [[GetCrimeGoldViolent - Faction|GetCrimeGoldViolent]]()''' :*Obtains the amount of gold the player has to pay to this faction for violent crimes. :'''Int [[GetInfamy - Faction|GetInfamy]]()''' :*Obtains the player's current "infamy" with this faction. (Accumulated crime gold) :'''Int [[GetInfamyNonViolent - Faction|GetInfamyNonViolent]]()''' :*Obtains the player's current "non-violent infamy" with this faction. (Accumulated non-violent crime gold) :'''Int [[GetInfamyViolent - Faction|GetInfamyViolent]]()''' :*Obtains the player's current "violent infamy" with this faction. (Accumulated violent crime gold) :'''Int [[GetReaction - Faction|GetReaction]](Faction ''akOther'')''' :*Gets this faction's reaction towards the other faction. :'''Int [[GetStolenItemValueCrime - Faction|GetStolenItemValueCrime]]()''' :*Gets the value of all items stolen by the player from this faction that was witnessed. :'''Int [[GetStolenItemValueNoCrime - Faction|GetStolenItemValueNoCrime]]()''' :*Gets the value of all items stolen by the player from this faction that was not witnessed. :'''Bool [[IsFactionInCrimeGroup - Faction|IsFactionInCrimeGroup]](Faction ''akOther'')''' :*Returns whether the passed in faction is listed in this faction's crime group. :'''Bool [[IsPlayerExpelled - Faction|IsPlayerExpelled]]()''' :*Returns whether the player is expelled from this faction or not. :'''[[ModCrimeGold - Faction|ModCrimeGold]](Int ''aiAmount'', Bool ''abViolent'')''' :*Modifies the amount of crime gold for this faction, violent or non-violent. :'''[[ModReaction - Faction|ModReaction]](Faction ''akOther'', Int ''aiAmount'')''' :*Modifies this faction's reaction towards the other faction. :'''[[PlayerPayCrimeGold - Faction|PlayerPayCrimeGold]](Bool ''abRemoveStolenItems'', Bool ''abGoToJail'')''' :*Has this player pay the crime gold for this faction (and optionally lose their stolen items and go to jail). :'''[[SendAssaultAlarm - Faction|SendAssaultAlarm]]()''' :*Finds a nearby actor in this faction and has them behave as if they were assaulted. :'''[[SendPlayerToJail - Faction|SendPlayerToJail]](Bool ''abRemoveInventory'', Bool ''abRealJail'')''' :*Sends the player to this faction's jail. :'''[[SetAlly - Faction|SetAlly(]]Faction ''akOther'', Bool ''abSelfIsFriendToOther'', Bool ''abOtherIsFriendToSelf'')''' :*Sets the two factions to be friends or allies. :'''[[SetCrimeGold - Faction|SetCrimeGold]](Int ''aiGold'')''' :*Sets the ''non-violent'' crime gold on this faction. :'''[[SetCrimeGoldViolent - Faction|SetCrimeGoldViolent]](Int ''aiGold'')''' :*Sets the violent crime gold on this faction :'''[[SetEnemy - Faction|SetEnemy]](Faction ''akOther'', Bool ''abSelfIsNeutralToOther'', Bool ''abOtherIsNeutralToSelf'')''' :*Sets the two factions to be neutral or enemies. :'''[[SetPlayerEnemy - Faction|SetPlayerEnemy]](Bool ''abIsEnemy'')''' :*Sets or clears the player as an enemy of this faction. :'''[[SetPlayerExpelled - Faction|SetPlayerExpelled]](Bool ''abIsExpelled'')''' :*Sets or clears the expelled flag for this faction on the player. :'''[[SetReaction - Faction|SetReaction]](Faction ''akOther'', Int ''aiNewValue'')''' :*Sets this faction's reaction towards the other faction. == Events == None [[Category:Scripting]] [[Category:Papyrus]] [[Category:Script Objects]]
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values