GetModAuthor - Game

SKSE Member of: Game Script

Returns the Mod Author of the specified mod Index. (This function requires SKSE)

SyntaxEdit

string Function GetModAuthor(int modIndex) native global

ParameterEdit

  • modIndex = index of the mod.

Return ValueEdit

Returns the mod author of the specified index.

ExamplesEdit

int Numberofmods
String NameofAuth

Function ModAuthor()
	Numberofmods = Game.GetModCount() ;The number of active mods.
	while NumberofMods
		NumberofMods -= 1
		NameofAuth = Game.GetModAuthor(NumberofMods) ; If a Author is specified then it will return a name if not will be DEFAULT
		If(NameofAuth != "DEFAULT")
			Debug.Trace("The Author of this mod is " + NameofAuth)
		Else
			Debug.Trace("The Author of this mod did no leave his name.")
		EndIf
	EndWhile	
EndFunction

NotesEdit

  • A fair majority of mods do not have a specified author and as such many mods will return a "DEFAULT" string.

See AlsoEdit