Anonymous

User:McClaw/Actions: Difference between revisions

From The Blockheads Wiki
>McClaw
mNo edit summary
>McClaw
Line 53: Line 53:
All Blockheads have a task queue. This is no more than the sequence of actions assigned to a Blockhead.
All Blockheads have a task queue. This is no more than the sequence of actions assigned to a Blockhead.


A task queue operates on the principle of FIFO (First In, First Out). If an idle Blockhead is assigned an action, it will either begin that action immediately or after traveling to where that action was placed. If an action is assigned to a Blockhead that isn't idle, the action will be added to that Blockhead's task queue and will be started once the current action is completed.
A task queue operates on the principle of FIFO (First In, First Out). If an idle Blockhead is assigned an action, it will either begin that action immediately or after traveling to where that action was placed. If an action is assigned to a Blockhead that isn't idle, the action will be added to the end of that Blockhead's task queue and will be started once all previously assigned actions are completed.


Tapping on a Blockhead's [[User Interface|character status icon]] will cause their [[User_Interface#Character_Status_Window|character status window]] to appear over them. If it have any actions assigned to it, a red button to "cancel all actions" is displayed. Tapping that button clears the Blockhead's task queue and aborts its current action.
Tapping on a Blockhead's [[User Interface|character status icon]] will cause their [[User_Interface#Character_Status_Window|character status window]] to appear over them. If it have any actions assigned to it, a red button to "cancel all actions" is displayed. Tapping that button clears the Blockhead's task queue and aborts its current action.


If a Blockhead attempts to perform an action for which it doesn't have the necessary items accessible in its inventory, that action will be aborted.
If a Blockhead attempts to perform an action for which it doesn't have the necessary items accessible in its inventory or use a tool that has been moved, that action will be aborted. The Blockhead will proceed to the next action in its task queue.


==TO ADD==
==TO ADD==
Anonymous user