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

Item trigger not working

Status
Not open for further replies.
Level 2
Joined
Mar 28, 2008
Messages
5
  • Random Copy
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Rexxar the Beastmaster
      • (Item-type of (Item being manipulated)) Equal to Horn of the Wild
    • Actions
      • Set RandomBeast = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RandomBeast Equal to 1
        • Then - Actions
          • Unit - Create 1 Furbolg Elder Shaman for (Owner of (Item being manipulated)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
          • Wait 40.00 seconds
          • Unit - Remove (Last created unit) from the game
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RandomBeast Equal to 2
            • Then - Actions
              • Unit - Create 2 Berserk Quilbeast (Level 4) for (Owner of (Item being manipulated)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
              • Wait 40.00 seconds
              • Unit - Remove (Last created unit) from the game
            • Else - Actions
              • Unit - Create 1 Misha (Level 4) for (Owner of (Item being manipulated)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
              • Wait 40.00 seconds
              • Unit - Remove (Last created unit) from the game
 
Level 11
Joined
Dec 11, 2007
Messages
888
no dont post triggers like that
copy your trigger as text (Copy as Text)
then select Go Advanced > paste your trigger then select the whole trigger and use trigger tags (Wrap
  • tags around selected text) it is a grey icon at the top
 
Level 8
Joined
Jun 25, 2007
Messages
165
  • Events
  • Unit - A unit Uses an item
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Rexxar the Beastmaster
    • (Item-type of (Item being manipulated)) Equal to Horn of the Wild
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Random integer number between 1 and 3 is equal to 1
        • Then - Actions
          • Unit - Create 1 Furbolg Elder Shaman for (Owner of (Item being manipulated)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
          • Unit - Add a 40 seconds generic timer for (Last created unit)
          • Else - Actions
            • ...
 
Level 2
Joined
Mar 28, 2008
Messages
5
Thx u ElvenGod but there still a problem. When i uses item it create a random beast for Neutral beside always 2 pig for me. Do you know why?This is new trigger:
  • Random Copy
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Rexxar the Beastmaster
      • (Item-type of (Item being manipulated)) Equal to Horn of the Wild
    • Actions
      • Set RandomBeast = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RandomBeast Equal to 1
        • Then - Actions
          • Unit - Create 1 Furbolg Elder Shaman for (Owner of (Item being manipulated)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
          • Unit - Add a 40.00 second Generic expiration timer to (Last created unit)
        • Else - Actions
          • ....
 
Status
Not open for further replies.
Top