Editing Foreach
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 41: | Line 41: | ||
foreach rItem <- rActor | foreach rItem <- rActor | ||
if rItem.IsEquipped | if rItem.IsEquipped | ||
rItem. | rItem.RemoveMeIR | ||
endif | endif | ||
loop | loop | ||
; Will | ; Will remove all equipped items from rActor | ||
</pre> | </pre> | ||
Line 104: | Line 104: | ||
</pre> | </pre> | ||
Note that above we reference <b>Entry["value"]</b> in the [[Print]] function directly, rather than use an intermediary variable (<b>let SomeVar := Entry["value"]..</b>). This is only possible when using NVSE aware functions or the [[Script Compiler Override]]. | Note that above we reference <b>Entry["value"]</b> in the [[Print]] function directly, rather than use an intermediary variable (<b>let SomeVar := Entry["value"]..</b>). This is only possible when using NVSE aware functions or the [[Script Compiler Override]]. | ||
==See Also== | ==See Also== | ||
*[[While]] | *[[While]] |