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

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
 
Level 5
Joined
Jul 25, 2008
Messages
155
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
 

x3m

x3m

Level 3
Joined
Apr 11, 2008
Messages
51
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 :).
 
Level 5
Joined
Jul 25, 2008
Messages
155
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?
 

x3m

x3m

Level 3
Joined
Apr 11, 2008
Messages
51
Your map initialization... It could end up with one player owning all of the buildings. Right?
 
Status
Not open for further replies.
Top