Faction Script: Difference between revisions
Jump to navigation
Jump to search
m
→Member Functions: Formatting Change
imported>Jog |
imported>CraftySentinel m (→Member Functions: Formatting Change) |
||
| Line 19: | Line 19: | ||
== Member Functions == | == Member Functions == | ||
{|class="wikitable" width =100% | |||
!style="text-align:left;"|Function | |||
!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'''()]] | |||
|Obtains the amount of gold the player has to pay to this faction for crimes. | |||
|- | |||
|[[GetCrimeGoldNonViolent - Faction|Int '''GetCrimeGoldNonViolent'''()]] | |||
|Obtains the amount of gold the player has to pay to this faction for non-violent crimes. | |||
|- | |||
|[[GetCrimeGoldViolent - Faction|Int '''GetCrimeGoldViolent'''()]] | |||
|Obtains the amount of gold the player has to pay to this faction for violent crimes. | |||
|- | |||
|[[GetInfamy - Faction|Int '''GetInfamy'''()]] | |||
|Obtains the player's current "infamy" with this faction. (Accumulated crime gold) | |||
|- | |||
|[[GetInfamyNonViolent - Faction|Int '''GetInfamyNonViolent'''()]] | |||
|Obtains the player's current "non-violent infamy" with this faction. (Accumulated non-violent crime gold) | |||
|- | |||
|[[GetInfamyViolent - Faction|Int '''GetInfamyViolent'''()]] | |||
|Obtains the player's current "violent infamy" with this faction. (Accumulated violent crime gold) | |||
|- | |||
|[[GetReaction - Faction|Int '''GetReaction'''(Faction ''akOther'')]] | |||
|Gets this faction's reaction towards the other faction. | |||
|- | |||
|[[GetStolenItemValueCrime - Faction|Int '''GetStolenItemValueCrime'''()]] | |||
|Gets the value of all items stolen by the player from this faction that was witnessed. | |||
|- | |||
|[[GetStolenItemValueNoCrime - Faction|Int '''GetStolenItemValueNoCrime'''()]] | |||
|Gets the value of all items stolen by the player from this faction that was not witnessed. | |||
|- | |||
|[[IsFactionInCrimeGroup - Faction|Bool '''IsFactionInCrimeGroup'''(Faction ''akOther'')]] | |||
|Returns whether the passed in faction is listed in this faction's crime group. | |||
|- | |||
|[[IsPlayerExpelled - Faction|Bool '''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 == | == Events == | ||
None | None | ||