AI monsters smashes gates?

OVRKLL

New Member
Reaction score
3
Hey thar,

Do AI controlled monsters automatically target and destroy doors preventing them from reaching their ordered destination? If not, what is the best way to ensure, that my (rather stupid) mobs start tearing down doors?
 

Vassilev

New Member
Reaction score
39
Aha ! You're in luck my friend, I recently did a map involving door bashing ai ! :p

No, wc3 AI aren't smart enough : (

Order the unit to simply attack the destructible :)

here's an example when a unit enters the range of the door:

Event: Unit enters region
conditions: Variable conditions
Action: Unit - Order to attack Door/gate.
 

OVRKLL

New Member
Reaction score
3
Well, that script isn't the hard part - my problem is getting the monster to continue it's previously issued order - most likely attack move to a given structure. Perhaps I should just make a trigger launch when a destructible/door/woot-ur-supposed-to-write is destroyed and make that find all null-ordered units and, depending on their unit type, give them proper orders? Mh... Any flaws there? Or better ideas?
 

AdamGriffith

You can change this now in User CP.
Reaction score
69
Maybe something like:
Unit enters region
Store the order in a varible
make it attack the destructible
then make it continue its order


But that might not work because I don't think you can detect things like the target point of the order or the target unit etc.
 

OVRKLL

New Member
Reaction score
3
No, that won't work - what if multiple units are attacking doors at the same time?
Anyway, there's a workaround for that: Store the orders in an array and save the proper index as a unit's custom value. Should fix the problem :) But as you're saying, I'm not sure whether the order array can store targets... Well. Otherwise I'll just use another one or two for that ;P
 

luke20054

New Member
Reaction score
3
Untitled Trigger 001
Events
Unit - A unit Is issued an order with no target
Conditions
(Unit-type of (Triggering unit)) Equal to Footman
((Playable map area) contains (Triggering unit)) Equal to True
(Issued order) Equal to (Order(stop))
((Playable map area) contains (Triggering unit)) Equal to True
Actions
Unit - Order (Triggering unit) to Patrol To (Center of (Playable map area))

Maybe? :D
 

OVRKLL

New Member
Reaction score
3
Should work for most units. I'll check it out once I've made the basic map layout... Although that may take several days to accomplish (big map).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top