Difference between revisions of "Faction Script"

158 bytes removed ,  08:13, 2 February 2014
Reverted to List
imported>CraftySentinel
m (→‎Member Functions: Formatting Change)
imported>CraftySentinel
(Reverted to List)
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]
'''Extends:''' [[Form Script]]
'''Extends:''' [[Form Script]]


Line 20: Line 16:
== Member Functions ==
== Member Functions ==


{|class="wikitable" width =100%
:'''Bool [[CanPayCrimeGold - Faction|CanPayCrimeGold]]()'''
!style="text-align:left;"|Function
:*Checks to see if the player can pay the crime gold for this faction.
!style="text-align:left;"|Description
|-
|[[CanPayCrimeGold - Faction|Bool '''CanPayCrimeGold'''()]]
|Checks to see if the player can pay the crime gold for this faction.
|-


|[[GetCrimeGold - Faction|Int '''GetCrimeGold'''()]]
:'''Int [[GetCrimeGold - Faction|GetCrimeGold]]()'''
|Obtains the amount of gold the player has to pay to this faction for crimes.
:*Obtains the amount of gold the player has to pay to this faction for crimes.
|-


|[[GetCrimeGoldNonViolent - Faction|Int '''GetCrimeGoldNonViolent'''()]]
:'''Int [[GetCrimeGoldNonViolent - Faction|GetCrimeGoldNonViolent]]()'''
|Obtains the amount of gold the player has to pay to this faction for non-violent crimes.
:*Obtains the amount of gold the player has to pay to this faction for non-violent crimes.
|-


|[[GetCrimeGoldViolent - Faction|Int '''GetCrimeGoldViolent'''()]]
:'''Int [[GetCrimeGoldViolent - Faction|GetCrimeGoldViolent]]()'''
|Obtains the amount of gold the player has to pay to this faction for violent crimes.
:*Obtains the amount of gold the player has to pay to this faction for violent crimes.
|-


|[[GetInfamy - Faction|Int '''GetInfamy'''()]]
:'''Int [[GetInfamy - Faction|GetInfamy]]()'''
|Obtains the player's current "infamy" with this faction. (Accumulated crime gold)
:*Obtains the player's current "infamy" with this faction. (Accumulated crime gold)
|-


|[[GetInfamyNonViolent - Faction|Int '''GetInfamyNonViolent'''()]]
:'''Int [[GetInfamyNonViolent - Faction|GetInfamyNonViolent]]()'''
|Obtains the player's current "non-violent infamy" with this faction. (Accumulated non-violent crime gold)
:*Obtains the player's current "non-violent infamy" with this faction. (Accumulated non-violent crime gold)
|-


|[[GetInfamyViolent - Faction|Int '''GetInfamyViolent'''()]]
:'''Int [[GetInfamyViolent - Faction|GetInfamyViolent]]()'''
|Obtains the player's current "violent infamy" with this faction. (Accumulated violent crime gold)
:*Obtains the player's current "violent infamy" with this faction. (Accumulated violent crime gold)
|-


|[[GetReaction - Faction|Int '''GetReaction'''(Faction ''akOther'')]]
:'''Int [[GetReaction - Faction|GetReaction]](Faction ''akOther'')'''
|Gets this faction's reaction towards the other faction.
:*Gets this faction's reaction towards the other faction.
|-


|[[GetStolenItemValueCrime - Faction|Int '''GetStolenItemValueCrime'''()]]
:'''Int [[GetStolenItemValueCrime - Faction|GetStolenItemValueCrime]]()'''
|Gets the value of all items stolen by the player from this faction that was witnessed.
:*Gets the value of all items stolen by the player from this faction that was witnessed.
|-


|[[GetStolenItemValueNoCrime - Faction|Int '''GetStolenItemValueNoCrime'''()]]
:'''Int [[GetStolenItemValueNoCrime - Faction|GetStolenItemValueNoCrime]]()'''
|Gets the value of all items stolen by the player from this faction that was not witnessed.
:*Gets the value of all items stolen by the player from this faction that was not witnessed.
|-


|[[IsFactionInCrimeGroup - Faction|Bool '''IsFactionInCrimeGroup'''(Faction ''akOther'')]]
:'''Bool [[IsFactionInCrimeGroup - Faction|IsFactionInCrimeGroup]](Faction ''akOther'')'''
|Returns whether the passed in faction is listed in this faction's crime group.
:*Returns whether the passed in faction is listed in this faction's crime group.
|-


|[[IsPlayerExpelled - Faction|Bool '''IsPlayerExpelled'''()]]
:'''Bool [[IsPlayerExpelled - Faction|IsPlayerExpelled]]()'''
|Returns whether the player is expelled from this faction or not.
:*Returns whether the player is expelled from this faction or not.
|-


|[[ModCrimeGold - Faction|'''ModCrimeGold'''(Int ''aiAmount'', Bool ''abViolent'')]]
:'''[[ModCrimeGold - Faction|ModCrimeGold]](Int ''aiAmount'', Bool ''abViolent'')'''
|Modifies the amount of crime gold for this faction, violent or non-violent.
:*Modifies the amount of crime gold for this faction, violent or non-violent.
|-


|[[ModReaction - Faction|'''ModReaction'''(Faction ''akOther'', Int ''aiAmount'')]]
:'''[[ModReaction - Faction|ModReaction]](Faction ''akOther'', Int ''aiAmount'')'''
|Modifies this faction's reaction towards the other faction.
:*Modifies this faction's reaction towards the other faction.
|-


|[[PlayerPayCrimeGold - Faction|'''PlayerPayCrimeGold'''(Bool ''abRemoveStolenItems'', Bool ''abGoToJail'')]]
:'''[[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).
:*Has this player pay the crime gold for this faction (and optionally lose their stolen items and go to jail).
|-


|[[SendAssaultAlarm - Faction|'''SendAssaultAlarm'''()]]
:'''[[SendAssaultAlarm - Faction|SendAssaultAlarm]]()'''
|Finds a nearby actor in this faction and has them behave as if they were assaulted.
:*Finds a nearby actor in this faction and has them behave as if they were assaulted.
|-


|[[SendPlayerToJail - Faction|'''SendPlayerToJail'''(Bool ''abRemoveInventory'', Bool ''abRealJail'')]]
:'''[[SendPlayerToJail - Faction|SendPlayerToJail]](Bool ''abRemoveInventory'', Bool ''abRealJail'')'''
|Sends the player to this faction's jail.
:*Sends the player to this faction's jail.
|-


|[[SetAlly - Faction|'''SetAlly'''(Faction ''akOther'', Bool ''abSelfIsFriendToOther'', Bool ''abOtherIsFriendToSelf'')]]
:'''[[SetAlly - Faction|SetAlly(]]Faction ''akOther'', Bool ''abSelfIsFriendToOther'', Bool ''abOtherIsFriendToSelf'')'''
|Sets the two factions to be friends or allies.
:*Sets the two factions to be friends or allies.
|-


|[[SetCrimeGold - Faction|'''SetCrimeGold'''(Int ''aiGold'')]]
:'''[[SetCrimeGold - Faction|SetCrimeGold]](Int ''aiGold'')'''
|Sets the ''non-violent'' crime gold on this faction.
:*Sets the ''non-violent'' crime gold on this faction.
|-


|[[SetCrimeGoldViolent - Faction|'''SetCrimeGoldViolent'''(Int ''aiGold'')]]
:'''[[SetCrimeGoldViolent - Faction|SetCrimeGoldViolent]](Int ''aiGold'')'''
|Sets the violent crime gold on this faction
:*Sets the violent crime gold on this faction
|-


|[[SetEnemy - Faction|'''SetEnemy'''(Faction ''akOther'', Bool ''abSelfIsNeutralToOther'', Bool ''abOtherIsNeutralToSelf'')]]
:'''[[SetEnemy - Faction|SetEnemy]](Faction ''akOther'', Bool ''abSelfIsNeutralToOther'', Bool ''abOtherIsNeutralToSelf'')'''
|Sets the two factions to be neutral or enemies.
:*Sets the two factions to be neutral or enemies.
|-


|[[SetPlayerEnemy - Faction|'''SetPlayerEnemy'''(Bool ''abIsEnemy'')]]
:'''[[SetPlayerEnemy - Faction|SetPlayerEnemy]](Bool ''abIsEnemy'')'''
|Sets or clears the player as an enemy of this faction.
:*Sets or clears the player as an enemy of this faction.
|-


|[[SetPlayerExpelled - Faction|'''SetPlayerExpelled'''(Bool ''abIsExpelled'')]]
:'''[[SetPlayerExpelled - Faction|SetPlayerExpelled]](Bool ''abIsExpelled'')'''
|Sets or clears the expelled flag for this faction on the player.
:*Sets or clears the expelled flag for this faction on the player.
|-


|[[SetReaction - Faction|'''SetReaction'''(Faction ''akOther'', Int ''aiNewValue'')]]
:'''[[SetReaction - Faction|SetReaction]](Faction ''akOther'', Int ''aiNewValue'')'''
|Sets this faction's reaction towards the other faction.
:*Sets this faction's reaction towards the other faction.
|-


|}


== Events ==
== Events ==
None
None
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]