• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] Very basic attack waves (2019)

Status
Not open for further replies.
Level 3
Joined
Aug 27, 2019
Messages
44
OK so I searched this forum for "attack waves" but I found lot of nonsense.

I need very basic attack waves. When game time is 60 seconds a computer controlled player sends Footman to attack and when game time is 120 seconds it sends 2 Footmans attack.

Do I use triggers to create this or AI editor? Some map with working example would be great.
 
Last edited:
You could use a countdown timer or simply use Elapsed game time event to issue the AI to start attack waves. Example :
  • Init Attack Waves
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Countdown Timer - Start AttackWave01 as a One shot timer that will expire in 60.00 seconds
      • Countdown Timer - Start AttackWave02 as a One shot timer that will expire in 120.00 seconds
  • Start Attack 01
    • Events
      • Time - AttackWave01 expires
    • Conditions
    • Actions
      • Unit - Create 6 Footman for Player 1 (Red) at (Center of Region A) facing 0 degrees
      • Unit Group - Pick every unit in (Units in Region A) and do (Unit - Order (Picked unit) to Attack-Move toward (Center of Region B))
 
Thank you Warseeker! My version of trigger:

  • Attack wave 1
    • Events
      • Time - Elapsed game time is 180.00 seconds
    • Conditions
    • Actions
      • Unit - Create 2 Militia for Player 6 (Orange) at (Center of Gather <gen>) facing 270.00 degrees
      • Unit Group - Pick every unit in (Units in Gather <gen>) and do (Unit - Order (Picked unit) to Attack-Move To (Center of Attack <gen>))
There is some minor difference on my version because there is <gen> word after region. On your version there is not.

"Gather" and "Attack" are names of two regions.

= =

Triggers:
Unit - Create units facing angle ... Center of Region
Unit Group - Pick Every Unit In Unit Group And Do Action ... Unit - Issue Order Targeting A Point ... Center of Region

Regions: (Use region layer)
Gather
Attack

No variables

SOLVED
 
Last edited:
There is some minor difference on my version because there is <gen> word after region. On your version there is not.
Because he either wrote it himself and forgot to add it or cnp'ed and removed it... irrelevant to your question.
You can use
  • Unit Group - Order (Last created unit group) to Attack-Move To (Center of someregion <gen>)
For attacking units to form a group formation, if you are trying to send a group with less or equal to 12 units.
 
I usually do it in 3 triggers:
1. order buildings to train units (make sure AI player has enough supply and resources - cheat if necessary)
2. add trained units to unit group and ignore trained units guard position
3. wait a few minutes and order unit group to attack move to target location

a 4th loop trigger that calls itself every X minutes controls triggers 1 and 3
 
Status
Not open for further replies.
Back
Top