Background for Skyrim SE

Faction


Inheritance Tree

No indexed scripts extend this script.

Properties

skse

intkfaction_hiddenfromnpc=0x1
intkfaction_specialcombat=0x2
intkfaction_trackcrime=0x10
intkfaction_ignoremurder=0x20
intkfaction_ignoreassault=0x40
intkfaction_ignorestealing=0x80
intkfaction_ignoretrespass=0x100
intkfaction_noreportcrime=0x200
intkfaction_crimegolddefaults=0x400
intkfaction_ignorepickpocket=0x800
intkfaction_vendor=0x1000
intkfaction_canbeowner=0x2000
intkfaction_ignorewerewolf=0x4000
Events
Functions
boolfunctionCanPayCrimeGold()Native

Checks to see if the player can pay the crime gold for this faction.

intfunctionGetCrimeGold()Native

Get the amount of crime gold on this faction that the player needs to pay.

intfunctionGetCrimeGoldNonViolent()Native

Get the amount of crime gold on this faction that the player needs to pay for non-violent crimes.

intfunctionGetCrimeGoldViolent()Native

Get the amount of crime gold on this faction that the player needs to pay for violent crimes.

intfunctionGetInfamy()Native

Get the amount of infamy (accumulated crime gold) the player has with this faction.

intfunctionGetInfamyNonViolent()Native

Get the amount of non-violent infamy (accumulated non-violent crime gold) the player has with this faction.

intfunctionGetInfamyViolent()Native

Get the amount of violent infamy (accumulated violent crime gold) the player has with this faction.

intfunctionGetReaction(FactionakOther)Native

Gets the faction's reaction towards the other one.

intfunctionGetStolenItemValueCrime()Native

Get the value of all items stolen by the player from this faction that was witnessed.

intfunctionGetStolenItemValueNoCrime()Native

Get the value of all items stolen by the player from this faction that was not witnessed.

boolfunctionIsFactionInCrimeGroup(FactionakOther)Native

Checks to see if the passed in faction is in this faction's crime group.

boolfunctionIsPlayerExpelled()Native

Checks to see if the player is expelled from this faction.

voidfunctionModCrimeGold(intaiAmount, boolabViolent=false)Native

Modifies the amount of crime gold on this faction.

voidfunctionModReaction(FactionakOther, intaiAmount)Native

Modifies the faction's reaction towards the other one.

voidfunctionPlayerPayCrimeGold(boolabRemoveStolenItems=true, boolabGoToJail=true)Native

Has the player pay the crime gold on this faction, possibly removing any stolen items in their inventory and sending them to jail.

voidfunctionSendAssaultAlarm()Native

Finds a nearby member of this faction and tells them to behave as if they were assaulted.

voidfunctionSendPlayerToJail(boolabRemoveInventory=true, boolabRealJail=true)Native

Sends the player to jail, optionally removing his inventory, and sending him to "real" jail.

voidfunctionSetAlly(FactionakOther, boolabSelfIsFriendToOther=false, boolabOtherIsFriendToSelf=false)Native

Sets the two factions to be friend or allies of eachother.

voidfunctionSetCrimeGold(intaiGold)Native

Set the amount of non-violent crime gold on this faction.

voidfunctionSetCrimeGoldViolent(intaiGold)Native

Set the amount of violent crime gold on this faction.

voidfunctionSetEnemy(FactionakOther, boolabSelfIsNeutralToOther=false, boolabOtherIsNeutralToSelf=false)Native

Sets the two factions to be neutral or enemies of each other.

voidfunctionSetPlayerEnemy(boolabIsEnemy=true)Native

Sets or clears the enemy flag from this faction for the player.

voidfunctionSetPlayerExpelled(boolabIsExpelled=true)Native

Sets or clears the expelled flag from this faction for the player.

voidfunctionSetReaction(FactionakOther, intaiNewValue)Native

Sets the faction's reaction towards the other one.

voidfunctionMakeVendor()

Not recommended unless the faction was previously a vendor
due to the faction not having a package location the vendor
may not be able to set up shop anywhere at all

boolfunctionIsVendor()
voidfunctionClearVendor()
boolfunctionIsFactionFlagSet(intflag)Native
voidfunctionSetFactionFlag(intflag)Native
voidfunctionClearFactionFlag(intflag)Native
boolfunctionOnlyBuysStolenItems()Native
voidfunctionSetOnlyBuysStolenItems(boolonlyStolen)Native
intfunctionGetVendorStartHour()Native
voidfunctionSetVendorStartHour(inthour)Native
intfunctionGetVendorEndHour()Native
voidfunctionSetVendorEndHour(inthour)Native
intfunctionGetVendorRadius()Native
voidfunctionSetVendorRadius(intradius)Native
voidfunctionSetMerchantContainer(ObjectReferenceakContainer)Native
boolfunctionIsNotSellBuy()Native
voidfunctionSetNotSellBuy(boolnotSellBuy)Native
FormListfunctionGetBuySellList()Native
voidfunctionSetBuySellList(FormListakList)Native
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.