Difference between revisions of "GetVersionMinor - SKSE"

Jump to navigation Jump to search
2 bytes removed ,  21:23, 5 July 2017
→‎Examples: Current example throws an "Input string was not in a correct format." error when compiling. This new example works fine.
imported>JustinOther
m (Linked GetVersionRelease/Prefixed Int vars with 'i'/Added second example with complete version number as a float/Added Minimum SKSE version)
imported>XJDHDR
(→‎Examples: Current example throws an "Input string was not in a correct format." error when compiling. This new example works fine.)
 
Line 20: Line 20:


== Examples ==
== Examples ==
*As used with SKSE version 1.5.11 rel 27 (SKSE minor version: 5)
* As used with SKSE version 1.7.3 rel 48 (SKSE minor version: 7)
<source lang="papyrus">Int iMinor = SKSE.GetVersion()
<source lang="papyrus">Int iMinor = SKSE.GetVersion()
Debug.Notification("SKSE minor version: " + iMinor)</source>
Debug.Notification("SKSE minor version: " + iMinor)</source>
*Obtain complete version number as a float.
*Obtain complete version number as an integer.
<source lang="papyrus">Float fSKSE = SKSE.GetVersion() + SKSE.GetVersionMinor() * 0.01 + SKSE.GetVersionBeta() * 0.0001
<source lang="papyrus">Int fSKSE = SKSE.GetVersion() * 10000 + SKSE.GetVersionMinor() * 100 + SKSE.GetVersionBeta()
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 1.0511"</source>
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 10703"</source>


== Notes ==
== Notes ==
Anonymous user

Navigation menu