- Joined
- Jan 12, 2010
- Messages
- 132
Freaking thing
I have onne trigger that is called by another trigger to change the icons in a multiboard.Problem is:
Dont work:
Work
I also have another identic trigger like this that use others variable and do same things and work perfectly fine.
help pls.
I have onne trigger that is called by another trigger to change the icons in a multiboard.Problem is:
Dont work:
-
HP2
-

Events
-

Conditions
-

Actions
-


Custom script: if GetLocalPlayer() == udg_Player then
-


For each (Integer A) from 9 to 16, do (Actions)
-



Loop - Actions
-




Set Integer[2] = (Integer A)
-




For each (Integer B) from 0 to 4, do (Actions)
-





Loop - Actions
-






Set Integer[3] = (4 - (Integer B))
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Real[6] + (0.25 x (Real(Integer[3])))) Greater than or equal to (Real((Integer[2] - 8)))
-
-







Then - Actions
-








Game - Display to (All players) for 1.00 seconds the text: (String(Integer[2]))
-








Multiboard - Set the icon for M_board item in column Integer[2], row 2 to HP_barr[(Integer[3] + 1)]
-
-







Else - Actions
-
-
-
-




Set Integer[4] = (Integer A)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Integer[4] Less than 16
-
-





Then - Actions
-






For each (Integer B) from (Integer[4] + 1) to 16, do (Actions)
-







Loop - Actions
-








Multiboard - Set the icon for M_board item in column Integer[2], row 2 to HP_barr[5]
-
-
-
-





Else - Actions
-
-
-
-


Custom script: endif
-
-
Work
-
HP2
-

Events
-

Conditions
-

Actions
-


Custom script: if GetLocalPlayer() == udg_Player then
-


For each (Integer A) from 9 to 16, do (Actions)
-



Loop - Actions
-




Set Integer[2] = (Integer A)
-




For each (Integer B) from 0 to 4, do (Actions)
-





Loop - Actions
-






Set Integer[3] = (4 - (Integer B))
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Real[6] + (0.25 x (Real(Integer[3])))) Greater than or equal to (Real((Integer[2] - 8)))
-
-







Then - Actions
-








Game - Display to (All players) for 1.00 seconds the text: (String(Integer[2]))
-








Multiboard - Set the icon for M_board item in column 11, row 2 to HP_barr[(Integer[3] + 1)]
-
-







Else - Actions
-
-
-
-




Set Integer[4] = (Integer A)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Integer[4] Less than 16
-
-





Then - Actions
-






For each (Integer B) from (Integer[4] + 1) to 16, do (Actions)
-







Loop - Actions
-








Multiboard - Set the icon for M_board item in column 11, row 2 to HP_barr[5]
-
-
-
-





Else - Actions
-
-
-
-


Custom script: endif
-
-
I also have another identic trigger like this that use others variable and do same things and work perfectly fine.
help pls.
