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

How to make non-player unit periodically cast ability?

Status
Not open for further replies.
Level 2
Joined
Feb 27, 2011
Messages
33
I'm creating a map that you are a farmer and you plant crops and stuff and you can hire a guy to water your plants I'm wanting to know how do you create a trigger that orders that units to cast an ability that waters the plant because I don't control the unit?:vw_wtf:
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
It depends on what type of object your plants are, for example, are they doodads, units or destructibles? If they are units, you must customize a spell which targets units (for example, Curse). You would then make your trigger like this:

  • Water Plants
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Order [your_unit] to Undead Banshee - Curse [your_plant]

Note: You can change the events to whatever you want.

- Mr_Bean
 
Level 5
Joined
Feb 6, 2011
Messages
177
It depends on what type of object your plants are, for example, are they doodads, units or destructibles? If they are units, you must customize a spell which targets units (for example, Curse). You would then make your trigger like this:

  • Water Plants
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Order [your_unit] to Undead Banshee - Curse [your_plant]

Note: You can change the events to whatever you want.

- Mr_Bean

dont forget that the units Mana is used to cast the ability so you might replenish the mana of the unit to 100% before casting another time XD
 
Status
Not open for further replies.
Top