Difference between revisions of "EventIfCapeLength"

From Journey Modding Wiki
Jump to navigation Jump to search
(Created page with "EventIfCapeLength Triggers check whether LocalDude's scarf is at least a certain length when the Trigger is activated, and can activate different Trigger(s) based on if it's t...")
 
(tested more, works different than i thought)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
EventIfCapeLength Triggers check whether LocalDude's scarf is at least a certain length when the Trigger is activated, and can activate different Trigger(s) based on if it's that long or not.
[[Category:Trigger Types]][[Category:Trigger-Like Triggers]]
EventIfCapeLength Triggers check whether [[Dude|LocalDude]] has at least a certain amount of "scarf energy" when the Trigger is activated, and can activate different Trigger(s) based on if it has that much "scarf energy" or not.


Is only active briefly to do the check, and then stops checking/deactivates?
Despite its name, the trigger does not check the actual length of the scarf, unless of course the scarf has full "energy".


Isn't activated at the moment it's created?
 
 
Is only active briefly to do the check, and then stops checking/deactivates'''?'''
 
Is not automatically activated when loaded at start of level.


===Vars===
===Vars===
Line 14: Line 19:
|capeLength
|capeLength
|number
|number
|0
|0?
|the trigger checks to see if LocalDude's scarf is currently at least this length
|the trigger checks to see if LocalDude has at least this much "scarf energy"
|-
|-
|effectsOnFalse
|effectsOnFalse
|Trigger / Trigger Clump
|Trigger / Trigger Clump
|null?
|null?
|if scarf length is less than capeLength, this trigger(s) gets activated. is "nullable" so can be set to 0 to activate nothing
|if "scarf energy" is less than capeLength, this trigger(s) gets activated. is "nullable" so can be set to 0 to activate nothing
|-
|-
|effectsOnTrue
|effectsOnTrue
|Trigger / Trigger Clump
|Trigger / Trigger Clump
|null?
|null?
|if scarf length is more than or equal to capeLength, this trigger(s) gets activated. is "nullable" so can be set to 0 to activate nothing
|if "scarf energy" is more than or equal to capeLength, this trigger(s) gets activated. is "nullable" so can be set to 0 to activate nothing
|-
|-
|fireOnce
|fireOnce
|boolean
|boolean
|false
|false?
|untested - maybe "true" means it only can be triggered to do a check once and then gets disabled? or maybe "false" means that once it's activated, it keeps checking scarf length/activating the appropriate trigger(s) constantly?
|'''untested''' - maybe "true" means it only can be triggered to do a check once and then gets disabled? or maybe "false" means that once it's activated, it keeps checking scarf length/activating the appropriate trigger(s) constantly?
|}
|}

Latest revision as of 22:09, 26 September 2021

EventIfCapeLength Triggers check whether LocalDude has at least a certain amount of "scarf energy" when the Trigger is activated, and can activate different Trigger(s) based on if it has that much "scarf energy" or not.

Despite its name, the trigger does not check the actual length of the scarf, unless of course the scarf has full "energy".


Is only active briefly to do the check, and then stops checking/deactivates?

Is not automatically activated when loaded at start of level.

Vars

Name Data type Default Description
capeLength number 0? the trigger checks to see if LocalDude has at least this much "scarf energy"
effectsOnFalse Trigger / Trigger Clump null? if "scarf energy" is less than capeLength, this trigger(s) gets activated. is "nullable" so can be set to 0 to activate nothing
effectsOnTrue Trigger / Trigger Clump null? if "scarf energy" is more than or equal to capeLength, this trigger(s) gets activated. is "nullable" so can be set to 0 to activate nothing
fireOnce boolean false? untested - maybe "true" means it only can be triggered to do a check once and then gets disabled? or maybe "false" means that once it's activated, it keeps checking scarf length/activating the appropriate trigger(s) constantly?