Difference between revisions of "GetNthSummon"
Added alternative code to be used in conjuction with GetSummons
imported>Kyoma |
imported>Kyoma (Added alternative code to be used in conjuction with GetSummons) |
||
Line 39: | Line 39: | ||
let arFollowers := ar_Null | let arFollowers := ar_Null | ||
End | End | ||
Alternative code for use with [[GetSummons]] (to avoid duplicate code) | |||
ScriptName GetNthSummon | |||
long iNth | |||
array_var arSummons | |||
Begin Function {iNth} | |||
let arSummons := Call GetSummons | |||
if TestExpr arSummons[iNth] | |||
SetFunctionValue arSummons[iNth] | |||
endif | |||
let arSummons := ar_Null | |||
End | |||
==See Also== | ==See Also== |