You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

User:Xylthixlm

From MafiaWiki
Revision as of 06:24, 27 August 2008 by Xylthixlm (talk | contribs) (Natural action resolution system)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Natural Action Resolution

This is a summary of the system used by XylBot, adapted for human use. It should not be taken as authoritative on how XylBot will actually behave.

The Golden Rule

If an action might modify another action's effect, that action happens before the action it modifies.

To achieve this in practice, follow these steps:

  1. Find an action where its effect couldn't possibly be modified by any other action.
  2. Resolve it.
  3. Repeat from step 1 until all actions are resolved.

Paradox Breaking

Sometimes the actions that might affect each other form a cycle, so that there's no action to pick in step 1. In that case, pick an action to resolve in this order:

  1. Copy
  2. Hide
  3. Bus
  4. Block
  5. Redirect
  6. Protect
  7. Anything else

Minor modifications of the actions listed above are counted the same as the basic action (e.g., randomize would be the same priority as redirect). Actions which combine two of the listed actions use the higher priority.

If two or more actions in a cycle share a priority, pick one using any fair method. The bot uses the first action submitted.

Once you've resolved the action you picked, go back to the normal method until you get another cycle. Usually one or two picks are enough to make everything work.