• 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.

Useable Item

Status
Not open for further replies.
Level 6
Joined
May 1, 2009
Messages
156
Im trying to have it so when you click an item "Water Flask" while in a pool of water, your "Water Flask" turns to "Filled Water Flask". Thats the first thing, the second is so you can click "Filled Water Flask" and be able to select who to use it on then it does any water effect to selected target. Its not working for me, someone help me out?
 
1)
  • Trigger
  • Events
    • Unit - A unit uses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Water Flask
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Terrain pathing at (Point1) of type floatability is on) Equal to True //this is "Boolean Comparison, Environment - Terrain pathing is Off"
      • Then - Actions
        • Hero - Drop (Item being manipulated) from (Triggering unit)
        • Item - Remove (Last dropped item)
        • Hero - Create Filled Water Flask and give it to (Triggering unit)
      • Else - Actions
        • Game - Display to (Player Group(Owner of (Triggering unit))) the text: "You must stand withing a water pool to fill this flask up."
    • Custom script: call RemoveLocation (udg_Point1)
I don't get the second one. What kind of water effect? For the target part, the item needs to have an ability that actually is a single-target one, e.g. Cripple.
 
Level 6
Joined
May 1, 2009
Messages
156
this helps but can you literally show me how to have an item useable? Its silly to ask but for some reason when i create custom item that is based of an item that has one target ability, after i rename it and null all its affects, it isnt a useable item.
 
Level 7
Joined
Dec 4, 2009
Messages
175
this helps but can you literally show me how to have an item useable? Its silly to ask but for some reason when i create custom item that is based of an item that has one target ability, after i rename it and null all its affects, it isnt a useable item.

You need to make the item perishable with only one charge.
 
Level 6
Joined
May 1, 2009
Messages
156
yeah i tried, some reason it didnt work, thought i was doing something wrong, ty tho.
 
Level 8
Joined
Aug 21, 2009
Messages
333
The option he is talking about is a field in the object editor for the item.

It is called "Actively Used"; make sure this is set to true.

Also make sure there is an active ability in the first field for a that item's abilities.
 
Level 6
Joined
May 1, 2009
Messages
156
OHHHHHHHh....
Hahaha I forgot, i'm so stupid, I originially in this tread meant to ask...
Is there a way to let units (non-hero) use items???
 
Level 6
Joined
May 1, 2009
Messages
156
See theres the problem im having, I have a unit---- WWWait im using Unit(Nightelf) inventory, or w/e its called, but its the inventory for a unit, maybe if i use hero inventory ability instead of unit inventory ability. But otherwise im using unit inventory and the item isnt useable.
 
See theres the problem im having, I have a unit---- WWWait im using Unit(Nightelf) inventory, or w/e its called, but its the inventory for a unit, maybe if i use hero inventory ability instead of unit inventory ability. But otherwise im using unit inventory and the item isnt useable.

you should use the ablity Inventory(hero)
 
Status
Not open for further replies.
Top