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

Crafting System 3

Status
Not open for further replies.
Level 13
Joined
Oct 25, 2009
Messages
995
  • Boots of Speed
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Craft a Boots of Speed
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Triggering unit) has an item of type Long Grass) Equal to True
              • ((Triggering unit) has an item of type Silk) Equal to True
              • ((Triggering unit) has an item of type Boots of Silks) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Charges remaining in (Item carried by (Triggering unit) of type Long Grass)) Greater than or equal to 2
              • (Charges remaining in (Item carried by (Triggering unit) of type Silk)) Greater than or equal to 2
            • Then - Actions
              • Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: You have crafted a ...
              • Item - Remove (Item carried by (Triggering unit) of type Boots of Silks)
              • Item - Set charges remaining in (Item carried by (Triggering unit) of type Silk) to ((Charges remaining in (Item carried by (Triggering unit) of type Silk)) - 2)
              • Item - Set charges remaining in (Item carried by (Triggering unit) of type Long Grass) to ((Charges remaining in (Item carried by (Triggering unit) of type Long Grass)) - 2)
              • Hero - Create Boots of Speed and give it to (Triggering unit)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Charges remaining in (Item carried by (Triggering unit) of type Long Grass)) Less than 1
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Long Grass)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Charges remaining in (Item carried by (Triggering unit) of type Silk)) Less than 1
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Silk)
                • Else - Actions
            • Else - Actions
              • Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: Please check again ...
        • Else - Actions
          • Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: You didn't have the...
I have a problem with this trigger,if i have the required item,the text still display to the triggering unit,how can i do that?(Remove the text that display after the item made,
  • Actions:
  • Else - Actions
    • Game - Display to........
 
Level 5
Joined
Nov 7, 2007
Messages
134
To clarify: Even if the unit has the required items, and the Boots of Speed is successfully crafted, the player stills gets the message that it did not have the required items?
 
Level 3
Joined
Mar 20, 2011
Messages
35
If your asking what i believe your asking which is you dont want the text that tells the unit he does not have the required materials. then you could try,

  • Boots of Speed
  • Events
  • Unit - A unit Starts the effect of an ability
  • Conditions
  • (Ability being cast) Equal to Craft a Boots of Speed
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • And - All (Conditions) are true
  • Conditions
  • ((Triggering unit) has an item of type Long Grass) Equal to True
  • ((Triggering unit) has an item of type Silk) Equal to True
  • ((Triggering unit) has an item of type Boots of Silks) Equal to True
  • Then - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Charges remaining in (Item carried by (Triggering unit) of type Long Grass)) Greater than or equal to 2
  • (Charges remaining in (Item carried by (Triggering unit) of type Silk)) Greater than or equal to 2
  • Then - Actions
  • Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: You have crafted a ...
  • Item - Remove (Item carried by (Triggering unit) of type Boots of Silks)
  • Item - Set charges remaining in (Item carried by (Triggering unit) of type Silk) to ((Charges remaining in (Item carried by (Triggering unit) of type Silk)) - 2)
  • Item - Set charges remaining in (Item carried by (Triggering unit) of type Long Grass) to ((Charges remaining in (Item carried by (Triggering unit) of type Long Grass)) - 2)
  • Hero - Create Boots of Speed and give it to (Triggering unit)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Charges remaining in (Item carried by (Triggering unit) of type Long Grass)) Less than 1
  • Then - Actions
  • Item - Remove (Item carried by (Triggering unit) of type Long Grass)
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Charges remaining in (Item carried by (Triggering unit) of type Silk)) Less than 1
  • Then - Actions
  • Item - Remove (Item carried by (Triggering unit) of type Silk)
  • Skip remaining actions
  • Else - Actions
  • Else - Actions
  • Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: Please check again ...
  • Else - Actions
  • Game - Display to (Player group((Owner of (Triggering unit)))) for 10.00 seconds the text: You didn't have the..
I basically added the skip remaining actions so that if the user creates the item succesfully none of the other messages even have a chance to be displayed
 
Status
Not open for further replies.
Top