Difference between revisions of "NVSE Expressions"
+ * & usage examples
imported>Odessa (created, source obse docs + me) |
imported>Odessa (+ * & usage examples) |
||
(One intermediate revision by the same user not shown) | |||
Line 102: | Line 102: | ||
... | ... | ||
if TestExpr MyArray[x] ; | if TestExpr MyRef := MyArray[x] ; assign MyRef to array element x, if this index exists | ||
... | ... | ||
if eval !(SunnyREF.GetDead) ; if sunny is not dead | if eval !(SunnyREF.GetDead) ; if sunny is not dead | ||
... | ... | ||
foreach entry <- SomeArray | |||
let MyRef := *entry ; 'Unbox' is equivalent to using entry["value"] | |||
... | |||
; boxing a ref into a single entry array allows passage as an argument of this type: | |||
call MyUDF &MyRef | |||
</pre> | </pre> | ||
Line 117: | Line 124: | ||
*[[Print]] / [[PrintDebug]] | *[[Print]] / [[PrintDebug]] | ||
*[[Script Compiler Override]] | *[[Script Compiler Override]] | ||
==External Links== | |||
*[http://obse.silverlock.org/obse_command_doc.html#OBSE_Expressions This page is adapted from a section in the official OBSE docs] | |||
*[http://fallout.bethsoft.com/eng/links/privacyredirect.php?site=http://www.loverslab.com/topic/26749-tutorial-nvse4-part-1-syntax-and-expressions/ A tutorial on syntax and expressions in NVSE 4] | |||
[[Category:NVSE]] | [[Category:NVSE]] | ||
[[Category:Expressions]] | [[Category:Expressions]] | ||
[[Category:Scripting]] | [[Category:Scripting]] |