Difference between revisions of "EventIfCapeLength"

From Journey Modding Wiki
Jump to navigation Jump to search
m
(tested more, works different than i thought)
 
Line 1: Line 1:
[[Category:Trigger Types]][[Category:Trigger-Like Triggers]]
[[Category:Trigger Types]][[Category:Trigger-Like Triggers]]
EventIfCapeLength Triggers check whether [[Dude|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.
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.
 
Despite its name, the trigger does not check the actual length of the scarf, unless of course the scarf has full "energy".


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, and EventIfCapeLength was triggered while your scarf was only halfway done growing in-game, and your cape "looks" how long it would be at length 15, it would detect your scarf length as being 15 ('''technically untested''' but this is how Event'''On'''CapeLength works, at least)




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


Isn't activated at the moment it's created'''?'''
Is not automatically activated when loaded at start of level.


===Vars===
===Vars===
Line 19: Line 20:
|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

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?