• 🏆 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] Help for a simple system

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
All you have to do is insert this line:
  • Unit - Order (Triggering unit) to Stop
above the cast spell order and it works perfectly.

Also, drag the second if/then/else to the else-part of the footman if/then/else

If you don't get what I mean by that:

  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Target unit of ability being cast)) Equal to Footman
      • Then - Actions
        • Hero - Drop the item from slot 1 of (Triggering unit)
        • Item - Remove (Last dropped item)
        • Set TempPoint = (Position of (Triggering unit))
        • Item - Create Full Vial at TempPoint
        • Hero - Give (Last created item) to (Triggering unit)
        • Custom script: call RemoveLocation (udg_TempPoint)
        • Unit - Order (Triggering unit) to Stop
        • Unit - Order (Triggering unit) to Undead Necromancer - Unholy Frenzy Town Hall 0014 <gen>
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Unit-type of (Target unit of ability being cast)) Equal to Town Hall
          • Then - Actions
            • Game - Display to (All players) the text: T
            • Hero - Drop the item from slot 1 of (Casting unit)
            • Item - Remove (Last dropped item)
            • Set TempPoint = (Position of (Casting unit))
            • Item - Create Empty Vial at TempPoint
            • Hero - Give (Last created item) to (Casting unit)
            • Custom script: call RemoveLocation (udg_TempPoint)
            • Unit - Order (Triggering unit) to Stop
            • Unit - Order (Casting unit) to Undead Necromancer - Unholy Frenzy (Random unit from TargetsGroup)
          • Else - Actions
 
Status
Not open for further replies.
Top