Simple system

Status
Not open for further replies.
Level 4
Joined
Aug 5, 2011
Messages
94
Hi i want a system for my map.

i want a system to do the following .

When player 1 red selects more than one unit at the same time the game will be over and the map is end.

I want it for my map its a minigame and the player must select 1 unit only and i want this system to be an anti cheat system for my map.
 
Hi i want a system for my map.

i want a system to do the following .

When player 1 red selects more than one unit at the same time the game will be over and the map is end.

I want it for my map its a minigame and the player must select 1 unit only and i want this system to be an anti cheat system for my map.

That's a very poor game mechanic, as it's also possible to select multiple units by accident. You should simply limit the possibility to actually select multiple.
 
  • Defeat
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
    • Actions
      • Set TempGroup = (Units currently selected by Player 1 (Red))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in TempGroup) Greater than 1
        • Then - Actions
          • Game - Display to (All players) the text: GAME OVER
          • Game - Defeat Player 1 (Red) with the message: Defeat!
        • Else - Actions
      • Custom script: call DestroyGroup(udg_TempGroup)
 
But i need that system to select one unit only .

I need something like this

Player 1 red selects a unit

if units are >1(greater to 1)

show defeat
 
Why don't you just detect if more than 1 unit is selected, display a message, and re-select one random unit of units currently selected by that player?
 
Status
Not open for further replies.
Back
Top