Difference between revisions of "EventOnCapeLength"

From Journey Modding Wiki
Jump to navigation Jump to search
(tested more, works different than i thought)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Trigger Types]][[Category:Trigger-Like Triggers]]
[[Category:Trigger Types]][[Category:Trigger-Like Triggers]]


EventOnCapeLength Triggers constantly check whether LocalDude's scarf has grown to be at least a certain length, and when it does then they activate some other Trigger.  
EventOnCapeLength Triggers constantly check whether [[Dude|LocalDude]]'s scarf just got "charged" to at least a certain amount of "scarf energy", and activates other Trigger(s) if it did.
 
Despite the trigger's name, it does not check how long the scarf actually is, just how much "scarf energy" it has.


It judges this based on how long the scarf currently "looks", not how long it "actually is/will look" : as in, if you just triggered something to increase your cape length from 0 to 30 (default maximum), EventOnCapeLength will not trigger its effects until the scarf actually finishes growing to the longest possible length on your screen. (may still need testing - it MIGHT only check scarf length every few seconds, and the few times it's been tested, the check has mostly happened at the same time the scarf finished growing)




Line 18: Line 19:
|number
|number
|0?
|0?
|the trigger checks to see if LocalDude's scarf just now grew to this length or more (not shrink below it)
|the trigger checks to see if LocalDude's scarf just now reached this amount of "scarf energy" or more (doesn't check if it lowered past that amount)
|-
|-
|effects
|effects
|Trigger / Trigger Clump
|Trigger / Trigger Clump
|nothing?
|nothing?
|when scarf grows to capeLength, this trigger(s) gets activated
|when "scarf energy" reaches capeLength, this trigger(s) gets activated
|-
|-
|fireOnce
|fireOnce
|boolean
|boolean
|false?
|false?
|if false then this Trigger stops checking the scarf length/etc (is deactivated?) after it's been triggered one time
|if false then this Trigger stops checking the "scarf energy"/etc (is deactivated?) after it's been triggered one time
|}
|}

Latest revision as of 22:16, 26 September 2021


EventOnCapeLength Triggers constantly check whether LocalDude's scarf just got "charged" to at least a certain amount of "scarf energy", and activates other Trigger(s) if it did.

Despite the trigger's name, it does not check how long the scarf actually is, just how much "scarf energy" it has.


This Trigger appears to be active as soon as it's created, or at least if it was created when the level loaded.

Vars

Name Data type Default Description
capeLength number 0? the trigger checks to see if LocalDude's scarf just now reached this amount of "scarf energy" or more (doesn't check if it lowered past that amount)
effects Trigger / Trigger Clump nothing? when "scarf energy" reaches capeLength, this trigger(s) gets activated
fireOnce boolean false? if false then this Trigger stops checking the "scarf energy"/etc (is deactivated?) after it's been triggered one time