• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger does not work.

Status
Not open for further replies.
Level 17
Joined
Jun 12, 2007
Messages
1,261
This lil bugger wont work, my question is what did I do wrong.

  • Unit Trained
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Selling unit)) Equal to Tavern
          • (Unit-type of (Selling unit)) Equal to Tavern
          • (Unit-type of (Selling unit)) Equal to Tavern
          • (Unit-type of (Selling unit)) Equal to Tavern
        • Then - Actions
          • Unit - Kill (Buying unit)
          • Set TempLocHS = (Center of Ressurect Light <gen>)
          • Camera - Pan camera for (Owner of (Buying unit)) to TempLocHS over 0.00 seconds
          • Unit - Move (Sold unit) instantly to TempLocHS
          • Special Effect - Create a special effect at TempLocHS using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_TempLocHS)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Selling unit)) Equal to Tavern
              • (Unit-type of (Selling unit)) Equal to Tavern
              • (Unit-type of (Selling unit)) Equal to Tavern
              • (Unit-type of (Selling unit)) Equal to Tavern
            • Then - Actions
              • Unit - Kill (Buying unit)
              • Set TempLocHS = (Center of Ressurect Dark <gen>)
              • Camera - Pan camera for (Owner of (Buying unit)) to TempLocHS over 0.00 seconds
              • Unit - Move (Sold unit) instantly to TempLocHS
              • Special Effect - Create a special effect at TempLocHS using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Custom script: call RemoveLocation(udg_TempLocHS)
            • Else - Actions
I also tried (Unit-type of (Triggering unit)) with no results.

The idea is that at start you have a wisp that can buy one hero from one of 4 taverns (4 for each team). Once bought this hero goes to his zone and the wisp get's killed.
 
Level 10
Joined
Sep 21, 2007
Messages
517
"you should also try just setting the condition once in the event - condition place"
:p
btw even if i was wrong it wouldn't be a good gesture to say it is :S

Anyways can u help me out on the AoA trigger im having a problem with? its math is a bit comlpicated for me. Thanks xD

P.S: everyone makes mistakes, so its ok lol
 
Status
Not open for further replies.
Top