Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 KB | None | 0 0
  1. Use NumberOfUnitsOwnedByPlayer with a comparison condition.
  2. > Returns an integer value.
  3.  
  4. Use NumberOfUnitsOwnedByPlayerGreater to get a Boolean Return Value.
  5. > True: PlayerUnits > Units
  6. > False: PlayerUnits < Units
  7.  
  8. Use NumberOfUnitsOwnedByPlayerGreaterOrEqual to get a Boolean Return Value.
  9. > True: PlayerUnits >= Units
  10. > False: PlayerUnits < Units
  11.  
  12. Use NumberOfUnitsOwnedByPlayerLess to get a Boolean Return Value.
  13. > True: PlayerUnits < Units
  14. > False: PlayerUnits > Units
  15.  
  16. Use NumberOfUnitsOwnedByPlayerLessOrEqual to get a Boolean Return Value.
  17. > True: PlayerUnits <= Units
  18. > False: PlayerUnits > Units
  19.  
  20. Use NumberOfUnitsOwnedByPlayerEqual to get a Boolean Return Value.
  21. > True: PlayerUnits = Units
  22. > False: PlayerUnits != Units
  23.  
  24. Use NumberOfUnitsOwnedByPlayerEqual to get a Boolean Return Value.
  25. > True: PlayerUnits != Units
  26. > False: PlayerUnits = Units
  27.  
  28. //-------------------------------------------------------------------------
  29.  
  30. NumberOfUnitsOwnedByPlayer
  31. Options: Condition
  32. Return Type: Integer
  33. Parameters
  34. Player = 0 <Integer>
  35. Grammar Text: NumberOfUnitsOwnedByPlayer(Player)
  36. Hint Text: (None)
  37. Custom Script Code
  38. Local Variables
  39. Actions
  40. General - Return (Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Player, with at most Any Amount))
  41.  
  42. //-------------------------------------------------------------------------
  43.  
  44. NumberOfUnitsOwnedByPlayerGreater
  45. Options: Condition
  46. Return Type: Boolean
  47. Parameters
  48. Player = 0 <Integer>
  49. Units = 0 <Integer>
  50. Grammar Text: NumberOfUnitsOwnedByPlayerGreater(Player, Units)
  51. Hint Text: (None)
  52. Custom Script Code
  53. Local Variables
  54. Actions
  55. General - If (Conditions) then do (Actions) else do (Actions)
  56. If
  57. (Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Player, with at most Any Amount)) > Units
  58. Then
  59. General - Return true
  60. Else
  61. General - Return false
  62.  
  63. //-------------------------------------------------------------------------
  64.  
  65. NumberOfUnitsOwnedByPlayerGreaterOrEqual
  66. Options: Condition
  67. Return Type: Boolean
  68. Parameters
  69. Player = 0 <Integer>
  70. Units = 0 <Integer>
  71. Grammar Text: NumberOfUnitsOwnedByPlayerGreaterOrEqual(Player, Units)
  72. Hint Text: (None)
  73. Custom Script Code
  74. Local Variables
  75. Actions
  76. General - If (Conditions) then do (Actions) else do (Actions)
  77. If
  78. (Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Player, with at most Any Amount)) >= Units
  79. Then
  80. General - Return true
  81. Else
  82. General - Return false
  83.  
  84. //-------------------------------------------------------------------------
  85.  
  86. NumberOfUnitsOwnedByPlayerLess
  87. Options: Condition
  88. Return Type: Boolean
  89. Parameters
  90. Player = 0 <Integer>
  91. Units = 0 <Integer>
  92. Grammar Text: NumberOfUnitsOwnedByPlayerLess(Player, Units)
  93. Hint Text: (None)
  94. Custom Script Code
  95. Local Variables
  96. Actions
  97. General - If (Conditions) then do (Actions) else do (Actions)
  98. If
  99. (Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Player, with at most Any Amount)) < Units
  100. Then
  101. General - Return true
  102. Else
  103. General - Return false
  104.  
  105. //-------------------------------------------------------------------------
  106.  
  107. NumberOfUnitsOwnedByPlayerLessOrEqual
  108. Options: Condition
  109. Return Type: Boolean
  110. Parameters
  111. Player = 0 <Integer>
  112. Units = 0 <Integer>
  113. Grammar Text: NumberOfUnitsOwnedByPlayerLessOrEqual(Player, Units)
  114. Hint Text: (None)
  115. Custom Script Code
  116. Local Variables
  117. Actions
  118. General - If (Conditions) then do (Actions) else do (Actions)
  119. If
  120. (Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Player, with at most Any Amount)) <= Units
  121. Then
  122. General - Return true
  123. Else
  124. General - Return false
  125.  
  126. //-------------------------------------------------------------------------
  127.  
  128. NumberOfUnitsOwnedByPlayerLessOrEqual
  129. Options: Condition
  130. Return Type: Boolean
  131. Parameters
  132. Player = 0 <Integer>
  133. Units = 0 <Integer>
  134. Grammar Text: NumberOfUnitsOwnedByPlayerLessOrEqual(Player, Units)
  135. Hint Text: (None)
  136. Custom Script Code
  137. Local Variables
  138. Actions
  139. General - If (Conditions) then do (Actions) else do (Actions)
  140. If
  141. (Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Player, with at most Any Amount)) <= Units
  142. Then
  143. General - Return true
  144. Else
  145. General - Return false
  146.  
  147. //-------------------------------------------------------------------------
  148.  
  149. NumberOfUnitsOwnedByPlayerNotEqual
  150. Options: Condition
  151. Return Type: Boolean
  152. Parameters
  153. Player = 0 <Integer>
  154. Units = 0 <Integer>
  155. Grammar Text: NumberOfUnitsOwnedByPlayerNotEqual(Player, Units)
  156. Hint Text: (None)
  157. Custom Script Code
  158. Local Variables
  159. Actions
  160. General - If (Conditions) then do (Actions) else do (Actions)
  161. If
  162. (Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player Player, with at most Any Amount)) != Units
  163. Then
  164. General - Return true
  165. Else
  166. General - Return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement