Denizen/Quick Guide to Using Denizen: Difference between revisions

From Citizens Wiki
(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...")
 
No edit summary
Line 19: Line 19:
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.
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 <span style="color:Blue">/npc assign --set "More Cookies"</span> to assign it.
But now you are ready to download and assign more complicated scripts or make your own. 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 <span style="color:Blue">/npc assign --set "More Cookies"</span> 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 <span style="color:Blue">/npc assign</span> on 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 <span style="color:Blue">/npc assign</span> on it.

Revision as of 15:52, 15 February 2013

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 download and assign more complicated scripts or make your own. 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.