Difference between revisions of "GetFormCountType"
m
no edit summary
imported>Pintocat (Created page with "{{Function |origin = LU |summary = Returns the number of forms of a given type in an array. |name = GetFormCountType |returnType = int |arguments = {{FunctionArgument...") |
imported>DoctaSax m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = LU | |origin = LU | ||
|summary = Returns the number of forms of a given type in an array. | |summary = Returns the number of forms of a given type in an array. | ||
JIP NVSE Plugin v40 merged Lutana NVSE plugin v19. '''As of JIPv40, This function's syntax was changed from Lutana v19, requiring that you pass the arrays via their IDs (set to integers) if you use the script compiler override (CO).''' | |||
|name = GetFormCountType | |name = GetFormCountType | ||
|returnType = int | |returnType = int | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = formsArrayID | ||
|Type = array | |Type = array | ||
}}{{FunctionArgument | }}{{FunctionArgument | ||
Line 13: | Line 14: | ||
}} | }} | ||
}} | }} | ||
== Example == | |||
array_var arrForms | |||
int iType | |||
int iCount | |||
... | |||
let iCount := GetFormCountType arrForms, iType | |||
== Example with CO == | |||
array_var arrForms | |||
int iType | |||
int iCount | |||
int iArrFormsID | |||
... | |||
set iArrFormsID to arrForms | |||
let iCount := GetFormCountType iArrFormsID iType | |||
== Old Syntax (Lutana standalone) == | |||
(int) GetFormCountType forms:array type:int | |||
==See Also== | ==See Also== | ||
[[Category:Functions_(Lutana)]] | [[Category:Functions_(Lutana)]] |