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

Militia Skill (Water Elemental duration)

Status
Not open for further replies.
Level 3
Joined
Oct 4, 2008
Messages
31
Alright so I'm working on a map and I wanted my main base to summon a group of Militia, which summon perfectly. The only thing is that I wanted them only to last for a brief period of time, so what I did was I changed "Water element" the human wizard hero minion unit into my "Militia" unit and changed how they attacked/damage/hitpoints/name. Here's the problem they don't have a time duration like the "water elements", so they last forever.

Could it be because it's not a hero casting the spell?

Thanks in advance :wink:
 
Level 3
Joined
Aug 20, 2008
Messages
54
Duration Hero - 15
Duration Normal - 15

Does this help? Did you only have 15 for one of them? Use 15 for both, see if this solves your problem. If not, Im not sure whats wrong, but I just looked at it quickly, let me know if this doesnt work, Ill look into it more.
 
Level 2
Joined
Nov 17, 2008
Messages
35
i think i know the problem.

ok go back to the ability (calltoarms(pesant)

and just change duration and instead of militia have water element, but wait ur not done.

next u go to the militia unit and copy the abilitys he has, (u only want the call to arms he has)now put this on ur units ur changeing and now it will have a timer and will not fatal.
 
Level 3
Joined
Oct 4, 2008
Messages
31
The skill I used was the human wizards hero water summon skill. I made him summon 8 "Militia" units instead. What I did was I changed "Water Element" by renaming it "Militia" and by changing his damage/hit points/model/attack animation. By default "Water Elements" have the time duration which is why I don't know why the "Militia" which is just the "Water Element" but modified doesn't have this time duration.

Also, I don't want the calltoarm skill, I just want the "Water Elements" which were renamed into "Militia" to keep it's time duration which it no longer has.
 
Level 11
Joined
May 31, 2008
Messages
698
I think it would be easier to make this trigger than try to figure out how to fix the ability.

  • Militia Spell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Recruit Militia
    • Actions
      • Unit - Create 8 Militia for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Set militia = (Last created unit group)
      • Unit Group - Pick every unit in militia and do (Unit - Add a 15.00 second Generic expiration timer to (Picked unit))
Variable: militia is just a unit group (no array)
 
Level 14
Joined
Oct 27, 2007
Messages
1,395
I honestly have no idea what you did wrong.

In everything that I tried it worked.

I used the militia for the unit being summoned and it worked. I changed the water elemental's model to militia and it worked.

I don't know what you did wrong, but here's a map of what I did.
 

Attachments

  • Help.w3x
    16.5 KB · Views: 47
Level 21
Joined
Jul 27, 2008
Messages
14,361
I think it would be easier to make this trigger than try to figure out how to fix the ability.

  • Militia Spell
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Recruit Militia
    • Actions
      • Unit - Create 8 Militia for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Set militia = (Last created unit group)
      • Unit Group - Pick every unit in militia and do (Unit - Add a 15.00 second Generic expiration timer to (Picked unit))
Variable: militia is just a unit group (no array)
Wait you say it is EASIER to to with triggers.You mean it is so hard to make durotation of spell 0.
 
Level 11
Joined
May 31, 2008
Messages
698
Wait you say it is EASIER to to with triggers.You mean it is so hard to make durotation of spell 0.

well before the ability wasnt working and they couldnt figure out what was wrong.....so i knew that there was a vey simple trigger that could create this ability instead of spending forever trying to figure out why the ability didnt work properly. And he did NOT want the summoning to last forever, i believe that was the original problem.
 
Level 6
Joined
Jun 14, 2008
Messages
176
I only had Duration Normal - 15, I just also set Duration Hero - 15 I'll see if it works right now. Also I didn't give them any buffs at all.
I know it's solved now but before, you removed the Water Element buff from the "Summon Water Element" and it doesn't have it now? I think that may be the problem.

Make a buff based off of "Water Elemental", rename it to "Militia" or "Summoned"(this will be the text the displays on the timed duration bar).

Then give it that buff.

Otherwise, I don't know what the problem could have been.
 
Status
Not open for further replies.
Top