Table of Contents

InnKeeperNPC - Code References

Java Classes

This entity is not implemented in Java. It uses Lua scripting instead.

JSON Configuration

{
   "defenseSkill"  :3,
   "attackSkill"   :8,
   "baseSpeed"     :0,
   "attackDelay"   :1,
   "ht"            :5,
   "spriteDesc"    :"spritesDesc/InnKeeperNPC.json",
   "scriptFile"    :"scripts/npc/Innkeeper",
   "friendly"      :true,
   "movable"       :false,
   "aiState"       :"Passive",
   "fraction"      :"NEUTRAL",
   "immortal"      :true
}

Sprite Configuration

{
  "texture" : "mobs/town_townsfolk_innkeeper.png",
  "frames"  : [ { "x": 0, "y": 0, "width": 32, "height": 32 } ]
}

String Resources

<string name="InnKeeperNPC_Name">inn keeper</string>
<string name="InnKeeperNPC_Name_Objective">inn keeper</string>
<string name="InnKeeperNPC_Desc">The innkeeper is proud of himself.</string>

Lua Scripts

Level Placement