- Joined
- Nov 22, 2011
- Messages
- 74
Hey! I've had this problem for some while now. Two systems that I imported into my map are not working properly. First I imported one of them and it worked as it should. Then when I imported the second one, both of them didn't work. This system...
I'm sorry for this big wall of text, I couldn't figure out how to get the triggers into spoilers, if you know how to do that. Tell me.
Any way you can help me with this would be great! If you help me I will reward you with... whatever I can reward you with.
-
Set Damage
-
Events
- Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
- Conditions
-
Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring((Entered chat string), 1, 6)) Equal to (==) setdam
-
Then - Actions
- Set INT_DamageSys_SETdamage = (Integer((Substring((Entered chat string), 8, 12))))
- Else - Actions
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Substring((Entered chat string), 1, 6)) Equal to (==) adddam
-
Then - Actions
- Set INT_DamageSys_ADDdamage = (Integer((Substring((Entered chat string), 8, 12))))
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in UNIG_Group_A and do (Actions)
-
Loop - Actions
- Set UNI_DamageSys_Unit = (Picked unit)
- Trigger - Run Set Damage System <gen> (checking conditions)
-
Loop - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Set Damage System
- Events
- Conditions
-
Actions
-
-------- Required if unit does not have the dummy ability to begin with --------
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of ABIAR_DamageSys_Damage[1] for UNI_DamageSys_Unit) Equal to (==) 0
-
Then - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
-
Loop - Actions
- Unit - Add ABIAR_DamageSys_Damage[(Integer A)] to UNI_DamageSys_Unit
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
- Else - Actions
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- -------- Determine Current Damage --------
-
Set INT_DamageSys_CurrentDmg = 0
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
-
Loop - Actions
- Set INT_DamageSys_CurrentDmg = (INT_DamageSys_CurrentDmg + (((Level of ABIAR_DamageSys_Damage[(Integer A)] for UNI_DamageSys_Unit) - 1) x (Integer((Power(10.00, ((Real((Integer A))) - 1.00)))))))
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
-
-------- Add Damage --------
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- INT_DamageSys_ADDdamage Greater than (>) 0
-
Then - Actions
-
Set INT_DamageSys_ADDdamage = (INT_DamageSys_ADDdamage + INT_DamageSys_CurrentDmg)
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
-
Loop - Actions
- Set INT_General = ((INT_DamageSys_ADDdamage mod (Integer((Power(10.00, (Real((Integer A)))))))) / (Integer((Power(10.00, ((Real((Integer A))) - 1.00))))))
- Unit - Set level of ABIAR_DamageSys_Damage[(Integer A)] for UNI_DamageSys_Unit to (INT_General + 1)
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
-
Set INT_DamageSys_ADDdamage = (INT_DamageSys_ADDdamage + INT_DamageSys_CurrentDmg)
-
Else - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
-
Loop - Actions
- Unit - Set level of ABIAR_DamageSys_Damage[(Integer A)] for UNI_DamageSys_Unit to 1
- Set INT_General = ((INT_DamageSys_SETdamage mod (Integer((Power(10.00, (Real((Integer A)))))))) / (Integer((Power(10.00, ((Real((Integer A))) - 1.00))))))
- Unit - Set level of ABIAR_DamageSys_Damage[(Integer A)] for UNI_DamageSys_Unit to (INT_General + 1)
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_DamageSys_DigitCount, do (Actions)
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Set INT_DamageSys_ADDdamage = 0
- Set INT_DamageSys_SETdamage = 0
-
-------- Required if unit does not have the dummy ability to begin with --------
-
Set Life
-
Events
- Player - Player 1 (Red) types a chat message containing setlife as A substring
-
Conditions
- (Substring((Entered chat string), 1, 8)) Equal to (==) setlife
-
Actions
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Actions)
-
Loop - Actions
- Set INT_Temp_Integer_HP = (Integer((Substring((Entered chat string), 9, (Length of (Entered chat string))))))
- Set UNI_Temp_Unit_A = (Picked unit)
- Trigger - Run Set Health System <gen> (ignoring conditions)
-
Loop - Actions
-
Events
-
Set Health System
- Events
- Conditions
-
Actions
-
Set INT_Temp_Integer_HP = (INT_Temp_Integer_HP - (Integer((Max life of UNI_Temp_Unit_A))))
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- INT_Temp_Integer_HP Greater than (>) 0
-
Then - Actions
-
Set INT_Loop_Integer = ((INT_Temp_Integer_HP - (INT_Temp_Integer_HP mod 100)) / 100)
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
-
Loop - Actions
- Unit - Add Max Life Modifier to UNI_Temp_Unit_A
- Unit - Set level of Max Life Modifier for UNI_Temp_Unit_A to 4
- Unit - Remove Max Life Modifier from UNI_Temp_Unit_A
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
- Set INT_Temp_Integer_HP = (INT_Temp_Integer_HP mod 100)
-
Set INT_Loop_Integer = ((INT_Temp_Integer_HP - (INT_Temp_Integer_HP mod 10)) / 10)
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
-
Loop - Actions
- Unit - Add Max Life Modifier to UNI_Temp_Unit_A
- Unit - Set level of Max Life Modifier for UNI_Temp_Unit_A to 3
- Unit - Remove Max Life Modifier from UNI_Temp_Unit_A
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
-
Set INT_Temp_Integer_HP = (INT_Temp_Integer_HP mod 10)
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Temp_Integer_HP, do (Actions)
-
Loop - Actions
- Unit - Add Max Life Modifier to UNI_Temp_Unit_A
- Unit - Set level of Max Life Modifier for UNI_Temp_Unit_A to 2
- Unit - Remove Max Life Modifier from UNI_Temp_Unit_A
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Temp_Integer_HP, do (Actions)
-
Set INT_Loop_Integer = ((INT_Temp_Integer_HP - (INT_Temp_Integer_HP mod 100)) / 100)
-
Else - Actions
- Set INT_Temp_Integer_HP = (0 - INT_Temp_Integer_HP)
-
Set INT_Loop_Integer = ((INT_Temp_Integer_HP - (INT_Temp_Integer_HP mod 100)) / 100)
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
-
Loop - Actions
- Unit - Add Max Life Modifier to UNI_Temp_Unit_A
- Unit - Set level of Max Life Modifier for UNI_Temp_Unit_A to 7
- Unit - Remove Max Life Modifier from UNI_Temp_Unit_A
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
- Set INT_Temp_Integer_HP = (INT_Temp_Integer_HP mod 100)
-
Set INT_Loop_Integer = ((INT_Temp_Integer_HP - (INT_Temp_Integer_HP mod 10)) / 10)
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
-
Loop - Actions
- Unit - Add Max Life Modifier to UNI_Temp_Unit_A
- Unit - Set level of Max Life Modifier for UNI_Temp_Unit_A to 6
- Unit - Remove Max Life Modifier from UNI_Temp_Unit_A
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Loop_Integer, do (Actions)
-
Set INT_Temp_Integer_HP = (INT_Temp_Integer_HP mod 10)
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Temp_Integer_HP, do (Actions)
-
Loop - Actions
- Unit - Add Max Life Modifier to UNI_Temp_Unit_A
- Unit - Set level of Max Life Modifier for UNI_Temp_Unit_A to 5
- Unit - Remove Max Life Modifier from UNI_Temp_Unit_A
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to INT_Temp_Integer_HP, do (Actions)
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Set INT_Temp_Integer_HP = (INT_Temp_Integer_HP - (Integer((Max life of UNI_Temp_Unit_A))))
I'm sorry for this big wall of text, I couldn't figure out how to get the triggers into spoilers, if you know how to do that. Tell me.
Any way you can help me with this would be great! If you help me I will reward you with... whatever I can reward you with.