Denizen/Quick Guide to Using Denizen: Difference between revisions

From Citizens Wiki
No edit summary
(Blanked the page)
 
Line 1: Line 1:
==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 latest builds of [http://jenkins.citizensnpcs.com/job/Citizens2/lastSuccessfulBuild/artifact/target/citizens-2.0.7-SNAPSHOT.jar Citizens2] and [http://jenkins.citizensnpcs.com/job/Denizen/lastSuccessfulBuild/artifact/target/denizen-0.8-PRERELEASE.jar Denizen].
Then visit the [http://scripts.citizensnpcs.com/browse 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 [http://scripts.citizensnpcs.com/view/kx78np 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 <span style="color:Blue">/denizen reload scripts</span> to load up the script if your server is already running.
Then assign the script to an NPC using the command <span style="color:Blue">/npc assign --set Cookies</span>
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 between 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.

Latest revision as of 09:18, 18 March 2013