Background for Skyrim SE
Member of the Game script
stringfunctionGetModAuthor(intmodIndex)NativeGlobal

Description

Wiki Description

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

Documentation Comment

returns the author of the mod at the specified modIndex


Caveats

CK Wiki - Notes

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

Parameters

intmodIndex


Examples

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

Auto-Generated Example

int myInt__modIndex

string returnedValue = Game.GetModAuthor(myInt__modIndex)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.