Skyrim
0 of 0

File information

Last updated

Original upload

Created by

Sagittarius22

Uploaded by

sagittarius22

Virus scan

Safe to use

About this mod

Adds 8 new custom functions for your scripting needs.

Permissions and credits
Donations
This "mod" is to use as a modder resource. It provides new functions that should make life easier for some of us. Please, don't upload it anywhere; make it a requirement for your mods.
Those functions are based on vanilla functions and do not need SKSE to work. It can help you to shorten your scripts without using properties. The only requirement is the latest Skyrim patch.

New functions and descriptions:

* Int Function RewardGold(ObjectReference rObject, int Amount, bool bSilent)
Gives the specified amount of gold to this reference. Three parameters:
rObject - the reference that will get the gold
Amount - the amount of gold
bSilent (optional, default = false) - if true, no message will pop-up if the gold has been added to the player.
Example: RewardGold(BobRef,200) ; adds 200 gold to Bob.

* Bool Function IsPlayerVampire()
Returns true if the player is a vampire.

* Bool Function CanPlayerShout()
Returns true if the player can shout, false if he/she has not learnt to shout yet.

* Bool Function IsPlayerWereWolf()
Returns true if the player is a Werewolf, false otherwise.

* Bool Function IsPlayerCannibal()
Returns true if the player is a cannibal, false otherwise.

* Race Function GetLastMountRace()
Returns the race if the player's last mount.
Example:
if GetLastMountRace() == DragonRace
; my mount is a badass dragon!
endif

* Int Function GetPlayerAllegiance()
Returns the player's allegiance during the Civil War.
1 = Imperial
2= StormCloaks

* Actor Function GetJarl(string Hold)
Returns the current Jarl for the specified capital.
Valid parameters:
"Whiterun"
"WindHelm"
"Markarth"
"Riften"
"Solitude"

New functions may come later.