hey got an issue with toss. i got a already created script and tried to make it MUI using hashtables, so i can't find where the problem is. first of all, yes i've created a hashtable and set that as toss_hashtable. i verified so many times if i got an error on string keys but i didn't. so can anybody help me?
here comes the triggers:

here comes the triggers:
-
Toss Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Toss
-
-
Actions
-
Set toss_height = 100
-
Set toss_castcount = (toss_castcount + 1)
-
Set toss_casterpoint = (Position of (Triggering unit))
-
Set toss_targetpoint = (Target point of ability being cast)
-
Unit Group - Pick every unit in (Units within 400.00 of toss_casterpoint) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A structure) Equal to False
-
((Picked unit) is alive) Equal to True
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to toss_pickunit
-
Hashtable - Save (Angle from (Position of (Picked Unit)) to toss_targetpoint) as (Key angle) of (Key (Picked unit)) in toss_hashtable
-
Hashtable - Save 0 as (Key height) of (Key (Picked unit)) in toss_hashtable
-
Hashtable - Save (Distance between toss_pickedunitpoint and toss_targetpoint) as (Key distance) of (Key (Picked unit)) in toss_hashtable
-
-
Else - Actions
-
-
-
-
Set toss_tossedunit = (Random unit from toss_pickunit)
-
Set toss_pickedunitpoint = (Position of toss_tossedunit)
-
Unit - Add Storm Crow Form to toss_tossedunit
-
Unit - Remove Storm Crow Form from toss_tossedunit
-
Unit Group - Add toss_tossedunit to toss_tossedunits
-
Trigger - Turn on Toss Periodic <gen>
-
Custom script: call RemoveLocation (udg_toss_casterpoint)
-
Custom script: call RemoveLocation (udg_toss_targetpoint)
-
Custom script: call RemoveLocation (udg_toss_pickedunitpoint)
-
Custom script: call DestroyGroup (udg_toss_pickunit)
-
-
-
Toss Periodic
-
Events
-
Time - Every 0.02 Seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in toss_tossedunits and do (Actions)
-
Loop - Actions
-
Set toss_tempheight = (Load (Key height) of (Key (Picked unit)) from toss_hashtable)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
toss_tempheight Less than toss_height
-
-
Then - Actions
-
Set toss_tempheight = (toss_tempheight + 1)
-
Hashtable - Save toss_tempheight as (Key height) of (Key (Picked unit)) in toss_hashtable
-
Set toss_angle = (Load (Key angle) of (Key (Picked unit)) from toss_hashtable)
-
Set toss_distance = (Load (Key distance) of (Key (Picked unit)) from toss_hashtable)
-
Set toss_pickedunitpoint = (Position of (Picked unit))
-
Set toss_targetpoint = (toss_pickedunitpoint offset by (toss_distance / (Real(toss_height))) towards toss_angle degrees)
-
Unit - Move (Picked unit) instantly to toss_targetpoint
-
Set toss_flyheight = ((Power(((Real(toss_height)) / 2.00), 2.00)) - ((((Real(toss_height)) / 2.00) - (Real(toss_tempheight))) x (((Real(toss_height)) / 2.00) - (Real(toss_tempheight)))))
-
Animation - Change (Picked unit) flying height to toss_flyheight at 0.00
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
toss_tempheight Equal to toss_height
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from toss_tossedunits
-
Animation - Change (Picked unit) flying height to 0.00 at 0.00
-
Special Effect - Create a special effect at Pt_PickedPos using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
-
Special Effect - Destroy (Last created special effect)
-
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in toss_hashtable
-
-
Else - Actions
-
-
Custom script: call RemoveLocation (udg_toss_targetpoint)
-
Custom script: call RemoveLocation (udg_toss_pickedunitpoint)
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in toss_tossedunits) Equal to 0
-
-
Then - Actions
-
Hashtable - Clear toss_hashtable
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-