Ardenian
A
Ardenian
Hello,
I am facing a problem with my system I re-work using hashtable.
I have one unit which will be linked to another ( theoretically and practically, with a lightning). My problem is, how do I save the relation, so I can load it if needed, considering one unit can be linked to multiple at once ?
Without the hashtable I would have to use dynamic indexing.
My approach was:
So, my next idea, in theory, would be the following:
Another question, off-topic, but related:
I thought handles of the same type overwrite themselves ?
I use
It should not work, after all I know, and it makes me mad why it does work.
Does anyone can help me with this ? My triggers aren't necessary, the action above is the only one to save multiple lightning and they seem not to overwrite themselves.
I am facing a problem with my system I re-work using hashtable.
I have one unit which will be linked to another ( theoretically and practically, with a lightning). My problem is, how do I save the relation, so I can load it if needed, considering one unit can be linked to multiple at once ?
Without the hashtable I would have to use dynamic indexing.
My approach was:
-
Unit - Add TempUnit to UnitGroup[Key(CastingUnit)]
So, my next idea, in theory, would be the following:
-
Hashtable - Save Handle of TempUnit as Key(CastingUnit) of Key(CastingUnit) in Hashtable
Another question, off-topic, but related:
I thought handles of the same type overwrite themselves ?
I use
-
Hashtable - Save Handle Of TempLightning as 2 of (Key (Target unit of ability being cast)) in Hashtable
It should not work, after all I know, and it makes me mad why it does work.
Does anyone can help me with this ? My triggers aren't necessary, the action above is the only one to save multiple lightning and they seem not to overwrite themselves.