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

Passive Skill

Status
Not open for further replies.
Level 5
Joined
Jul 30, 2012
Messages
93
Hi,

I'm new on W3 World Editor.I' wanna learn everything about it.So my first topic for that. ^^

Now i2m working some aos maps, i have finished but i could't do some spells.I wanna passive skill for my archer hero.Like this:

-If any hero killed by archer or her teammates she gain 0.5 agility.

Can someone do for me? Thank you!
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
If you are new to WarCraft III I highly advise skipping WarCraft III as a platform for map development at this stage. It takes years to learn WorldEdit to a level that lets you create quality maps by which time WarCraft III will be even more dated than it already is (10 years old).

On the other hand StarCraft II is still very new. Even if it takes longer to learn you will be on the cutting edge of map development giving the maximum returns for your effort. StarCraft II is not as hard to learn as people say as it makes a lot more sense than WarCraft III since everything is less hard-coded. Learning to edit WarCraft III does not help you edit for StarCraft II much at all which further supports the idea of skipping WarCraft III in favour of StarCraft II.

-If any hero killed by archer or her teammates she gain 0.5 agility.
There is no ability to detect what gender a player controller is in WarCraft III.

You can create a trigger that does some of what you ask by detecting when a unit dies that is a hero and an enemy of the controller of the Archer hero. You then add 1 to the heroes current agility as hero attributes are integers.

If you want to add 0.5 agility you will need to add a real type buffer between to hold the decimal part of agility earned. This is done by incrementing a real variable with default value 0 by 0.5 and testing if it is greater than or equal to 1. If so you then pass that value on to the hero attribute by adding 1 agility and decrementing the real by 1. Of course you can use truncation nature of real to integer conversion to implement this as well as the flow control approach.
 
Status
Not open for further replies.
Top