• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Charges in Items with Jass

Status
Not open for further replies.
Level 3
Joined
Jun 25, 2008
Messages
65
I got a problem...
I took Diablo DK's Recipe System and i modified it a bit...
I added ChargeCounters for the items... It should work fine, but it does not because i have a problem with the items:

I have a normal Claw +15 and in ObjectEditor it has Charges = 0 for sure
But if I store the Charges into a variable its 48 and not 0...
If i do the "Display to (All Players): Integer(Charges in Item in Slot1)" and i have the claw in slot 1 it displays 0.
But if I write into the Custom Script:
call DisplayTextToForce( GetAllPlayers(), I2S(udg_idc)) // udg_idc is the variable with the charges
It says it has 48 Charges.

Can you help me ?
That destroys the whole system -.-
 
Status
Not open for further replies.
Top