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

Item Help

Status
Not open for further replies.
Level 5
Joined
Nov 7, 2007
Messages
134
If you mean "click to pick up from ground", then use an "Unit Acquires item"-event. If you mean "click in inventory to use item", then use an "Unit Uses an item"-event. If you mean "click in shop to buy item", then use an "Unit Sells item"-event. That's about it :)
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
I think he wants something like this...
  • UseItem
    • Events
      • Unit - A unit owned by Player 1 (Red) Uses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Scroll of the Beast
        • Then - Actions
          • Trigger - Turn on (This trigger)
        • Else - Actions
Something real simple...you can create more advanced ones based on this.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Take some item like potion of healing. Modify it in object editor, set "Number of Charges" to 0. Now you can use it unlimited times.

Copy and paste "Item Heal (lesser)" ability, and mod it to give 0 HP. Add the ability to your item.

  • Untitled Trigger 051
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Potion of Healing
    • Actions
      • ...
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
Take some item like potion of healing. Modify it in object editor, set "Number of Charges" to 0. Now you can use it unlimited times.

Copy and paste "Item Heal (lesser)" ability, and mod it to give 0 HP. Add the ability to your item.

  • Untitled Trigger 051
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Potion of Healing
    • Actions
      • ...

u used bad ability,healing can only be used if your unit is not on 100% hit points

use stun or something like that and set its damage to 0
 
Level 6
Joined
Aug 22, 2008
Messages
123
NOTHING TO DO WITH TRIGGERS!

@The guys posting above: Learn to read the request properly. If you cannot post anything new to the thread, you should simply leave it alone. Spamming leads to nobody's opportunity.:hohum:

@Topic:
I'm using the german world editor and will try to translate the lines into english.

Select that item in the Object Editor.
You need to check the line "usable" and uncheck the line "perishable".
If that does not already work, give your item an ability that can be cast without targets and has no effects. Put that ability to the top of your item's ability list.
The charges of that item may be substracted. If that is the case, you can increase the number of charges on that item using a trigger (Item- set charges remaining to X).:wink:

@The one below:
I was not talking about you. Read my post properly please... I am referring to the ones posting after that quote.
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
@The guys posting above: Learn to read the request properly. If you cannot post anything new to the thread, you should simply leave it alone. Spamming leads to nobody's opportunity.:hohum:

@Topic:
I'm using the german world editor and will try to translate the lines into english.

Select that item in the Object Editor.
You need to check the line "usable" and uncheck the line "perishable".
If that does not already work, give your item an ability that can be cast without targets and has no effects. Put that ability to the top of your item's ability list.
The charges of that item may be substracted. If that is the case, you can increase the number of charges on that item using a trigger (Item- set charges remaining to X).:wink:


You may have a problem with your eyes or something...so i will be gentle with you.BEFORE telling us what to do could you take another look at this thread?I posted the TRIGGER FIRST and then he SAID NO TRIGGERS.Also all of us are trying to help here,have this in mind before telling that we spam.
 
Status
Not open for further replies.
Top