Denizen/0.7/Activity Scripts: Difference between revisions

From Citizens Wiki

< Denizen‎ | 0.7

No edit summary
No edit summary
Line 1: Line 1:
Activity Scripts contain a set of Activities.
Activity Scripts contain a set of Activities.
Activities are continuous actions the Denizen can do that give it life. Wandering, collecting wheat, mining a block, these are all possible activities.
Activities are continuous actions the Denizen can do that give it life. Wandering, collecting wheat, mining a block, these are all possible activities.
==== General layout of an Activity Script ====
<div style="margin-right:2.0em; padding:10px; font-family:museo-sans; font-size:110%;">


<pre>
'Name of script':  # Name Node
  Type: Activity    # Type Node
  Requirements:    # Requirements Node
    Mode: ...
    List:
    - ...
    - ...
  Activities:      # Activities Node
    List:
    - ...
    - ...
</pre>
==About==
==About==


Line 19: Line 34:
     - 1 WANDER DELAY:12 RADIUS:10 SPEED:.75 FILTER:COBBLESTONE,GRAVEL,5
     - 1 WANDER DELAY:12 RADIUS:10 SPEED:.75 FILTER:COBBLESTONE,GRAVEL,5
</pre>
</pre>


==Assigning==
==Assigning==
See [[Denizen/Assignments#Activity_Assignment]]
See [[Denizen/Assignments#Activity_Assignment]]

Revision as of 08:09, 21 August 2012

Activity Scripts contain a set of Activities. Activities are continuous actions the Denizen can do that give it life. Wandering, collecting wheat, mining a block, these are all possible activities.

General layout of an Activity Script

'Name of script':   # Name Node
  Type: Activity    # Type Node
  Requirements:     # Requirements Node
    Mode: ...
    List: 
    - ...
    - ...
  Activities:       # Activities Node
    List:
     - ...
     - ...

About

An Activity script defines a set of Activities that a Denizen can do simultaneously.

Each Activity is assigned a goal priority that dictates which activity will be active at any given time. If a certain Activity cannot be done, the next lower priority Activity will be used instead.

An activity Script.

'Citizen':
  Type: Activity
  Requirements:
    Mode: None
  Activities:
    List:
    - 1 WANDER DELAY:12 RADIUS:10 SPEED:.75 FILTER:COBBLESTONE,GRAVEL,5


Assigning

See Denizen/Assignments#Activity_Assignment