Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Use NumberOfUnitsOwnedByPlayer with a comparison condition.
- > Returns an integer value.
- Use NumberOfUnitsOwnedByPlayerGreater to get a Boolean Return Value.
- > True: PlayerUnits > Units
- > False: PlayerUnits < Units
- Use NumberOfUnitsOwnedByPlayerGreaterOrEqual to get a Boolean Return Value.
- > True: PlayerUnits >= Units
- > False: PlayerUnits < Units
- Use NumberOfUnitsOwnedByPlayerLess to get a Boolean Return Value.
- > True: PlayerUnits < Units
- > False: PlayerUnits > Units
- Use NumberOfUnitsOwnedByPlayerLessOrEqual to get a Boolean Return Value.
- > True: PlayerUnits <= Units
- > False: PlayerUnits > Units
- Use NumberOfUnitsOwnedByPlayerEqual to get a Boolean Return Value.
- > True: PlayerUnits = Units
- > False: PlayerUnits != Units
- Use NumberOfUnitsOwnedByPlayerEqual to get a Boolean Return Value.
- > True: PlayerUnits != Units
- > False: PlayerUnits = Units
- //-------------------------------------------------------------------------
- NumberOfUnitsOwnedByPlayer
- Options: Condition
- Return Type: Integer
- Parameters
- Player = 0 <Integer>
- Grammar Text: NumberOfUnitsOwnedByPlayer(Player)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- Actions
- 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))
- //-------------------------------------------------------------------------
- NumberOfUnitsOwnedByPlayerGreater
- Options: Condition
- Return Type: Boolean
- Parameters
- Player = 0 <Integer>
- Units = 0 <Integer>
- Grammar Text: NumberOfUnitsOwnedByPlayerGreater(Player, Units)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (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
- Then
- General - Return true
- Else
- General - Return false
- //-------------------------------------------------------------------------
- NumberOfUnitsOwnedByPlayerGreaterOrEqual
- Options: Condition
- Return Type: Boolean
- Parameters
- Player = 0 <Integer>
- Units = 0 <Integer>
- Grammar Text: NumberOfUnitsOwnedByPlayerGreaterOrEqual(Player, Units)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (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
- Then
- General - Return true
- Else
- General - Return false
- //-------------------------------------------------------------------------
- NumberOfUnitsOwnedByPlayerLess
- Options: Condition
- Return Type: Boolean
- Parameters
- Player = 0 <Integer>
- Units = 0 <Integer>
- Grammar Text: NumberOfUnitsOwnedByPlayerLess(Player, Units)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (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
- Then
- General - Return true
- Else
- General - Return false
- //-------------------------------------------------------------------------
- NumberOfUnitsOwnedByPlayerLessOrEqual
- Options: Condition
- Return Type: Boolean
- Parameters
- Player = 0 <Integer>
- Units = 0 <Integer>
- Grammar Text: NumberOfUnitsOwnedByPlayerLessOrEqual(Player, Units)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (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
- Then
- General - Return true
- Else
- General - Return false
- //-------------------------------------------------------------------------
- NumberOfUnitsOwnedByPlayerLessOrEqual
- Options: Condition
- Return Type: Boolean
- Parameters
- Player = 0 <Integer>
- Units = 0 <Integer>
- Grammar Text: NumberOfUnitsOwnedByPlayerLessOrEqual(Player, Units)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (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
- Then
- General - Return true
- Else
- General - Return false
- //-------------------------------------------------------------------------
- NumberOfUnitsOwnedByPlayerNotEqual
- Options: Condition
- Return Type: Boolean
- Parameters
- Player = 0 <Integer>
- Units = 0 <Integer>
- Grammar Text: NumberOfUnitsOwnedByPlayerNotEqual(Player, Units)
- Hint Text: (None)
- Custom Script Code
- Local Variables
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (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
- Then
- General - Return true
- Else
- General - Return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement