• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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