RPG Xdocumentation About RPG X

RPG X

Garry's Mod roleplay gamemode, derived from Sandbox.

  • Gamemode folder name: rpgx (+gamemode rpgx)

Running a server

  • Server settingsEvery convar, with its default and what it does.
  • Ranks and permissionsThe three ranks, setting them with or without ULX, and adding your own permissions.
  • DatabaseSQLite or MySQL, moving between them, every table, and saving from addons.

Building a world

  • Enemy spawnsPlacing spawn points with the toolgun: enemies, levels, hives and respawning.
  • Shops and questsGiving an NPC a shop or quests, and adding your own kinds of quest task.

Playing

  • Inventory and hotbarThe hotbar, the inventory window, death drops and lootable containers.
  • Levels and skillsXP, the level curve formula, the skill tree, and writing skills as addons.
  • Stamina and manaPools, refilling, combat, training, and buffs and debuffs.
  • GunsStamina per round, the one spare magazine, and changing any gun's values.
  • Chat and voiceGlobal and local chat, and voice that fades with distance.
  • Corpses and F2Corpses that fade away, and each player's own settings window.

Scripting

  • Scripted buffsBuffs and debuffs as files, like SWEPs: putting them on players and NPCs, and writing your own.

Writing an addon

RPG X is built to be extended. These are the places an addon can plug in: