0 of 0

File information

Last updated

Original upload

Created by

Yeti and Others

Uploaded by

RedxYeti

Virus scan

Safe to use

Tags for this mod

About this mod

A set of functions that I use often. You can probably ignore this.

Requirements
Permissions and credits
For all the functions in this, you can include in your own scripts or just make this mod a requirement for you own.

I use these functions to save time but they are not always the fastest, hence the name convenience.


Install for users:
Click install with mod manager


Install for modders:
Install wherever the compiler can see it. If you use mod organizer 2 to run creation kit, install it with mo2.
If you run CK from your skyrim folder, then install it there.

Then in your script Import ConvenienceFunctions and you're all set. 




Check the articles for examples.


Current working functions:


ObjectReference Function ReferenceAliasAsObject(Quest akQuest, Int aInt) 
Returns a ObjectReference converted from a ReferenceAlias



form[] function GetAllPerks(actor akActor, bool bUnowned = false, bool bAllRanks = true, string[] treenames = none) 
Returns all the (player) perks, can be revised for more perks on non player actors. made by subhuman



string Function cdcFloatPrecision(float number, int precision = 0)
Returns a string from a truncated float with decimal precision for cleaner debug notifications/messagebox. made by cdcooley



ObjectReference[] Function AllObjectsOfTypeInCell(Cell akCell, Int iFormType)
Returns an array of all the objects of a form type in a cell (up to 128)



Function AddSpellToActorsInCell(Cell akCell, Spell sSpell,  String[] Keywords = None, Bool bIncluePlayer = false, Bool Verbose = false)
Adds a spell to all the actors in a cell, used in replacement for a quest with alias' which can miss actors



Function LockAt(ObjectReference ObjectToLock, Int LockLevel, Bool asOwner = False)

Locks an object reference at the specified lock level



Int Function MathMaxInt(Int iCheckInt, Int iMax)
Returns the check int unless its greater than the max



Int Function MathMinInt(Int iCheckInt, Int iMin)
Returns the check int unless its less than the min



Float Function MathMaxFloat(Float fCheck, Float fMax)
Same as the int but with a float



Float Function MathMinFloat(Float fCheck, Float fMin)
Same as the int but with a float



Float Function MathRound(Float FloatToRound) 

Returns your float rounded
  翻译: