GetNthModDependency - Game

From the CreationKit Wiki
Revision as of 05:53, 27 February 2013 by imported>Wafflesalot (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Game Script Returns the count of mods the specified mod depends upon. (This function r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SKSE Member of: Game Script

Returns the count of mods the specified mod depends upon. (This function requires SKSE)

Syntax

int Function GetNthModDependency(int modIndex, int n) native global

Parameter

  • modIndex = index of the mod.
  • n = The index of the dependency.

Return Value

Returns the mod index of the Dependency

Examples

Function Dependency()
	DependencyNumber = Game.GetNthModDependency(1, 0); ModIndex = 1, DependencyIndex = 0
	If(Game.GetModName(0) == "Skyrim.esm")
		Debug.Trace("Mod at Index 1 has Skyrim.esm as one of it's dependencies.")
	Else
		Debug.Trace("Skyrim.esm is not a Dependency of Mod at Index 1")
EndFunction

See Also