hi, i have some questions:
1. what is best: hashtables, using Index, Bribe's unit indexer ?
2. i got a problem, i could solve it but then its rly unefficient.
-->
i have bribes unit indexer and i wanted to do a custom shockwave (as the normal one, but it stuns if it hits somebody), well so i created a dummy that looks like shockwave and took his custom value for indexing ( i added it to a group and picked every unit in that group in the next trigger [every 0.03 secs]), now there is my problem, in the "an unit casts an ability" trigger, i need to start with [Unit1 = Triggering unit] , but i couldnt because it has an index, so i have to create the dummy first, set index and then do [Unit1[Index] = triggering unit]
Trigger:
see my problem? i need the angle and the point before the creation of the dummy, but i need the dummy before the triggering unit
1. what is best: hashtables, using Index, Bribe's unit indexer ?
2. i got a problem, i could solve it but then its rly unefficient.
-->
i have bribes unit indexer and i wanted to do a custom shockwave (as the normal one, but it stuns if it hits somebody), well so i created a dummy that looks like shockwave and took his custom value for indexing ( i added it to a group and picked every unit in that group in the next trigger [every 0.03 secs]), now there is my problem, in the "an unit casts an ability" trigger, i need to start with [Unit1 = Triggering unit] , but i couldnt because it has an index, so i have to create the dummy first, set index and then do [Unit1[Index] = triggering unit]
Trigger:
-
ES
-
Ereignisse
- Unit - A unit Starts the effect of an ability
-
Bedingungen
- (Ability being cast) equal to Earth Shock
-
Aktionen
- Unit - Create 1 Earth Shock for Neutral feindlich at EarthShock_Point facing EarthShock_Angle[EarthShock_Index] degrees
- Set EarthShock_Target = (Target point of ability being cast)
- Set EarthShock_Dummy = (Last created unit)
- Set EarthShock_Index = (Custom value of EarthShock_Dummy)
- Set EarthShock_Unit[EarthShock_Index] = (Triggering unit)
- Set EarthShock_Point = (Position of EarthShock_Unit[EarthShock_Index])
- Set EarthShock_Damage[EarthShock_Index] = (60.00 + (60.00 x (Real((Level of Kanalisieren for EarthShock_Unit[EarthShock_Index])))))
- Set EarthShock_Range[EarthShock_Index] = 900.00
- Set EarthShock_Speed = 30.00
- Unit - Make EarthShock_Dummy face EarthShock_Angle[EarthShock_Index] over 0.00 seconds
- Unit - Set level of Earth Shock (Dummy) for EarthShock_Dummy to 1
- Unit Group - Add EarthShock_Dummy to EarthShock_Group
- Set EarthShock_Counter = (EarthShock_Counter + 1)
- Custom script: call RemoveLocation (udg_EarthShock_Point)
- Custom script: call RemoveLocation (udg_EarthShock_Target)
- Trigger - Turn on ES Loop <gen>
-
Ereignisse
see my problem? i need the angle and the point before the creation of the dummy, but i need the dummy before the triggering unit