- Joined
- May 21, 2015
- Messages
- 70
my 3rd trigger dont work, it will remove the added atrribute after seconds 5 but it didnt EDIT:Ive found the problem, but the new problem now is the stats doesnt go away after 5 seconds if RageC is repeatitively takes damage. >> heres the trigger again
-
Rage Start
-
Events
- Unit - A unit Learns a skill
- Conditions
-
Actions
- Set RageC[RageS] = (Learning Hero)
- Trigger - Add to Rage Cast <gen> the event (Unit - RageC[RageS] Takes damage)
-
Events
-
Rage Cast
- Events
- Conditions
-
Actions
- Set RageS = (RageS + 1)
- Set RageCh[RageS] = (Random integer number between 1 and 2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RageCh[RageS] Not equal to 1
-
Then - Actions
- Set RageS = (RageS - 1)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RageCh[RageS] Equal to 1
-
Then - Actions
- Set RageC[RageS] = (Triggering unit)
- Set RageT[RageS] = 0
- Set RageTi = 1.00
- Set RageTiR[RageS] = 1
-
Else - Actions
- Trigger - Turn on Rage Trigger <gen>
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Rage Trigger
-
Events
- Game - RageTi becomes Equal to 1.00
- Conditions
-
Actions
- Trigger - Turn on Rage Add <gen>
-
Events
-
Rage Add
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
For each (Integer RageIn) from 1 to RageS, do (Actions)
-
Loop - Actions
- Set RageT[RageIn] = (RageT[RageIn] + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RageTiR[RageIn] Equal to 1
-
Then - Actions
- Hero - Modify Strength of RageC[RageIn]: Add (2 x (Hero level of RageC[RageIn]))
- Set RageA[RageIn] = (RageA[RageIn] + (2 x (Hero level of RageC[RageIn])))
- Set RageTiR[RageIn] = 0
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RageT[RageIn] Equal to 5
-
Then - Actions
- Hero - Modify Strength of RageC[RageIn]: Subtract RageA[RageIn]
- Set RageA[RageIn] = 0
-
Else - Actions
- Set RageIn = (RageIn - 1)
- Set RageC[RageIn] = RageC[RageS]
- Set RageS = (RageS - 1)
- Set RageT[RageIn] = 0
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Loop - Actions
-
For each (Integer RageIn) from 1 to RageS, do (Actions)
-
Events