User:Digiku/2.2/NiGHTS Linedef Executor Triggers

From SRB2 Wiki
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 Input
  • Front Y Offset: Lap Input
  • ML_NOCLIMB: Current mare is less-than-equals
  • ML_BLOCKMONSTERS: Current mare is greater-than-equals
  • ML_EFFECT1: Current lap is less-than-equals
  • ML_EFFECT2: Current lap is greater-than-equals
  • ML_EFFECT3: Calculate current lap from Bonus Time
  • ML_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