Skip to reading
Progress Bars, Hints & Journals

Threshold directions and repeat rules

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
Source table from Threshold directions and repeat rules, page 16
FieldMeaning
idA unique name for this event on this bar. Give every once event its own ID.
percentageThe boundary from 0 to 100. It is a percentage, not a raw value.
direction: upPreviously below the boundary, now at or above it.
direction: downPreviously above the boundary, now at or below it.
direction: eitherEither crossing. both is also accepted in this build.
once: trueSuppresses further crossings with this ID on the current live bar.
visualScriptIdOptional script record ID to run when the boundary is crossed.
actionsOptional array of shared actions to run for the event.

Remaining above a boundary does not keep firing an upward event. A change from 80 to 90 does not cross 75. A change from 20 to 90 can cross several configured boundaries in one update; records are checked in their authored array order.

A downward warning at 25% needs a move from above 25 to 25 or less. A 0% upward event cannot be reached from below a clamped zero, and a 100% downward event cannot be reached from above a clamped full bar. Choose direction to match the journey you intend.

The script context includes guiElementId, percentage and value. Use a unique script or actions list when different meters need different responses. Avoid writing actions that immediately bounce the same meter across its boundary.

once is local to the widget instance. It is not a saved story flag. For a reward, cutscene or irreversible puzzle result, also check a saved Boolean variable in the game logic.

Page 16 of 53Permalink
Go to page