Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 1.09 KB | Hits: 31 | Expires: Never
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.         Else:
  15.           Evaluate d's primary against target's secondary.
  16.       Else:
  17.         Evaluate d's primary against target's secondary.
  18.       Mark target as having defended.
  19.     Else:
  20.           Evaluate d's primary against moves + 1.
  21.         (A special area on the matrix will be made for helpless defenders.)
  22.   If the target's HP is 0, mark them as having acted.
  23. If any duelists are at 0 HP, remove them from the order list.
  24. Move the first duelist to the end of the list.