Difference between revisions of "GetFormCountType"
m
no edit summary
imported>Pintocat |
imported>DoctaSax m |
||
(One intermediate revision by the same user 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. JIP NVSE Plugin v40 merged Lutana NVSE plugin v19. '''As of JIPv40, This function's syntax was changed from Lutana v19.''' | |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 | ||
Line 7: | Line 8: | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = formsArrayID | |Name = formsArrayID | ||
|Type = | |Type = array | ||
}}{{FunctionArgument | }}{{FunctionArgument | ||
|Name = type | |Name = type | ||
Line 15: | Line 16: | ||
== Example == | == Example == | ||
array_var arrForms | |||
int iType | |||
int iCount | |||
... | |||
let iCount := GetFormCountType arrForms, iType | |||
== Example with CO == | |||
array_var arrForms | array_var arrForms | ||
int iType | int iType |