1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Rubbed the right way, the genie is out of its lamp! The 12th Concept Art Contest Results have been announced.
    Dismiss Notice
  4. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Useable Item

Discussion in 'World Editor Help Zone' started by Lee_Go, Dec 8, 2009.

  1. Lee_Go

    Lee_Go

    Joined:
    May 1, 2009
    Messages:
    156
    Resources:
    0
    Resources:
    0
    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?
     
  2. Pharaoh_

    Pharaoh_

    Joined:
    Nov 6, 2008
    Messages:
    8,128
    Resources:
    11
    Icons:
    3
    Skins:
    1
    Spells:
    6
    Tutorials:
    1
    Resources:
    11
    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.
     
  3. Lee_Go

    Lee_Go

    Joined:
    May 1, 2009
    Messages:
    156
    Resources:
    0
    Resources:
    0
    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.
     
  4. Raj91

    Raj91

    Joined:
    Dec 4, 2009
    Messages:
    169
    Resources:
    1
    Models:
    1
    Resources:
    1
    You need to make the item perishable with only one charge.
     
  5. Adiktuz

    Adiktuz

    Joined:
    Oct 16, 2008
    Messages:
    9,674
    Resources:
    23
    Models:
    2
    Packs:
    1
    Maps:
    1
    Spells:
    16
    Tutorials:
    1
    JASS:
    2
    Resources:
    23
    I'm sure there is an option in the object editor for that item that says Usable or something like that.. just put a checkmark on it. on on his trigger you don't need to drop the item, you can remove it directly...
     
  6. Lee_Go

    Lee_Go

    Joined:
    May 1, 2009
    Messages:
    156
    Resources:
    0
    Resources:
    0
    yeah i tried, some reason it didnt work, thought i was doing something wrong, ty tho.
     
  7. Baintastic

    Baintastic

    Joined:
    Aug 21, 2009
    Messages:
    322
    Resources:
    1
    Maps:
    1
    Resources:
    1
    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.
     
  8. Lee_Go

    Lee_Go

    Joined:
    May 1, 2009
    Messages:
    156
    Resources:
    0
    Resources:
    0
    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???
     
  9. Baintastic

    Baintastic

    Joined:
    Aug 21, 2009
    Messages:
    322
    Resources:
    1
    Maps:
    1
    Resources:
    1
    probably. just give them the inventory ability that heroes have.
     
  10. Adiktuz

    Adiktuz

    Joined:
    Oct 16, 2008
    Messages:
    9,674
    Resources:
    23
    Models:
    2
    Packs:
    1
    Maps:
    1
    Spells:
    16
    Tutorials:
    1
    JASS:
    2
    Resources:
    23
    right.
     
  11. Lee_Go

    Lee_Go

    Joined:
    May 1, 2009
    Messages:
    156
    Resources:
    0
    Resources:
    0
    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.
     
  12. Baintastic

    Baintastic

    Joined:
    Aug 21, 2009
    Messages:
    322
    Resources:
    1
    Maps:
    1
    Resources:
    1
    if you use the hero inventory it should work. I know that the couriers in DotA can use abilities and they are units.

    you should also make sure that your unit has enough mana to use the item (that is, if it requires mana).
     
  13. Adiktuz

    Adiktuz

    Joined:
    Oct 16, 2008
    Messages:
    9,674
    Resources:
    23
    Models:
    2
    Packs:
    1
    Maps:
    1
    Spells:
    16
    Tutorials:
    1
    JASS:
    2
    Resources:
    23
    you should use the ablity Inventory(hero)