SetDudeAge

From Journey Modding Wiki
Revision as of 00:54, 12 June 2021 by Alazar88 (talk | contribs)
Jump to navigation Jump to search

SetDudeAge is a type of Trigger that changes the "age" (robe tier) of a player avatar 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).

Variables:

age
number
Sets avatar's robe to a specific tier:
0, 1, 2, 3 are red robe tiers 1, 2, 3, 4;
5, 6, 7 are white robe tiers 2, 3, 4.
useRemote
boolean
If "false", sets the robe tier for the local avatar (you).
If "true", sets the robe tier for the remote avatar (companion). Probably only works while companion is hijacked by "Nick".
useMaxAge
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.
whiteCostumeAge
boolean
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.)