Denizen/Quick Guide to Using Denizen

From Citizens Wiki

< Denizen

Revision as of 15:50, 15 February 2013 by Davidcernat (talk | contribs) (Created page with "==First time using Denizen== Using Denizen for the first time is easy. Make sure you have a recent build of [http://dl.bukkit.org/downloads/craftbukkit/ Craftbukkit] and the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

First time using Denizen

Using Denizen for the first time is easy.

Make sure you have a recent build of Craftbukkit and the latest builds of Citizens2 and Denizen.

Then visit the Script Repository and get a few scripts for the current version of Denizen so you can see it in action. Scripts for much older versions won't work, so make sure the Denizen Version in the script's information box is the right one. Denizen is currently at version 0.88, but scripts for 0.85 work as well.

A very basic script that you can try out initially is the Cookies script.

Just click the Download button in the script's information box, save the script.yml in your server's plugins\Denizen\scripts folder, and perhaps rename the file to something more descriptive like Cookies.yml

Then start up your server, or use the command /denizen reload scripts to load up the script if your server is already running.

Then assign the script to an NPC using the command /npc assign --set Cookies

And you are done creating your first Denizen NPC.

Of course, since this is a basic script, all you can do to interact with this NPC is click on it or look at it and say "cookie" in the chat.

But now you are ready to get and assign more complicated scripts. Please note, however, that if an assignment's name contains spaces, you have to put it in quotation marks when you assign it. So if an assignment is named More Cookies, you have to use /npc assign --set "More Cookies" to assign it.

Note that there is no "/trait denizen" command like there is for other Citizens traits. An NPC becomes a Denizen only when you use /npc assign on it.