Vars
In RuneScape, Varps, Varbits, and Varcs are internal game variables used to track and store various player and game state information. Understanding these terms is crucial for script development, as they allow your script to interact with hidden game states that might not be visible directly through the game interface, but which control crucial elements like quest progress, skill challenges, interface states, or environmental conditions.
All var changes can be tracked using the Live Debugger in the Inubot client
Varps
Varps and varbits are server sided variables for the player and they track various game states
such as if a prayer is toggled, or your quest progress. You can get a varp value
using Vars.get(varId)
.
Varbits
Varbits are smaller bits of data that often represent specific portions of varps, typically when a
larger Varp needs to be broken down into smaller, more manageable parts. Varbits allow the
game to have efficient storage and tracking of binary states (on/off) or small-range values within
the game. You can get a varbit value using Vars.get(Vars.Type.VARBIT, varbitId)
.
Varcs
Varcs are client-specific variables that usually track more temporary or local settings. They affect the client interface, such as the currently open tab, but are not always saved permanently.