Core RPG handbook · Development build / version notes

Core RPG handbook

Create an NPC, enemy and loot

Make a character you can talk to, then create a separate enemy with a combat profile and a guaranteed first drop.

On this page

Use two NPCs for this exercise: one to check conversation, and one to check combat and loot. Keeping them separate makes it easier to tell which part of the setup needs attention.

Make a character you can talk to#

  1. Open Tools → Green Cloak Games → TileTick Core RPG → NPC Database and choose Create NPC.
  2. Enter a Display Name and your own Folder. Choose NPC Type: Dialogue Npc.
  3. Assign a suitable Base Template if you want to keep an existing model, rig and animation setup. The wizard builds components; it doesn’t create character artwork.
  4. Enable Add Talk-to Action and assign a Conversation. Use a supplied conversation first, or make the short conversation in the dialogue guide.
  5. Enable Add Examine, add Examine Text, then create the NPC and review its validation messages.
Actual Create NPC wizard showing templates, network content, combat, drops, dialogue and shop options.
Choose the NPC type and running mode, then supply the template and conversation the character needs. Select the image to enlarge it.

Choose Multiplayer Content for the hosted demo. A local-only NPC belongs in a configured local scene; a network NPC should use the spawn setup below. Leaving Conversation empty does not generate a conversation for you.

Actual NPC Database showing Combat Tutor, validation, interaction range and dialogue action.
Review the character’s Talk-to action and assigned conversation in NPC Database. Select the image to enlarge it.

Create a small test enemy#

  1. Create a second NPC. Choose Combat Monster With Drops and enable Multiplayer Content.
  2. Use a compatible rigged Base Template. The type defaults add SimpleNpcAI, aggression, a combat definition and a drop table.
  3. Open the generated NpcCombatDefinition. Start with low Hitpoints and modest Attack, Strength and Defence so the test fight is short.
  4. For a simple melee enemy, use Attack Range Tiles: 1 and Attack Speed Ticks: 4. Review its Attack Style and diagonal melee setting. Ranged enemies also need the appropriate projectile and range setup.

The combat definition contains levels and bonuses separately. Changing the model does not change its Hitpoints, attack timing or loot.

Give it one guaranteed drop#

Open the generated table in Drop Table Editor. Add a Guaranteed entry using an item you recognise, and set Min Quantity and Max Quantity to 1. Confirm that the NPC’s loot definition points to this table.

Actual Drop Table Editor with guaranteed, weighted and independent entries, quantities and probability preview.
Begin with one guaranteed item. Add weighted and independent rolls after the first drop is working. Select the image to enlarge it.

A guaranteed entry avoids confusing a missing connection with a random miss. Weighted main-table entries use relative weights; tertiary entries use a 1-in-X denominator. Neither field is an ordinary percentage.

Spawn the network NPC#

  1. Register the NPC prefab in the active NetworkManager’s network prefab list. The prefab needs its NetworkObject, NetworkNpc and NpcComposition.
  2. Add a NpcSpawnPoint to the gameplay scene and assign Npc Prefab.
  3. Enable respawning if you want it, and set Respawn Delay Ticks; the default is 25.
  4. Under Tools → Green Cloak Games → Multiplayer, run Register NPC Network Prefabs, Validate NPC Spawn Setup and Validate Player Composition.
  5. If you converted an existing scene NPC to a spawn point, remove the duplicate setup from your test scene rather than leaving two ways to spawn the same character.

Try the conversation and fight#

Start a host. Talk to the first NPC and check that the assigned conversation opens and closes. Fight the enemy with a valid player weapon, then check its death, one-item drop, pickup and respawn. Connect a second client to check that health, death and respawn are shared.

Loot uses the network spawn workflow. Assigning a death-drop table to a local NPC doesn’t execute those drops automatically. Use the network spawn director, or add a local loot consumer in your own code.

When an NPC does nothing#

If Talk-to appears but no conversation opens, check the assigned Conversation and the scene’s DialogueManager/UI. If an enemy is missing entirely, check prefab registration and the spawn point before changing AI settings. If it appears but cannot act, check the grid, path service, ticks and player/session readiness.

For the next step, give your friendly NPC a shop or a small dialogue-driven quest.