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

Need help with remaining charges

Status
Not open for further replies.

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
guys, I cant find a working condition "remaining charges of an item is 0"
as example I have an item with 1 charge on it. I make a trigger like
  • a
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Charges remaining in (Item being manipulated)) Equal to 0
    • Actions
      • Game - Display to (All players) the text: hurahhh!! it's work...
then the message wont appear bcos the condition didnt match.
anyone knows the matching condition?
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
I dont know. It looks like the item removed immediately after the last charge is used. I have tried these conditions (nearly like this)
Item is hidden equal to true
udg_item not equal to no item

no one is working :(
I will try yours :)

EDIT: let me correct that line, looks like that event is when a unit has finished using the item, not when it uses the item. bcos, I have tried to use message for debug, the message shows remaining charge, and it shows remaining charge of the item after being used. ae. before I use it, the remaining charge is 2, when I use it the message shows "1". ah hope u understand what I mean lol

try as condition: x<1

x = charges of item
that's may be the solution, thnks for advice :)
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
Try this one
  • UseMeUp
    • Events
      • Unit - A unit Loses an item
    • Conditions
    • Actions
      • Game - Display to (All players) the text: You fucking lost an item.
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
Try this one
  • UseMeUp
    • Events
      • Unit - A unit Loses an item
    • Conditions
    • Actions
      • Game - Display to (All players) the text: You fucking lost an item.
okay2. :|

it works o.0
c6YZ8hj.jpg
 
Status
Not open for further replies.
Top