- Joined
- Jun 17, 2014
- Messages
- 236
Hello hive!
I have a problem with this trigger :
Credit to Maker for creating this system.
When i test it on the test map it's working properly, but when i import on any other map it's not working properly!, i dont know what's the problem. you can try it to your map
i will give +2 REP
Here the test map
Attack_Speed_Detection.w3x
I have a problem with this trigger :
Credit to Maker for creating this system.
-
Attack
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
Set Uu1 = (Attacking unit)
-
Custom script: set udg_Ui1 = GetHandleId(udg_Uu1)
-
Custom script: set udg_UTempTimer = LoadTimerHandle( udg_Uhash , udg_Ui1 , StringHash("timer") )
-
Custom script: if udg_UTempTimer == null then
-
Custom script: set udg_UTimerIndex = udg_UTimerIndex + 1
-
Custom script: call SaveTimerHandle( udg_Uhash , udg_Ui1 , StringHash("timer") , udg_UTimer[udg_UTimerIndex] )
-
Custom script: call SaveUnitHandle( udg_Uhash , GetHandleId( udg_UTimer[udg_UTimerIndex] ) , StringHash("unit") , udg_Uu1 )
-
Custom script: else
-
Custom script: if LoadBoolean( udg_Uhash , udg_Ui1 , StringHash("boolean") ) != false then
-
Custom script: set udg_Ur1 = TimerGetElapsed( LoadTimerHandle( udg_Uhash , udg_Ui1 , StringHash("timer") ) )
-
Custom script: set udg_UnitASPD[GetUnitUserData(udg_Uu1)] = udg_Ur1
-
Game - Display to Player Group - Player 1 (Red) the text: (Attack interval was: + (String(UnitASPD[(Custom value of Uu1)])))
-
Custom script: endif
-
Custom script: endif
-
Custom script: call TimerStart( LoadTimerHandle( udg_Uhash , udg_Ui1 , StringHash("timer") ) , 30. , false , null )
-
Custom script: call SaveBoolean( udg_Uhash , udg_Ui1 , StringHash("boolean") , true )
-
-
-
Error
-
Events
-
Unit - A unit Is issued an order with no target
-
Unit - A unit Is issued an order targeting a point
-
Unit - A unit Is issued an order targeting an object
-
-
Conditions
-
Actions
-
Custom script: if LoadBoolean( udg_Uhash , udg_Ui1 , StringHash("boolean") ) == true then
-
Custom script: call SaveBoolean( udg_Uhash , udg_Ui1 , StringHash("boolean") , false )
-
Custom script: endif
-
-
-
Melee Initialization
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Hashtable - Create a hashtable
-
Set Uhash = (Last created hashtable)
-
-
i will give +2 REP
Here the test map
Attack_Speed_Detection.w3x