Difference between revisions of "GetNthModDependency - Game"

From the CreationKit Wiki
Jump to navigation Jump to search
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...")
 
imported>Wafflesalot
(Changed the description.)
 
Line 4: Line 4:
'''SKSE Member of:''' [[Game Script]]
'''SKSE Member of:''' [[Game Script]]


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


== Syntax ==
== Syntax ==

Latest revision as of 19:20, 28 February 2013

SKSE Member of: Game Script

Returns the mod index of the specified Dependency. (This function requires SKSE)

Syntax[edit | edit source]

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

Parameter[edit | edit source]

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

Return Value[edit | edit source]

Returns the mod index of the Dependency

Examples[edit | edit source]

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[edit | edit source]