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

Share building trigger help.

Status
Not open for further replies.
Level 3
Joined
Apr 27, 2005
Messages
28
I got this trigger which is supposed to make this builing be able to be shared by all players on a force so it can be used for teching. Such as the circles of powers in tech warz if you know what i meen by that.

Here is the trigger i have so far...

Town circle
Events
Unit - A unit enters CityCircle <gen>
Conditions
Actions
If (((Triggering unit) belongs to an ally of Player 12 (Brown)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 1
(Red) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 12 (Brown)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 2 (Blue) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 12 (Brown)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 3 (Teal) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 12 (Brown)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 4 (Purple) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 12 (Brown)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 5 (Yellow) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 6 (Orange) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 7 (Green) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 8 (Pink) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 9 (Gray) and Change color) else do (Do nothing)

If (((Triggering unit) belongs to an ally of Player 11 (Dark Green)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player 10 (Light Blue) and Change color) else do (Do nothing)
 
Level 6
Joined
Aug 29, 2004
Messages
159
I don't know exactly how this trigger is supposed to work, but i can tell that the one you have isnt going to work.

Heres how it should read to get the funtion you're trying to get:
Code:
Town circle 
Events 
Unit - A unit enters CityCircle <gen> 
Conditions 
Actions 
If (((Triggering unit) belongs to an ally of Player 12 (Brown)) Equal to True) then do (Unit - Change ownership of Towncircle (large) 0013 <gen> to Player[Player number of (Owner of (Triggering Unit))] and Change color) else do (Do nothing)

Hmm. I'm not sure how this would work out, you'd probably need another trigger to make it so that once the building finishes its upgrade then all the teams benefit from it. I'm not sure, never played the map.
Maybe you should contact the author of this 'tech warz' map. Most map-makers are glad to help you out or even send you deprotected versions to copy their triggers if you ask nicely.
Bort
 
Level 6
Joined
May 8, 2005
Messages
249
event: generic unit sell item (from shop)
condition: item type of item being sold =
action: issue order for triggering unit (or selling, but dosent matter) to upgrade

not that hard
selling items for units, abilities and tech is the easiest way to do it. especially since large trigger take space. this would be like 3-4 lines.

unless you need to tech for each player, then you should contact teh author of that map.
 
Status
Not open for further replies.
Top