• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Spell Problem

Status
Not open for further replies.
Level 6
Joined
Jun 11, 2009
Messages
151
I've been trying to create a spell that creates a potion ect.. when the caster uses the spell, heres what i tried but it doesnt create any thing when used.

  • Create Potion
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to (==) Create Potion
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Create Potion for (Triggering unit)) Equal to (==) 1
        • Then - Actions
          • Item - Create (Random level 1 Artifact item-type) at (Position of (Casting unit))
        • Else - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Create Potion for (Triggering unit)) Equal to (==) 2
            • Then - Actions
              • Item - Create (Random level 2 Artifact item-type) at (Position of (Casting unit))
            • Else - Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Create Potion for (Triggering unit)) Equal to (==) 3
                • Then - Actions
                  • Item - Create (Random level 3 Artifact item-type) at (Position of (Casting unit))
                • Else - Actions
If that isn't a corrent trigger to make the spell, please help and show me how.

-Undead~
 
Last edited:
Level 3
Joined
Aug 6, 2009
Messages
24
Insanity-Wolf-LEARN-TO-USE-WRAPTRIGGER.jpg
 
  • Angry
Reactions: Rui
Level 16
Joined
Jun 25, 2008
Messages
1,043
  • Create Potion
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Create Potion
    • Actions
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Create Potion for (Triggering unit)) Equal to (Integer A)
            • Then - Actions
              • Hero - Create (Random level (Integer A) Artifact item-type) and give it to (Triggering unit)
            • Else - Actions
 
Level 6
Joined
Jun 11, 2009
Messages
151
  • Create Potion
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Create Potion
    • Actions
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Create Potion for (Triggering unit)) Equal to (Integer A)
            • Then - Actions
              • Hero - Create (Random level (Integer A) Artifact item-type) and give it to (Triggering unit)
            • Else - Actions

Thank you so much :D
 
Status
Not open for further replies.
Top