Builder/Builder and Denizen: Difference between revisions

From Citizens Wiki
No edit summary
Line 2: Line 2:
If you want a builder to look busy and continuously rebuild and destroy a schematic, you would use a setup like this.
If you want a builder to look busy and continuously rebuild and destroy a schematic, you would use a setup like this.


Create a Task script in any file the denizen scripts folder like the following.
Create a Task script in any yml file the denizen scripts folder like the following.


<code>
<code>
---scriptfile.yml---
---script.yml---
 
RebuildHouse:
RebuildHouse:
   Type: Task
   Type: Task
   Script:
   Script:
     - execute as_server "builder <npc.id> build excavate oncomplete:RebuildHouse"
     - execute as_server "builder <npc.id> build excavate oncomplete:RebuildHouse"
<code>
</code>


Now create your builder, load the desired schematic, set an origin, and call ''/builder build oncomplete:RebuildHouse''
Now create your builder, load the desired schematic, set an origin, and call ''/builder build oncomplete:RebuildHouse''


The builder will then build the schematic, and then run the task, which will build it again with the ''excavate'' option that will tear it down first, and the cycle will continue.
The builder will then build the schematic, and then run the task, which will build it again with the ''excavate'' option that will tear it down first, and the cycle will continue.

Revision as of 01:14, 9 August 2013

Continuous Rebuilding

If you want a builder to look busy and continuously rebuild and destroy a schematic, you would use a setup like this.

Create a Task script in any yml file the denizen scripts folder like the following.

---script.yml--- RebuildHouse:

 Type: Task
 Script:
   - execute as_server "builder <npc.id> build excavate oncomplete:RebuildHouse"

Now create your builder, load the desired schematic, set an origin, and call /builder build oncomplete:RebuildHouse

The builder will then build the schematic, and then run the task, which will build it again with the excavate option that will tear it down first, and the cycle will continue.