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

[General] Any way to recover an ability from a Hashtable?

Status
Not open for further replies.
Abilities/Buff/Unit-Types/Item-Type are integers, convert them before saving into/loading from the hash
you need an custom script line for both converts.
Int is an integer variable.
Skill is an ability variable.
  • Actions
    • -------- Save --------
    • Set Skill = Avatar
    • Custom script: set udg_Int = udg_Skill
    • Hashtable - Save Int as 0 of (Key (Triggering unit)) in Hash
    • -------- Read --------
    • Set Int = (Load 0 of (Key (Triggering unit)) from Hash)
    • Custom script: set udg_Skill = udg_Int
 
Last edited:
Level 6
Joined
Feb 5, 2017
Messages
32
Abilities/Buff/Unit-Types/Item-Type are integers, convert them before saving into/loading from the hash
you need an custom script line for both converts.
Int is an integer variable.
Skill is an ability variable.
  • Actions
    • -------- Save --------
    • Set Skill = Avatar
    • Custom script: set udg_Int = udg_Skill
    • Hashtable - Save Int as 0 of (Key (Triggering unit)) in Hash
    • -------- Read --------
    • Set Int = (Load 0 of (Key (Triggering unit)) from Hash)
    • Custom script: set udg_Skill = udg_Int


Thank you so much, +rep :infl_thumbs_up:
 
Status
Not open for further replies.
Top