-
Notifications
You must be signed in to change notification settings - Fork 105
Valkyrie Variables
Valkyrie editor allows to set variables. Furthermore there is a set of built-in variables that you can use.
Quest variables start with a roman letter and are used within a quest only.
Campaign Variables start with a %
. They work just like quest variables, except that they are not cleared when changing to a new quest.
Trigger vars start with a @
. They can be used to trigger an event by setting to 1 and are then set to 0 automatically.
In order to use these built-in variables in a text you need to assign them to another variable first and then link this variable in your text (e.g. {var:%MyVariableName}
.
These variables are read only and start with #
- #rand<number>: A random integer from 1 to <number> inclusive, which is calculated each time it is used (e.g.
#rand8
) - #round: The round number
- #monsters: Number of Monsters (Spawns) present
- #heroes: Number of Heroes selected
- #eliminated:
- 0: No investigators have been marked as eliminated
- 1: An investigator has been marked as eliminated
- #<content>: Set for all content packs by id
- 0: Content pack is not enabled
- 1: Content pack is enabled
- #Hero<hero>: Set to one if a specific hero/investigator has been selected for the quest (e.g. HeroWidowTarha). (Format 8+)
- #Class<class>: Set if class is present (Format 8+)
These variables can be written too by quests and start with '$'.
- $end - After the current event end the quest (Format 9+)
- $restock - If set to 1 will cause all items to reroll a new random item, will then reset to 0 any open stores must be closed
- $perilMinor - A Minor peril will occur at the end of the round if this is >0, then this will be set to 0
- $perilMajor - A Major peril will occur at the end of the round if this is >0, then this will be set to 0
- $perilDeadly - A Deadly peril will occur at the end of the round if this is >0, then this will be set to 0
- $%morale - The current morale level
- $%xp - XP for each hero
- $%gold - Party gold level
- $%sellratio - If non-0 is a multiplier of purchase cost items can be sold for
- $%fame - Party fame level
- $%famenoteworthy- fame level required for noteworthy items (restock after setting)
- $%fameimpressive - fame level required for impressive items (restock after setting)
- $%famecelebrated - fame level required for celebrated items (restock after setting)
- $%fameheroic - fame level required for heroic items (restock after setting)
- $%famelegendary - fame level required for legendary items (restock after setting)
- $@travelevent - set to 1 to trigger a travel event, automatically resets to 0
- $fire:
- 0: Fire has not been marked as set
- 1: Fire has been marked as set
Intensity (all have one of these):
- $mythosHelp - Events that help investigators (may have side effects)
- $mythosFlavor - Events that do not have any game effect
- $mythosMinor - Events that do not have a large impact
- $mythosMajor - Events that have a large impact
- $mythosDeadly - Events that will mess you up
Some may also have:
- $mythosIndoors - Events that affect investigators indoors
- $mythosOutdoors - Events that affect investigators outdoors
Some happen in locations:
- $mythosStreetCorner
- $mythosAlleyCorner
- $mythosAlley
- $mythosStreet
- $mythosHall
- $mythosLibrary
- $mythosKitchen
- $mythosBallroom
- $mythosCrypt
- $mythosGraveyard
- $mythosMorgue
- $mythosBeach
- $mythosDock
- $mythosPier
- $mythosBathroom
- $mythosOffice
- $mythosStudy
- $mythosTownSquare
- $mythosLounge
- $mythosStairs
- $mythosRiver
- $mythosDiningRoom
- $mythosBedroom
- $mythosStorageRoom
- $mythosHallStairs
- $mythosAtticStorage
- $mythosClassroom
- $mythosChapel
- $mythosExhibit
Some have other specifics:
- #fire - Events that happen to investigators in a fire (controlled by Valkyrie)
- $mythosDarkness - Events that happen to investigators in darkness
- $mythosDiscardItem - Events that may cause investigators to discard an item
- $mythosKey - Events that affect investigators with a key