ANDR PapyrusFunctions Script: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Added functions from 1.9.0) |
||
| Line 72: | Line 72: | ||
:'''[[MoveRefToCrosshairLoc - ANDR_PapyrusFunctions|MoveRefToCrosshairLoc]](Actor ''akActor'', ObjectReference ''markerRef'', float ''fDistance'', float ''fHeight'', bool ''UseLeftRightOffsets'' = false, bool ''isLeft'' = false)''' | :'''[[MoveRefToCrosshairLoc - ANDR_PapyrusFunctions|MoveRefToCrosshairLoc]](Actor ''akActor'', ObjectReference ''markerRef'', float ''fDistance'', float ''fHeight'', bool ''UseLeftRightOffsets'' = false, bool ''isLeft'' = false)''' | ||
:*Move the specified markerRef at the crosshair location. | :*Move the specified markerRef at the crosshair location. | ||
:'''Bool [[ApplyCommandEffect - ANDR_PapyrusFunctions|ApplyCommandEffect]](Actor ''akCaster'', Actor ''akTarget'')''' | |||
:*Makes akTarget a commanded actor of akCaster, so it follows and fights for them. Unlike vanilla, works on living, non-summoned actors and for non-player casters. | |||
:'''[[EndCommandEffect - ANDR_PapyrusFunctions|EndCommandEffect]](Actor ''akCaster'', Actor ''akTarget'')''' | |||
:*Releases akTarget from akCaster's command. Does nothing if akCaster is not the actor currently commanding akTarget. | |||
:'''Int [[GetFactionCrimeGoldValue - ANDR_PapyrusFunctions|GetFactionCrimeGoldValue]](Faction ''CrimeFaction'', int ''iCrimeType'')''' | |||
:*Returns the amount of gold a certain crime will result in, in a particular crime faction. | |||
== Member Functions == | == Member Functions == | ||
Revision as of 15:54, 4 September 2026
Collection of various global functions, added by AndrealletiusVIII in this mod: https://www.nexusmods.com/skyrimspecialedition/mods/85252. (These global functions require SKSE.)
Definition
scriptName ANDR_PapyrusFunctions hiddenProperties
None
SKSE Global Functions
- String GetAndrealphusExtenderVersion()
- Returns the current installed version of Andrealletius' Papyrus Functions as a string. (e.g.: "1.5.2")
- String GetBookText(Book akBook)
- Returns the body text of a book as a string.
- Int GetCurrentBookPage()
- When in the book menu, returns the current page of the book as an Int. If not in the book menu, returns -1.
- TopicInfo GetCurrentTopicInfo()
- Returns the TopicInfo that is currently being said by an NPC while in the dialogue menu. If not in the dialogue menu, returns None.
- Book GetOpenedBook()
- When in the book menu, returns the currently opened book in the book menu. If not in book menu, returns None.
- CastEnchantment(Actor akSource, Enchantment akEnchantment, Actor akTarget)
- Casts this enchantment's effects from the specified actor, to a target actor.
- CastIngredient(Actor akSource, Potion akPotion, Actor akTarget)
- Casts this ingredient's effects from the specified actor, to a target actor.
- CastPotion(Actor akSource, Potion akPotion, Actor akTarget)
- Casts this potion's effects from the specified actor, to a target actor.
- CastSpellFromPointToPoint(Actor akSource, Spell akSpell, Float StartPoint_X, Float StartPoint_Y, Float StartPoint_Z, Float EndPoint_X, Float EndPoint_Y, Float EndPoint_Z)
- Have an actor cast a spell from a certain point (x, y and z coordinates) to another point (x, y and z coordinates).
- CastSpellFromRef(Actor akSource, Spell akSpell, ObjectReference akTarget, ObjectReference akOriginRef)
- Have an actor cast a spell from one ref to another ref.
- ActiveMagicEffect GetActiveMagicEffectFromActor(Actor akActor, MagicEffect akMagicEffect)
- Gets an Active Magic Effect instance from the specified actor.
- Float GetEffectiveEnchantmentCost(Actor akSource, Enchantment akEnchantment)
- Returns the effective enchantment cost of the given enchantment for the given caster.
- Float GetEffectiveIngredientCost(Actor akSource, Ingredient akIngredient)
- Returns the effective effects cost of the given ingredient for the given caster.
- Float GetEffectivePotionCost(Actor akSource, Potion akPotion)
- Returns the effective effects cost of the given potion for the given caster.
- Float GetEffectiveScrollCost(Actor akSource, Scroll akScroll)
- Returns the effective effects cost of the given scroll for the given caster.
- LaunchAmmo(Actor akCaster, Ammo akAmmo, Weapon akWeapon, String sNodeName = "", ObjectReference akTarget = None, Projectile akProjectile, ObjectReference OriginSecondRef = None)
- Have an actor launch a piece of ammunition to a target.
- LaunchMagicSpell(Actor akCaster, Spell akSpell, String sNodeName = "", ObjectReference akTarget = None, Projectile akProjectile, ObjectReference OriginSecondRef = None)
- Have an actor launch a spell to a target.
- Int MakeDiceRoll(int iNumberOfDice, int iNumberOfSides, int iModifier = 0)
- Rolls a certain number of dies, with an optional modifier, and returns the result as an Int.
- MoveRefToCrosshairLoc(Actor akActor, ObjectReference markerRef, float fDistance, float fHeight, bool UseLeftRightOffsets = false, bool isLeft = false)
- Move the specified markerRef at the crosshair location.
- Bool ApplyCommandEffect(Actor akCaster, Actor akTarget)
- Makes akTarget a commanded actor of akCaster, so it follows and fights for them. Unlike vanilla, works on living, non-summoned actors and for non-player casters.
- EndCommandEffect(Actor akCaster, Actor akTarget)
- Releases akTarget from akCaster's command. Does nothing if akCaster is not the actor currently commanding akTarget.
- Int GetFactionCrimeGoldValue(Faction CrimeFaction, int iCrimeType)
- Returns the amount of gold a certain crime will result in, in a particular crime faction.
Member Functions
None
Events
- OnBookFullyRead()
- Event that gets triggered after being on the last page of a book for 10 seconds, aka "fully read".