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

campaign defend ai

Status
Not open for further replies.

zzc

zzc

Level 3
Joined
Apr 25, 2016
Messages
20
I used those same keywords to search the forums but couldnt find anything that helps. google keeps showing up dota ai or defense tower heh

Is there a way to make a campaign ai to defend an area/region? I want to have the ai help defend another ai base.

The map is remake of the final roc mission - not mine, just fiddling with the ai.
A brown ai player was added and all i see is the ai hovering around its main hall near the gold mine. So i want to have the brown player[zorias] gather near Jaina's base - faster response time than trekking all the way from the top of the map above the orc base.

So is there a way to have ai defend a region or send ai command to do the same?

ok the closest equivalent i found in rainbow.ai is setting a gather point, but how do i know what starting values to set for the x and y integer variables? - for the undead there was values already set in the variables.

o dear i think i have posted in the wrong zone, should be in world edit help zone?
 
Last edited:
CampaignDefenderEx only defends their own base. To aid an ally base that is out of the range from the player's base, you might need to simulate an attack to the base. I'm uncertain about it though.

In that issue, we can solve it by create one or two towers or some building at the ally's base and the AI will react when they're attacked.
 

zzc

zzc

Level 3
Joined
Apr 25, 2016
Messages
20
there is a way to use ai command trigger to tell the ai to gather forces in a region

JASS:
	call SetCaptainHome(BOTH_CAPTAINS,2400,-5568)		
	call SetCaptainHome(BOTH_CAPTAINS,LEFT,TOP)

OMG wat a noob mistake - left = x, top = y coords!!!

btw the map is too big to upload here - its from wc3 underground


CampaignDefenderEx only defends their own base. To aid an ally base that is out of the range from the player's base, you might need to simulate an attack to the base. I'm uncertain about it though.

In that issue, we can solve it by create one or two towers or some building at the ally's base and the AI will react when they're attacked.

the towers easily get blown to bits due to the power of the hero - i set the max lvl at 800 O.O
 

Attachments

  • Clipboard04.jpg
    Clipboard04.jpg
    143 KB · Views: 83
Last edited:

zzc

zzc

Level 3
Joined
Apr 25, 2016
Messages
20
Now onto leaks, well i think it is leaking.

I am sure one of those triggers is leaking alot - the system stops completely for like 5mins or more.

and why does it leak? level too high? lot of exp needed thats true....

Which destroy method to use?
 

Attachments

  • Clipboard05.jpg
    Clipboard05.jpg
    140.9 KB · Views: 113
  • Clipboard06.jpg
    Clipboard06.jpg
    112.2 KB · Views: 83
  • Clipboard07.jpg
    Clipboard07.jpg
    110.7 KB · Views: 70
Status
Not open for further replies.
Top