Jump to content

OBD:BINA/OBJC/TRIG: Difference between revisions

moved Events section to BINA/OBJC/CONS where it seems more appropriate
(many corrections to and elaborations on fields)
(moved Events section to BINA/OBJC/CONS where it seems more appropriate)
 
Line 55: Line 55:
==Time on/off==
==Time on/off==
This feature is unused in Oni's game data, but "time on" allows you to set a length of time that a laser should run before shutting off; if you also specify "time off", the trigger will reactivate after that long, and continue cycling like so. "Time on" is employed when a trigger is activated with [[trig_reset]] or [[trig_activate]]. However "time off" is NOT used a trigger is deactivated with [[trig_deactivate]], which is a permanent shutoff.
This feature is unused in Oni's game data, but "time on" allows you to set a length of time that a laser should run before shutting off; if you also specify "time off", the trigger will reactivate after that long, and continue cycling like so. "Time on" is employed when a trigger is activated with [[trig_reset]] or [[trig_activate]]. However "time off" is NOT used a trigger is deactivated with [[trig_deactivate]], which is a permanent shutoff.
==Events==
Three OBJC types can trigger an event: a [[OBD:BINA/OBJC/CONS|console]] when activated, a [[OBD:BINA/OBJC/DOOR|door]] when opened, and a [[OBD:BINA/OBJC/TRIG|trigger laser]] when tripped. This is the full set of event types they can execute:
:1 - call script function
:2 - activate turret
:3 - deactivate turret
:4 - activate console
:5 - deactivate console
:6 - activate alarm
:7 - deactivate alarm
:8 - activate trigger
:9 - deactivate trigger
:10 - lock door
:11 - unlock door
This allows all sorts of odd combinations, e.g. a trigger laser could activate another trigger laser or unlock a door, but Oni never does anything that unusual in the vanilla game data.


;Tool Mode dialog
;Tool Mode dialog