Attack Ground Problem

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
Well ok... So I have this spell called Fire Mortars! and I want it to fire 2/3/4/5 mortars at the targeted point... Now that's cool and all woohoo... But the thing is I want the mortars to be like AoE and there is a 500 aoe target point so I want the mortars to attack random areas... I can do that just fine too... I based the units that attack off of the Demolisher unit so they can attack ground and this is my trigger...
Trigger:
  • Fire Mortars
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Fire Mortars!
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Set TempPoint2 = (Target point of ability being cast)
      • For each (Integer A) from 1 to (1 + (Level of Fire Mortars! for (Triggering unit))), do (Actions)
        • Loop - Actions
          • Unit - Create 1 Demolisher for (Owner of (Triggering unit)) at TempPoint facing Default building facing (270.0) degrees
          • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
          • Set TEMP_Point1 = (TempPoint2 offset by (Random real number between 0.00 and 500.00) towards (Random angle) degrees)
          • Unit - Set level of Napalm for (Last created unit) to (Level of Fire Mortars! for (Triggering unit))
          • Unit - Order (Last created unit) to Attack Ground TEMP_Point1
          • Custom script: call RemoveLocation(udg_TEMP_Point1)
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint2)

Problem is... The damn demolisher units won't attack the ground... Any idea why?
 

Laiev

Hey Listen!!
Reaction score
188
Trigger:
  • Unit - Set level of Napalm for (Last created unit) to (Level of Fire Mortars! for (Triggering unit))
    • Unit - Order (Last created unit) to Attack Ground TEMP_Point1


You set level of "Napalm" but you don't cast it, you just order the unit to "Attack", not to cast it.
What Napalm ability base is?

EDIT: Your dummy already got the "Napalm"? If not
Trigger:
  • Unit - Add Napalm to (Last created unit)
 

vypur85

Hibernate
Reaction score
803
What about trying to use a separate event?

Code:
Event
 A unit enters Playable Map Area
Condition
 Unit-Type of (Triggering unit) Equal to Demolisher
Actions
 Set TempPoint2 = (Position of (Triggering unit))
 Set TEMP_Point1 = (TempPoint2 offset by (Random real number between 0.00 and 500.00) towards (Random angle) degrees)
 Unit - Order (Last created unit) to Attack Ground TEMP_Point1
 Custom script: call RemoveLocation(udg_TEMP_Point1)
 Custom script: call RemoveLocation(udg_TempPoint2)
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
My bad... Napalm is a base of umm... whats that skill called.. Burning oil... For burning the ground... So it's passive... Doesn't need casting, and teh unit does already have it yes.
 

Laiev

Hey Listen!!
Reaction score
188
change in unit editor

Combat - Attack - 1 - Weapon Type (ua1w) Artillery

Else edit Area Of Effect (Full/Medium/Small) to what you want.
 

Laiev

Hey Listen!!
Reaction score
188
Something is wrong, because I make it and test with trigger...
 

Attachments

  • Test.w3m
    16 KB · Views: 91

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
Well I don't know what the hell is wrong... I'm going to take the locust off and give them a model and see if they even HAVE attack ground...
 

Laiev

Hey Listen!!
Reaction score
188
If the locust is the problem, just make invulnerable and unselected with trigger too.

EDIT: ORRRRRRRRR MAYBEEEEEEEEEEE the problem IS...... it need a minimum range to attack ground. The demolisher need some range to attack ground selected.
 

dragonhord

Knowledge is true opinion. - Plato
Reaction score
82
Mmm well I hadn't thought of that but I did fix the initial problem of it not doing anything... For some reason the units didn't have an attack.. I think it was the fact that I set dice to 0 instead of 1... Hit the wrong key :D. But changing that seems to have fixed it... Ty though :D +rep :p. Now would you have any idea how to actually fix the minimum range thing? Because that might be a problem XD
 

Laiev

Hey Listen!!
Reaction score
188
Finded :D:D:D:D:D:D

Combat - Minimum Attack Range (uamn) 250 (demolisher)

set to 0 :D over \o/

thx for the rep
 

Faust

You can change this now in User CP.
Reaction score
123
What problem do you have with minimum range?
 

Laiev

Hey Listen!!
Reaction score
188
@Faust

He need to dummy attack ground with low range :p just it

So just put 0 to minimum range

@dragonhord

NP :p
 
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