setvar
Set a story var.
Offline or GM
Refused on a live character unless the account has the GM role ("cheats are off on a live character"). These run in an offline session, with no character signed in, which is how the game is tested.
- Typed in
- The console (`)
- Category
- Story
- Short form
- —
Usage
setvar <VAR_…> <n><angle brackets> are required, [square brackets] optional, and | separates alternatives. Tab completes the command name, and the arguments where the console knows them.
Examples
setvar VAR_LITTLEROOT_TOWN_STATE 2Careful
The same hazard as
setflag, and worse: script branches compare vars for equality, so a value no script ever sets can wedge a sequence with no branch left to take.As of v0.75.0 · engine 22ba612f