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

Neutral Extra Units

Status
Not open for further replies.
Level 3
Joined
May 6, 2007
Messages
66
Ok, this is the scenario.

1. I buy units from a shop, and the owner is immediately changed to Neutral Extra and ordered to "Right-Click" on the buying unit, which is my hero.

To limit overbuying, I managed to reflect the food used by the units bought for the hero's owner. E.G, the food cap is 10, and I successfully used 10 after buying 5 units, assuming each unit takes up 2.

How do I remove the food used that was allocated to the player after the bought units die? There are 3 players in 2 forces each...


2. I don't really need this function, but if its possible...

How can the hero's player receive the gold that the bought units got from killing enemy units?


3. Is making new custom abilities taking more loading time than editing standard ones?
 
Level 7
Joined
Jun 4, 2006
Messages
127
1>
  • Events
    • Unit - A unit dies
  • Conditions
    • (Owner of (Triggering Unit)) Equal to (Player)
    • (Triggering Unit) is a Hero)) Equal to False
  • Actions
    • Player - Add Player -2 Food Cap
2> You can create a trigger on getting gold instead of bounty depending on who's the owner of the unit..

3> Yes, it will create another space (which is the same space as the original consumes).. and also the Raw Codes will stay if you edit it as well..
 
Status
Not open for further replies.
Top