• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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