Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement