Documentation / Tile Tick Core RPG

Skills & XP

OSRS inspired RPG systems for Unity: skills, XP, combat, inventory, equipment, loot, NPCs, interactions, and tile aware action flow.

Core RPG includes an OSRS style skill list, XP table, XP multipliers, level requirements, and action based skill execution.

Included skill enum

SkillType includes Attack, Strength, Defence, Hitpoints, Ranged, Magic, Prayer, Slayer, Fishing, Cooking, Woodcutting, Mining, Firemaking, Smithing, Crafting, Herblore, Agility, Thieving, Fletching, Runecrafting, Hunter, Construction, and Farming.

Runtime skill owner

UnitSkills stores and updates the unit's XP and level data. UI elements such as SkillsPanelUI and SkillSlotUI listen for skill changes and redraw the skills panel.

Action controller

PlayerSkillActionController runs one active IPlayerSkillAction at a time, ticks it from TickManager, cancels the previous action when a new one starts, and starts or stops interaction animations.

Adding a new skill action

  1. Create a class that implements IPlayerSkillAction.
  2. Implement CanStart, Start, Tick, Cancel, and completion state.
  3. Grant XP through UnitSkills when the action succeeds.
  4. Expose the action through a world object handler, item use combination, or context action.
  5. Use InteractionAnimationClass if the action should play a one shot or looping animation.