• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Ownership on Building

Status
Not open for further replies.
Level 5
Joined
Jul 25, 2008
Messages
155
Hello, I'll try to explain myself the best I can, I have a building, a tower, a circle (pad) and a region at the circle, when a unit takes control of the circle, he will gain control of the building and the tower aswell. I don't really understand how to do this, since there is no event for a unit taking control of a circle or a region, could anyone give me a hand? I would appreciate it with my whole heart
 
But it can only occur when the owner has no units at the building, and if noone else but 1 unit is on the circle, the unit is stuck on the circle, I figured out the thing you posted to me for a few minutes ago, now I just need the unit to stay on the circle
 
If you got a lot of towers and buildings and that, I would say that region them all must be extra work. If this is the case, then i would suggest to have a unit wihin range event. Then you don't need all those regions, this works for all. Yet if it's only like 1 or 2 building groups, I think squiggy's will work just fine :).
 
Only have 3 circles :P
  • Dublin
    • Events
      • Unit - A unit enters Dublin <gen>
    • Conditions
      • ((Units in Dublin <gen> owned by (Owner of Erebor [Mirkw] 0052 <gen>)) is empty) Equal to True
    • Actions
      • Unit - Change ownership of Erebor [Mirkw] 0052 <gen> to (Owner of (Triggering unit)) and Change color
      • Unit - Change ownership of Guard Tower 0103 <gen> to (Owner of (Triggering unit)) and Change color
&

  • Map inizitiation
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set RandomNumber = (Random integer number between 1 and 12)
      • Unit - Change ownership of Mount Gundasad [Grey Mountains] 0205 <gen> to (Player(RandomNumber)) and Change color
      • Unit - Change ownership of Withered Heath [Grey Mountains] 0372 <gen> to (Player(RandomNumber)) and Change color
      • Unit - Change ownership of Cárn Dust [Grey Mountains] 0376 <gen> to (Player(RandomNumber)) and Change color
      • Unit - Change ownership of Guard Tower 0371 <gen> to (Player(RandomNumber)) and Change color
      • Unit - Change ownership of Guard Tower 0373 <gen> to (Player(RandomNumber)) and Change color
      • Unit - Change ownership of Guard Tower 0377 <gen> to (Player(RandomNumber)) and Change color
You think these are good?
 
Your map initialization... It could end up with one player owning all of the buildings. Right?
 
Status
Not open for further replies.
Back
Top