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

[Trigger] Hashtable - nothing gets saved

Status
Not open for further replies.
Level 14
Joined
Nov 23, 2008
Messages
512
after some time i decited to make a diablo 3 spell in gui again using hashtable but there is a strange bug. if i want to save something in the hashsable and right after that i tryed to get the value but it always returns 0.000 :/
of course i did Create Hashtable and set var=last Created Hashtable at elapsed time 0.00

simple example:
  • Set DG_Handle = (Triggering unit)
  • Hashtabelle - Save (10.00 + (3.00 x (Real((Level of (Ability being cast) for (Triggering unit)))))) as (Key dmg) of (Key DG_Handle) in DG_HashTable
  • Spiel - Display to (All players) the text: (String((Load (Key dmg) of (Key DG_Handle) from DG_HashTable)))
gives 0.000 back

please help :/
 
Level 14
Joined
Nov 23, 2008
Messages
512
i debuged it. it does run
  • DG init
    • Ereignisse
      • Map initialization
    • Bedingungen
    • Aktionen
      • Hashtabelle - Create a hashtable
      • Set DG_HashTable = (Last created hashtable)
      • Hashtabelle - Clear DG_HashTable
      • Custom script: set udg_DG_Units=CreateGroup()
      • Spiel - Display to (All players) the text: init
(changed elapsed time to map init)

EDIT: removed Clear DG_HashTable (added for testing)
now i'm able to save the dmg but nothing else
 
Status
Not open for further replies.
Top