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

killer trigger fix

Status
Not open for further replies.
Level 9
Joined
Aug 15, 2007
Messages
261
can some one fix that trigger
  • Terrain
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Learned Hero Skill) Equal to Special Varimathras - Vampiric Aura
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Unit - Kill (Triggering unit)
and can the trigger be :
  • If - Conditions
    • hero strenth equal to 18
and how can I make it
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Learned Hero Skill is an EVENT RESPONSE, which means it's "responding" to the event of the triggeR. the event is: "unit enters region", so there is absolutelly no reference to a learned skill. The only reference to "unit entering a region" is "entering unit". If you want to use "learned hero skill", it must be responding to the "unit - a unit learns a skill" event. It's simple logics.

I cannot help you as long as I don't exactly know what you want to do. But I'm guessing you want to check, when a unit enters a region, if that unit's strength is 18 AND has learned the Vampiric Aura skill. To do this do something along:
  • Events
    • Unit - a unit enters region000
  • Conditions
    • AND - all conditions are true
      • Conditions
        • Hero - attribute - Entering unit's strength >= 18
        • Boolean - Level of "Vampiric Aura" on entering unit = 1 equal to true
  • Actions
    • Unit - kill (entering unit)
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
  • Terrain
    • Events
      • Unit - a unit enters region000
    • Conditions
      • (Level of Vampric Aura for (Triggering unit)) Equal to 0
      • (Strength of (Triggering unit) (Exclude bonuses)) Less than 18
    • Actions
      • Unit - Kill (Triggering unit)
Try this
 
Level 9
Joined
Aug 15, 2007
Messages
261
  • Terrain
    • Events
      • Unit - A unit enters Region 009 <gen>
      • Unit - A unit enters Region 008 <gen>
      • Unit - A unit enters Region 000 <gen>
    • Conditions
    • Actions
      • If (((Triggering unit) is Mechanical) Equal to True) then do (Do nothing) else do (Unit - Kill (Triggering unit))
that worked for me
 
Status
Not open for further replies.
Top