• 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 detect Peasant's Call to Arms?

Status
Not open for further replies.
Level 21
Joined
Mar 19, 2009
Messages
444
I have to recognize I do not know how the militia spell works (I never use it).

I guess its a morphing skill; then, your peasants are removed from the game and replaced by a new unit.
If they are replaced, you can detect when the unit leaves the game. Or when a militia enter the game (since it's an other unit ID).

Otherwise, maybe it works as a unit upgrade (there is an event for this). You can try then to detect the event a unit finishes upgrade blabla.

Last possibility: the building convert the peasant to militia, and not the peasants themselves. Then, you have to detect the order given to your building.
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
I tried the first one. It doesn't work, for some strange reason.

But I'll try out the other two.

Edit: Bah... Nothing. xO

For the Order Comparison I tried ''Militia'' (standard in object editor) and ''militiaconvert''. Neither works.

And the Building only converts if you use the building's Call to Arms. But then ALL Peasants in range would turn into Militias.

This is really annoying.
 
Level 21
Joined
Mar 19, 2009
Messages
444
Some orders do not get a string name, only an integer number. Try to display those numbers instead of strings to check what spell is used.

Ah and check on wc3.net the Warcraft III Ability Guide and the W3 weird ability guide. Maybe it speaks about this spell, I do not remember and can not check this site from my current computer (work :p)
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
Well, the string ''militia'' did work, kind of. Except that it recognized the moment they start the ability, not when they actually ''convert''. So I tried ''militiaconvert''. Still nothing.

But how do I display these ability integers then?

They don't talk about Call to Arms in either of those guides, by the way. x(
 
Status
Not open for further replies.
Top