User:Digiku/2.2/NiGHTS Linedef Executor Triggers
Jump to navigation
Jump to search
Spec
Triggers are Each Time, Once:
- Trigger 323, 324 Nightserize
- Trigger 325, 326 DeNightserize
- Trigger 327, 328 Nights Lap
- Trigger 329, 330 Nights Egg Capsule Touch / Bonus Time Start
All triggers share these inputs:
Front X Offset
: Mare InputFront Y Offset
: Lap InputML_NOCLIMB
: Current mare is less-than-equalsML_BLOCKMONSTERS
: Current mare is greater-than-equalsML_EFFECT1
: Current lap is less-than-equalsML_EFFECT2
: Current lap is greater-than-equalsML_EFFECT3
: Calculate current lap from Bonus TimeML_EFFECT4
: Calculate current mare and lap from calling player instead of max global mare/lap among all players (latter is default)ML_DONTPEGBOTTOM
: Calculate current mare and lap from min global mare/lap among all players
Default mare/lap matching behavior is to be equal to the current mare and lap.
If matching Bonus Time laps (ML_EFFECT3
), bonus laps start at 1. Front Y Offset
can be 0 if you’re matching greater-than-equals (ML_EFFECT2
); otherwise, it must be at least 1.
Specific inputs:
ML_BOUNCY
:- On Nightserize: Run if there are no more mares (end of level)
- On Egg Capsule Touch: Run if the player has not enough rings to destroy (does not run if the player has enough rings)
ML_TFERLINE
:- On Nightserize: Run only if player was previously non-NiGHTS
- On DeNightserize: Run if no players are NiGHTS
- On Egg Capsule Touch: Run when entering the Egg Capsule, instead of exiting it
ML_DONTPEGTOP
:- On Nightserize: Run only if player was previously NiGHTS
- On DeNightserize: Run if at least one player is NiGHTS
- On Egg Capsule Touch: Run whether or not the player has enough rings to destroy
(we ran out of flags guys, this is it!)
Egg Capsule Touch default behavior is to run upon leaving the capsule AND player has destroyed it. In other words, that’s when Bonus Time Start occurs.
Examples
- File:Nights-le-test.wad - MAP01. Test that prints console messages for every NiGHTS trigger event.
- File:Nights-signs.wad - MAP01. Example that demonstrates how to display directional signs depending on mare # and lap #.