Skip to reading
Shaders, Effects & Layered Scenery

66. Put the effect on an event

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView PDF page

Once an effect is authored, an event decides when it is used. The shared Action List catalog is available in scene events, verb interactions, GUI events, visual scripts and cutscenes. Start with a simple test button before connecting the effect to a complicated puzzle.

1. Create an authored GUI button named Show Hand Effect.

2. Open its Events tab and choose an Action List for Click.

3. Add Attach Particle Effect and select the existing hand_orb emitter and player target.

4. Enter right_hand_grip and the desired offset.

5. Add Change Object Property for hand_orb → particle.enabled → true.

6. Create a second button that disables/hides the effect and detaches it.

7. Test the buttons during gameplay. GUI Preview is useful for appearance; it deliberately does not execute the full game event flow.

Source table from 66. Put the effect on an event, page 70
Value typeEnter it as
Booleantrue or false; not a text string saying "true".
NumberA numeric value such as 0.4, not a record ID.
VectorA numeric list such as [0,0.04,0].
Record referenceThe actual ID selected by the field, even when the menu shows Name(ID).
Whole shader configurationAn object/dictionary with layers and the relevant option fields.

Additional Event Actions run after a GUI event’s selected primary behavior. If a button already changes a verb, decide whether the effect should accompany that behavior or replace it.

Page 70 of 93Permalink
Go to page