Difference between revisions of "SetDudeAge"

From Journey Modding Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Trigger Types]][[Category:Event-Like Triggers]]
[[Category:Trigger Types]][[Category:Event-Like Triggers]]
SetDudeAge is a type of Trigger that changes the "age" (robe tier) of a player avatar when activated.
SetDudeAge is a type of Trigger that changes the "age" (robe tier) of a [[Dude]] when activated.


Examples exist in TriggerInstances.lua for every normally playable level plus Level_Bryan, but they are only actually used in Level_Graveyard (for changing from red robe to white robe) and in Level_Bryan (unused mechanics from beta).
Examples exist in TriggerInstances.lua for every normally playable level plus Level_Bryan, but they are only actually used in Level_Graveyard (for changing from red robe to white robe) and in Level_Bryan (unused mechanics from beta).
===Variables:===
 
;age
===Vars===
:''number''
{|class="wikitable"
:Sets avatar's robe to a specific tier:
!Name
::0, 1, 2, 3 are red robe tiers 1, 2, 3, 4;
!Data type
::4, 5, 6 are white robe tiers 2, 3, 4.
!Default
::Any number higher than 6 will set it as white robe tier 4, and also the actual robe tier variable in memory will only be set to 6.
!Description
;useRemote
|-
:''boolean''
|age
:If "false", sets the robe tier for the local avatar (you).  
|number
:If "true", sets the robe tier for the remote avatar (companion). Probably only works while companion is hijacked by "Nick".
|0
;useMaxAge
|Sets Dude's robe to a specific tier: 0, 1, 2, 3 are red robe tiers 1, 2, 3, 4; and 4, 5, 6 are white robe tiers 2, 3, 4. Any number higher than 6 will set it as white robe tier 4, and also the actual robe tier variable in memory will only be set to 6.
:''boolean''
|-
:If "true", ignores the '''age''' setting and sets robe color to red, with the tier it "should" be based on how many runs you have completed in your save file.
|useRemote
;whiteCostumeAge
|boolean
:''boolean''
|false
:If "true", ignores the '''age''' and '''useMaxAge''' settings and sets robe color to white, with the tier it "should" be based on how many runs you have completed in your save file.
|If "false", sets the robe tier for the LocalDude. If "true", sets the robe tier for the RemoteDude - maybe only works while companion is hijacked by "Nick"?
:(Only tested on save with all symbols collected - may behave differently if you have not collected all symbols and/or are on your first run.)
|-
|useMaxAge
|boolean
|false
|If "true", ignores the '''age''' setting and sets robe color to red, with the tier it "should" be based on how many runs you have completed in your save file. (At least it does on LocalDude. not tested how it determines "max age" on RemoteDude - or i did but can't remember - but it probably still uses "your" save file's completed runs)
|-
|whiteCostumeAge
|boolean
|false
|If "true", ignores the '''age''' and '''useMaxAge''' settings and sets robe color to white, with the tier it "should" be based on how many runs you have completed in your save file. (Only tested on save with all symbols collected - may behave differently if you have not collected all symbols and/or are on your first run.) (See above for untested possible difference if RemoteDude)
|}

Latest revision as of 18:05, 25 September 2021

SetDudeAge is a type of Trigger that changes the "age" (robe tier) of a Dude when activated.

Examples exist in TriggerInstances.lua for every normally playable level plus Level_Bryan, but they are only actually used in Level_Graveyard (for changing from red robe to white robe) and in Level_Bryan (unused mechanics from beta).

Vars

Name Data type Default Description
age number 0 Sets Dude's robe to a specific tier: 0, 1, 2, 3 are red robe tiers 1, 2, 3, 4; and 4, 5, 6 are white robe tiers 2, 3, 4. Any number higher than 6 will set it as white robe tier 4, and also the actual robe tier variable in memory will only be set to 6.
useRemote boolean false If "false", sets the robe tier for the LocalDude. If "true", sets the robe tier for the RemoteDude - maybe only works while companion is hijacked by "Nick"?
useMaxAge boolean false If "true", ignores the age setting and sets robe color to red, with the tier it "should" be based on how many runs you have completed in your save file. (At least it does on LocalDude. not tested how it determines "max age" on RemoteDude - or i did but can't remember - but it probably still uses "your" save file's completed runs)
whiteCostumeAge boolean false If "true", ignores the age and useMaxAge settings and sets robe color to white, with the tier it "should" be based on how many runs you have completed in your save file. (Only tested on save with all symbols collected - may behave differently if you have not collected all symbols and/or are on your first run.) (See above for untested possible difference if RemoteDude)