• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Problem with right-click action

Status
Not open for further replies.
Level 8
Joined
Jun 26, 2010
Messages
530
Be more specific. It don't works only on your map or in your wc3? If it's in your map maybe you have something triggered by any order that does something.
 
Level 9
Joined
Jun 25, 2009
Messages
427
So i came home today, i thought it will be sunday, oookay. I don't have the map with me but the thing is.

  • Item - Create Item_Dummies_Normal[Integer B] at Item_Hero_Pos[Player Number (Owner of (Triggering Unit))]
  • Unit - Order (Triggering Unit) Right-Click (Last Created Item)
This thing doesn't work, even if i use a trigger that shows orders :(

Of course +rep for the guy who solves it.

P.S. I even tried using Umswe (Jngp) using Order (Triggering Unit) smart (Last Created Item). Didn't work ...


Tiche3
 
Level 8
Joined
Jun 26, 2010
Messages
530
Strange, it works for me. There must be another trigger on the map conflicting with that one of yours.
 

Attachments

  • Right-Click Item.w3x
    16 KB · Views: 48
Level 9
Joined
Jun 25, 2009
Messages
427
Hey, i'll check it out, thanks.

So i did check it out. But when i set archmage into a variable, he didn't go and even if it worked the way you did, when i was with full inventory it didn't even make the order, which was the thing i needed. How to make a unit order to pick up an item when he has full inventory, i mean only order, just to get 'inventory is full' message :)
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
A unit when ordered to pick up an item (with a trigger) when he has full inventory will not move. Could you order the unit to move to the position of the item instead? Or use this:

  • Untitled Trigger 018
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set Item = (Item-type of (Item carried by Paladin 0003 <gen> in slot 1))
      • Item - Remove (Item carried by Paladin 0003 <gen> in slot 1)
      • Unit - Order Paladin 0003 <gen> to Right-Click Claws of Attack +15 0014 <gen>
      • Hero - Create Item and give it to Paladin 0003 <gen>
 
Level 9
Joined
Jun 25, 2009
Messages
427
A unit when ordered to pick up an item (with a trigger) when he has full inventory will not move. Could you order the unit to move to the position of the item instead? Or use this:

  • Untitled Trigger 018
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set Item = (Item-type of (Item carried by Paladin 0003 <gen> in slot 1))
      • Item - Remove (Item carried by Paladin 0003 <gen> in slot 1)
      • Unit - Order Paladin 0003 <gen> to Right-Click Claws of Attack +15 0014 <gen>
      • Hero - Create Item and give it to Paladin 0003 <gen>

Thanks ill test it.

And to mortar: yes, i have everything based on things like these, currently my unit is walking to position of item, but if this works like i expect i will soon have a TOTAL DotA recipe system (i mean the inventory full thingies).

Gonna test what maker said ;)

And not to confuse you why i want this is i have power ups based on tomes in my shop. when i buy it i want a [recipe] to drop near me and make me rgith-click it because i have an inventory system (recipe) that immitates me picking the item when im in 200 range, but the prob is what i have written.

Hey I tested it and guess what? Order (Triggering Unit) Right-Click (Last created item) doesn't work, i mean he doesn't go even the inventory isn't full >.>

Look what triggers i currently have and no order triggers work.

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing item as A substring
    • Conditions
    • Actions
      • Item - Create Mask of Death at (Center of (Playable map area))
      • Unit - Order Archmage 0000 <gen> to Right-Click (Last created item)
The second one
  • Untitled Trigger 002
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(smart))
    • Actions
      • Game - Display to (All players) the text: Order :)
The third one
  • Untitled Trigger 003
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Agility
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of items carried by (Triggering unit)) Equal to 6
        • Then - Actions
          • Set Hero_Pos = (Position of (Triggering unit))
          • Item - Create Orb of Frost at Hero_Pos
          • Item - Remove (Item carried by (Triggering unit) in slot 1)
          • Unit - Order (Hero manipulating item) to Right-Click (Last created item)
          • Custom script: call RemoveLocation(udg_Hero_Pos)
        • Else - Actions
          • Set Hero_Pos = (Position of (Triggering unit))
          • Item - Create Orb of Frost at Hero_Pos
          • Unit - Order (Hero manipulating item) to Right-Click (Last created item)
          • Custom script: call RemoveLocation(udg_Hero_Pos)
 
Last edited:
Status
Not open for further replies.
Top