Each channel is considered a "dungeon". Some dungeons may have a minimum or maximum level which determines the units inside, whether players can enter, and loot! Each dungeon has a theme which influences the units inside and what they say.
CREATE TABLE spiffyrpg_dungeons(
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
description TEXT,
intro TEXT,
channel TEXT,
min_level INT DEFAULT 0,
max_level INT DEFAULT 0,
available_start_date TIMESTAMP,
available_end_date TIMESTAMP,
created_at TIMESTAMP);
spiffyrpg_players
Players are a subset of Units.
user_id
refers to the Limnoria user.spiffyrpg_units
NPCs!
spiffyrpg_unit_types
This is the "classes" table. By calling them unit types we can cover NPCs as well.
spiffyrpg_unit_type_titles
Unit titles which change with level
spiffyrpg_unit_dialogue
spiffyrpg_effects
The
interval_seconds
column allows mechanics like damage or healing over time.stacks
multiplies the effect.operator
is '+' or '-'spiffyrpg_unit_effects
Relationship between a unit and its persistent effects.
spiffyrpg_items
An item can be anything, from a weapon to an amulet.
equipment_slot
determines whether the item can be equipped and in which slot.spiffyrpg_item_effects
Items can cause effects and like units, those effects can have a duration
spiffyrpg_unit_items
Relationship between units and their items. An inventory.
spiffyrpg_dungeons
Each channel is considered a "dungeon". Some dungeons may have a minimum or maximum level which determines the units inside, whether players can enter, and loot! Each dungeon has a theme which influences the units inside and what they say.