63
edits
m |
m (improv) |
||
| Line 60: | Line 60: | ||
;<nowiki>game:matchmaker():Disconnect()</nowiki> | ;<nowiki>game:matchmaker():Disconnect()</nowiki> | ||
:Self-explanatory, instant disconnection. | :Self-explanatory, instant disconnection from companion. | ||
| Line 83: | Line 83: | ||
;<nowiki>game:playerBarn():GetLocalDude():SetOutfit( number )</nowiki> | ;<nowiki>game:playerBarn():GetLocalDude():SetOutfit( number )</nowiki> | ||
:Note: This function does not replace your actual saved robe per se, returning to chapter select reveals this. | :Note: This function does not replace your actual saved robe per se, returning to chapter select reveals this. | ||
:See [[SetDudeAge]] | |||
:Changes your robe tier/color based on the number. Change is visible to companion (but maybe sometimes is not?) | :Changes your robe tier/color based on the number. Change is visible to companion (but maybe sometimes is not?) | ||
::0, 1, 2, 3 are red robe tiers 1, 2, 3, 4 | ::0, 1, 2, 3 are red robe tiers 1, 2, 3, 4 | ||
| Line 90: | Line 91: | ||
;<nowiki>game:playerBarn():GetLocalDude():SetPos(game:playerBarn():GetRemoteDude():GetPos())</nowiki> | ;<nowiki>game:playerBarn():GetLocalDude():SetPos(game:playerBarn():GetRemoteDude():GetPos())</nowiki> | ||
:Teleports your wayfarer to where the companion is, will throw a nil error or crash if no | :Teleports your wayfarer to where the companion is, will throw a nil error or crash if no RemoteHijack is active and no companion is connected. | ||
| Line 151: | Line 152: | ||
;SaveVars("SavedVars.lua") | ;SaveVars("SavedVars.lua") | ||
:Writes runtime variables from memory to a file, useful for | :Writes runtime variables from memory to a file, useful for verifying state. | ||
;Vars.table.setting(value) | ;Vars.table.setting(value) | ||
: Changes settings controlled by Vars.lua. You can also just change the values in Journey.exe itself, but this script is good for changing things while playing, and also some things will be changed by the game when it loads and you must use this script to actually make the game do what you want. | : Changes settings controlled by [[Vars|Vars.lua]]. You can also just change the values in Journey.exe itself, but this script is good for changing things while playing, and also some things will be changed by the game when it loads and you must use this script to actually make the game do what you want. | ||
: (See Vars.lua in Data/Scripts for possible settings: use a table/category name for "table", the specific setting name within that category for "option", and the desired value for "value".) | : (See [[Vars|Vars.lua]] in Data/Scripts for possible settings: use a table/category name for "table", the specific setting name within that category for "option", and the desired value for "value".) | ||