• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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