Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 1.13 KB | Hits: 14 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. Resolution Pseudocode:
  2. For each duelist d in the order list:
  3.   If d has not yet acted and is not SDing:
  4.     If d and target are targeting each other
  5.       Evaluate d's primary against target's primary.
  6.       Mark target as having acted.
  7.     Else if there is a duelist SDing the target that has not yet acted:
  8.           Evaluate d's primary against defender's primary.
  9.           Mark defender as having acted.
  10.     Else if target has not yet defended:
  11.       If target is fancy defending and full fancy defenses are enabled:
  12.         If anyone else is going to hit into that defense:
  13.           Mark them as having acted. Nothing happens.
  14.           Remove 1 MP from the target.
  15.         Else:
  16.           Evaluate d's primary against target's secondary.
  17.       Else:
  18.         Evaluate d's primary against target's secondary.
  19.       Mark target as having defended.
  20.     Else:
  21.           Evaluate d's primary against moves + 1.
  22.         (A special area on the matrix will be made for helpless defenders.)
  23.   If the target's HP is 0, mark them as having acted.
  24. If any duelists are at 0 HP, remove them from the order list.
  25. Move the first duelist to the end of the list.