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

Can someone help me with this trigger?

Status
Not open for further replies.
Level 12
Joined
May 20, 2009
Messages
821
i need help with a trigger I'm working on for i royally suck ass at triggering\JASS etc. this trigger is suppose to limit the amount of hero's of a specific hero you clicked on, here is what i have:

Event:
Unit - Altar of Vengance 0017 <gen> Begins training a unit

Action:
Player - Make (Unit-type of (Picked unit)) Unavailable for training/construction by (Owner of Altar of Vengance 0017 <gen>)

and then i also have this to re-add the button if possibly someone cancels the hero summoning:

Event:
Unit - Altar of Vengance 0017 <gen> Cancels training a unit

Action:
Player - Make (Unit-type of (Picked unit)) Available for training/construction by (Owner of Altar of Vengance 0017 <gen>)


Can anyone tell me what i am doing wrong???
 
Its not working because if you make the hero unavailable for construction, then the hero you are summoning will be cancelled since you can no longer make it.

Tell me, why is the melee game 1 per hero-type trigger not working for you?
 
i need help with a trigger I'm working on for i royally suck ass at triggering\JASS etc. this trigger is suppose to limit the amount of hero's of a specific hero you clicked on, here is what i have:

Event:
Unit - Altar of Vengance 0017 <gen> Begins training a unit

Action:
Player - Make (Unit-type of (Picked unit)) Unavailable for training/construction by (Owner of Altar of Vengance 0017 <gen>)

and then i also have this to re-add the button if possibly someone cancels the hero summoning:

Event:
Unit - Altar of Vengance 0017 <gen> Cancels training a unit

Action:
Player - Make (Unit-type of (Picked unit)) Available for training/construction by (Owner of Altar of Vengance 0017 <gen>)


Can anyone tell me what i am doing wrong???

With your triggers your using "Picked Unit" try using a different variable, or change it to..

  • Untitled Trigger
    • Events
      • Unit - enters region (Playable Map area)
    • Conditions
      • Unit type of triggering unit equal to (Hero)
    • Actions
      • Player - Make (Unit-type of (Triggering Unit)) Unavailable for training/construction by (Owner of (Triggering Unit))
 
Status
Not open for further replies.
Back
Top