Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetRestState

Last wiki revision 2022-07-21

Returns if the character is in a rested or normal state. id, name, mult = GetRestState

  • id: - Rest state index; observed values are 1 if the player is "Rested", 2 if the player is in a normal state.
  • name: - Name of the current rest state; observed: "Rested" or "Normal".
  • mult: - XP multiplier applied to experience gain from killing monsters in the current rest state.

rested = GetRestState; if rested == 1 then print("You're rested. Now's the time to maximize experience gain!"); elseif rested == 2 then print("You're not rested. Find an inn and camp for the night?"); else print("You've discovered a hitherto unknown rest state. Would you like some coffee?") end

Source

https://warcraft.wiki.gg/wiki/API_GetRestState · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.