• 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.

Anti-Camp-System

Status
Not open for further replies.
Level 1
Joined
Nov 29, 2009
Messages
2
Hey there!
I need a working anti-camp system(GUI plz) for my tag map, because there are always some people, who camp in the middle. You can hire units in my tag (both sides can do that).That's why it has to work for heros, units and the player the units belong to. It should only work for a region in the middle of the map...
If something is unclear, then ask :)
I give credits for that ofc.
Greetings Banlode
 
Last edited:
Level 8
Joined
Jun 26, 2010
Messages
530
Each player control only one unit, right? If so that might work
This is just an example, you must edit it. Also, consider the minimal time for a unit just pass through the region :)

Also, the timer is not needed, i just added it so you can test it single player. For your tag map, i think leaving no timer will make players insecure of standing in the middle so they will not camp.

Variables are:
Camping - Timer
CampingWindow - Timer Window
CampingUnit - Unit array
HeroLeftMiddle - Boolean array
  • Enters
    • Events
      • Unit - A unit enters Middle <gen>
    • Conditions
      • (Middle <gen> contains (Position of (Triggering unit))) Equal to True
    • Actions
      • Countdown Timer - Start Camping as a One-shot timer that will expire in 10.00 seconds
      • Countdown Timer - Create a timer window for Camping with title (Time remaining for + ((Name of (Owner of (Triggering unit))) + to leave middle))
      • Set CampingWindow = (Last created timer window)
      • Set HeroLeftMiddle[(Player number of (Triggering player))] = False
      • Set CampingUnit[(Player number of (Triggering player))] = (Triggering unit)
      • Wait 10.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • HeroLeftMiddle[(Player number of (Triggering player))] Equal to False
        • Then - Actions
          • -------- Insert your effects here. Kill unit? Force it to move? Your choice. --------
          • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + is camping)
        • Else - Actions
          • Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + is NOT camping)
      • Countdown Timer - Destroy CampingWindow
  • Leaves
    • Events
      • Unit - A unit leaves Middle <gen>
    • Conditions
    • Actions
      • Set HeroLeftMiddle[(Player number of (Triggering player))] = True
 
Level 1
Joined
Nov 29, 2009
Messages
2
No, players may controll more than one unit. It can be up to 30 units I guess (100 supply max).
As far as I see the variables have to be changed for each player (red,blue...), am I right?

It doesn't work o_O

  • anti camp2
    • Ereignisse
      • Einheit - A unit enters CampZone <gen>
    • Bedingungen
      • (CampZone <gen> contains (Triggering unit)) Gleich True
    • Aktionen
      • Set UnitLeft[(Player number of (Triggering player))] = False
      • Set CamperUnit[(Player number of (Triggering player))] = (Triggering unit)
      • Wait 12.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • UnitLeft[(Player number of (Triggering player))] Gleich False
        • 'THEN'-Aktionen
          • Einheit - Move CamperUnit[(Player number of (Triggering player))] instantly to (Random point in Gebiet 012 <gen>)
          • Einheit - Order Anti_Camper to Menschen-Zauberin - 'Verwandlung' (Triggering unit)
        • 'ELSE'-Aktionen
 
Last edited:
Status
Not open for further replies.
Top