Difference between revisions of "GetFormCountType"
Jump to navigation
Jump to search
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>Pintocat |
||
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.''' Rather than passing an array_var as parameter, instead the int ID of the array_var is passed. | ||
|name = GetFormCountType | |name = GetFormCountType | ||
|returnType = int | |returnType = int | ||
|arguments = | |arguments = | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = | |Name = formsArrayID | ||
|Type = | |Type = int | ||
}}{{FunctionArgument | }}{{FunctionArgument | ||
|Name = type | |Name = type | ||
Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
== Example == | |||
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)]] |