Actions

Main / Modding / Action

Definition
An action is anything that one of your citizens complete; This can be anything from chopping down a tree to creating a sword. It procedurally defines the steps and resources needed to complete a task, which may or may not be automated, along with the time it takes, what priority it takes, and what is created or destroyed, if anything.

Structure
Following the tag format, actions are defined between open and closing tags. Next, a unique id is assigned that is transparent to the user; this tells the game what the action is when it's referenced by other elements. If the action will be placed in a menu, a name tag is specified to show text to the user on hover, with an optional esEs parameter for the Spanish translation. If the action will be added to the production menu, you may define the icon with a  tag and a item (such as rmwood). Finally, the action requires a tag to define the steps townies take in order to do the action.

Queues
Queues consist of six tags, which may be used in any order to create the desired effect:
 * 1) 
 * 2) 
 * 1) 
 * 2) 
 * 1) 

Pick

 * Pick requires a resource or item. The townie moves to the resource or container, acquires it, and proceeds to the next step.

Move

 * Move, incidentally, moves the townie, along with what they may have created or 'ed up, to the utility specified. (such as masonbench)

Wait

 * Wait ties up the townie, making them hold position and preventing them from doing anything else. Too long of waits, perhaps for expensive items, could lead to starvation. See Unlock for more.

CreateItem

 * Creates the specified item and places it in the townie's hand, replace what--if anything-- was there.

DestroyItem

 * Single line tag that destroys whatever is in the townie's hand.

Unlock

 * Frees the townie to do more important things, i.e. eat, sleep.
 * For very long actions, one may have to use one or more 's to prevent the townies from starving; they will not interrupt their action, except to die or on an unlock.
 * It is unclear if the same townie will finish the action.