SHARE
TWEET

Untitled

a guest Jun 4th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. prAdd1ForEachUnitInAreaOfUnitInArea:
  2.     rForEachUnitInRangeTemplate(pTestShape)
  3.         rIf/* CONDITION (Probably a Skill right?) */
  4.             rAdd
  5.                 rCallOther(prCountUnitsAroundSubject)
  6.  
  7. prCountUnitsAroundSubject:
  8. {
  9.     rCallSequence(_prConst _prCount)
  10.  
  11. _prConst:
  12.     rConstant(10) // N
  13.  
  14. _prCount:
  15.     rForEachUnitInRangeTemplate(pTestShape)
  16.         rAdd(rConstant(1)) // X
  17. }
  18.  
  19. // Defining Range Shape
  20. pTestShape:
  21.     // Header
  22.     BYTE 5 5 // Size
  23.     BYTE 2 2 // Origin (Where the Unit would be)
  24.  
  25.     // Data
  26.     BYTE 0 1 1 1 0
  27.     BYTE 1 0 1 0 1
  28.     BYTE 1 1 0 1 1
  29.     BYTE 1 0 1 0 1
  30.     BYTE 0 1 1 1 0
  31.    
  32.     // For good measure
  33.     ALIGN 4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top