Difference between revisions of "GetModName - Game"
Jump to navigation
Jump to search
Changed the example to a more simplified one and changed the notes slightly.
imported>Wafflesalot m (Minor changes to grammar missed) |
imported>Wafflesalot (Changed the example to a more simplified one and changed the notes slightly.) |
||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
String Nameofmod | String Nameofmod | ||
Function | Function ModName() | ||
Nameofmod = Game.GetModName(0) ;Gets Name of Mod eg. Skyrim.esm, Update.esm, Hearthfire.esm, etc.(In this case it should return Skyrim.esm) | |||
Debug.Trace("The zeroth index contains " + NameofMod) | |||
EndFunction | EndFunction | ||
</source> | </source> | ||
Line 39: | Line 28: | ||
== Notes == | == Notes == | ||
* This function, | * This function can be a little misleading, it returns the .esm or .esp in your load order, eg. Skyrim.esm. A mod however could be named, for example "Fall of Saber." and have a esp called Tigers.esp. This would return Tigers.esp and not Fall of Saber. | ||
== See Also == | == See Also == |