Difference between revisions of "GetVersion - SKSE"
Jump to navigation
Jump to search
imported>JohnB (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' SKSE Script Returns the major version of SKSE. (This function requires SKSE) == Synt...") |
imported>XJDHDR (→Examples: Current example throws an "Input string was not in a correct format." error when compiling. This new example works fine.) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
Returns the major version of SKSE. (This function requires SKSE) | Returns the major version of SKSE. (This function requires SKSE) | ||
{{SKSEFunction|1.05.02}} | |||
== Syntax == | == Syntax == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
Int Function GetVersion() Global Native | |||
</source> | </source> | ||
Line 18: | Line 20: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | * As used with SKSE version 1.7.3 rel 48 (SKSE major version: 1) | ||
<source lang="papyrus">Int iMajor = SKSE.GetVersion() | |||
Debug.Notification("SKSE major version: " + iMajor)</source> | |||
Debug. | *Obtain complete version number as an integer. | ||
; SKSE | <source lang="papyrus">Int fSKSE = SKSE.GetVersion() * 10000 + SKSE.GetVersionMinor() * 100 + SKSE.GetVersionBeta() | ||
</source> | Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 10703"</source> | ||
== Notes == | == Notes == | ||
Line 30: | Line 32: | ||
== See Also == | == See Also == | ||
*[[SKSE Script]] | *[[SKSE Script]] | ||
*[[GetVersionMinor | *[[GetVersionMinor - SKSE]] | ||
*[[GetVersionBeta | *[[GetVersionBeta - SKSE]] | ||
*[[GetVersionRelease - SKSE]] |
Latest revision as of 21:22, 5 July 2017
SKSE Member of: SKSE Script
Returns the major version of SKSE. (This function requires SKSE)
Minimum required SKSE Version: 1.05.02
Syntax[edit | edit source]
Int Function GetVersion() Global Native
Parameters[edit | edit source]
None
Return Value[edit | edit source]
The major version of SKSE (first number).
Examples[edit | edit source]
- As used with SKSE version 1.7.3 rel 48 (SKSE major version: 1)
Int iMajor = SKSE.GetVersion()
Debug.Notification("SKSE major version: " + iMajor)
- Obtain complete version number as an integer.
Int fSKSE = SKSE.GetVersion() * 10000 + SKSE.GetVersionMinor() * 100 + SKSE.GetVersionBeta()
Debug.Trace("SKSE Version: " + fSKSE) ; Reads "SKSE Version: 10703"
Notes[edit | edit source]
None