KaTTaNa's Local Handle Variables

SFilip

Gone but not forgotten
Reaction score
634
could someone explain what is this script used for? i've heard alot about it and seen alot of spells that use it, yet i cant seem to understand why is it so great and usefull...
thanks in advance
 

monoVertex

I'm back!
Reaction score
460
Well this script allows you to "transport" locals from one trigger to another, from trigger to timer, etc. The script itself is based on a WCIII bug, as i know. :D
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
It allows values to be attached to an object rather than to a variable.
See it like a 'Custom Value' but it works for all types, on all types and with unlimited different values.
What it really does is to store data in a gamecache with the key I2S(H2I(object)).
H2I is the result of a wc3 bug, as previous mentioned.

A more optimized version is Vexorians CSCache, the 'tables' in that cut down on the I2S(H2I()) usage. H2I is a slow function and should be avoided as much as possible.
 

SFilip

Gone but not forgotten
Reaction score
634
phyrex1an said:
H2I is a slow function and should be avoided as much as possible.
so its not such a good idea to use these functions?
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
It's a great idea to use them, however do not use them where you simply could use a global insteed.
Also I suggest that you use the CSCache insteed of the Handle Variables.

"Without the return bug and the gamecache jass whould be a retarded limited coding language" - Vexorian
And its true to.
 

SFilip

Gone but not forgotten
Reaction score
634
alright point taken.
tnx for explaining it to me :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top