Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
Formlists are not arrays. Totally different critter.
imported>Evernewjoy
imported>RedwoodElf
(Formlists are not arrays. Totally different critter.)
Line 54: Line 54:
* Non-player triggers can be used by changing the == to a != in the script above, to do things to other actors like restoring their health or moving them around (but not affecting player if player walks through the trigger)
* Non-player triggers can be used by changing the == to a != in the script above, to do things to other actors like restoring their health or moving them around (but not affecting player if player walks through the trigger)


===Cycle Through an Array of Objects and Perform an Action on Each Object(FormLists)===
===Cycle Through a List of Objects and Perform an Action on Each Object(FormLists)===


This example script cycles through an array of objects, known as a [[Formlist]], and enables them all if they are disabled, and disables them if they are enabled, each time the player character walks through a chosen trigger volume.  
This example script cycles through a List of objects, known as a [[Formlist]], and enables them all if they are disabled, and disables them if they are enabled, each time the player character walks through a chosen trigger volume.  


If you use a [[Formlist]] of special effects, this would cause all the many special effects you have in the formlist to disappear or reappear each time you walk through the trigger volume.
If you use a [[Formlist]] of special effects, this would cause all the many special effects you have in the formlist to disappear or reappear each time you walk through the trigger volume.
Anonymous user

Navigation menu