- Joined
- Feb 22, 2006
- Messages
- 960
Hi you,
I have a little problem with one of my ability. It increases the strenght of a unit by 5 every second (i did it with the attribute ability) but every time the ability is used the first time in the map there is a 4 second freeze on my monitor and then the map goes on without problems.
So, this is the first trigger, it adds the attribute ability to the casting unit
greetings from germany
I have a little problem with one of my ability. It increases the strenght of a unit by 5 every second (i did it with the attribute ability) but every time the ability is used the first time in the map there is a 4 second freeze on my monitor and then the map goes on without problems.
So, this is the first trigger, it adds the attribute ability to the casting unit
-
Rampage Cast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Rampage
-
Actions
- Unit - Add Rampage(Str) to (Casting Unit)
-
Events
-
Rampage
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in(Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) esle do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Rampage) Equal to True
-
Then - Actions
- Set TempInt = (Player number of (Owner of (Picked unit))
- Set rampage[TempInt] = (rampage[TempInt] + 1)
- Unit - Set Level of Rampage(Str) for (Picked unit) to ((Level of Rampage(Str) for (Picked unit)) + 1)
-
If (All Conditions are True) then do (Then Actions) esle do (Else Actions)
-
If - Conditions
- rampage[TempInt] Equal to ((Level of Rampage for (Picked unit) x 4)
-
Then - Actions
- Unit - Remove Rampage(Str) from (Picked unit)
- Set rampage[TempInt] = 0
- Else - Actions
-
If - Conditions
-
If - Conditions
- Else - Actions
-
If (All Conditions are True) then do (Then Actions) esle do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in(Playable map area)) and do (Actions)
-
Events
greetings from germany