Documentation / Tile Tick Core RPG

NPCs, AI & Loot

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

NPCs are RPG units with interaction providers, optional AI, combat definitions, and loot behavior.

NPC setup

  • Use RPGUnitBrain and movement components for tile aware movement.
  • Add NpcInteractable and NpcInteractionController for NPC context actions.
  • Add StartDialogueConversationNpcAction for talk/tutor behavior or OpenShopNpcAction for merchants.
  • Add NpcCombatSetup and NpcCombatDefinition for stat/config driven combat setup.
  • Add SimpleNpcAI if the NPC should acquire targets, chase, attack, or return to idle.

NPC actions

NpcActionDefinition and INpcActionHandler allow NPCs to expose modular actions such as attack, talk, trade, examine, or custom project specific behavior.

Loot setup

Create a LootDropTable from Create > TileTick > Loot > Drop Table. It supports guaranteed drops, weighted main table rolls, duplicate control, sub tables, and independent tertiary drops.

Death drops

Add LootDropOnDeath to a unit that should drop items. Assign a drop table and ground loot spawn configuration.

Ground loot

GroundLoot, GroundLootContextActionProvider, and LootPickupController handle visible drops, pickup actions, and inventory transfer.