arendjr / PlainText

Text-based MUD game engine
GNU Affero General Public License v3.0
78 stars 17 forks source link

Is it possible to add mob drops? #10

Closed UnbanTwin closed 8 years ago

arendjr commented 8 years ago

Actually, they are already implemented :) All characters by default drop all items in their inventory when they die. In data/scripts/gameobjects/character.js you'll find the Character#die() method which implements this.

If you want to customize the behavior for specific NPCs you probably may want to use the hook into ondie trigger. For more information about triggers, see: https://github.com/arendjr/PlainText/wiki/Triggers