Good the script
I isolated the convolution effect
(when there 1bar of life)
And i think have synchronize for the Multiplayer , to tested ...
The Scripte
Code:
(script continuous coeur_convolution
(if
(and
(< (unit_get_health (unit (list_get (players) 0))) 0.25)
(!= (unit_get_health (unit (list_get (players) 0))) 0)
(!= (unit_get_health (unit (list_get (players) 0))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 1))) 0.25)
(!= (unit_get_health (unit (list_get (players) 1))) 0)
(!= (unit_get_health (unit (list_get (players) 1))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 2))) 0.25)
(!= (unit_get_health (unit (list_get (players) 2))) 0)
(!= (unit_get_health (unit (list_get (players) 2))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 3))) 0.25)
(!= (unit_get_health (unit (list_get (players) 3))) 0)
(!= (unit_get_health (unit (list_get (players) 3))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 4))) 0.25)
(!= (unit_get_health (unit (list_get (players) 4))) 0)
(!= (unit_get_health (unit (list_get (players) 4))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 5))) 0.25)
(!= (unit_get_health (unit (list_get (players) 5))) 0)
(!= (unit_get_health (unit (list_get (players) 5))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 6))) 0.25)
(!= (unit_get_health (unit (list_get (players) 6))) 0)
(!= (unit_get_health (unit (list_get (players) 6))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 7))) 0.25)
(!= (unit_get_health (unit (list_get (players) 7))) 0)
(!= (unit_get_health (unit (list_get (players) 7))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 8))) 0.25)
(!= (unit_get_health (unit (list_get (players) 8))) 0)
(!= (unit_get_health (unit (list_get (players) 8))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 9))) 0.25)
(!= (unit_get_health (unit (list_get (players) 9))) 0)
(!= (unit_get_health (unit (list_get (players) 9))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 10))) 0.25)
(!= (unit_get_health (unit (list_get (players) 10))) 0)
(!= (unit_get_health (unit (list_get (players) 10))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 11))) 0.25)
(!= (unit_get_health (unit (list_get (players) 11))) 0)
(!= (unit_get_health (unit (list_get (players) 11))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 12))) 0.25)
(!= (unit_get_health (unit (list_get (players) 12))) 0)
(!= (unit_get_health (unit (list_get (players) 12))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 13))) 0.25)
(!= (unit_get_health (unit (list_get (players) 13))) 0)
(!= (unit_get_health (unit (list_get (players) 13))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 14))) 0.25)
(!= (unit_get_health (unit (list_get (players) 14))) 0)
(!= (unit_get_health (unit (list_get (players) 14))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
(if
(and
(< (unit_get_health (unit (list_get (players) 15))) 0.25)
(!= (unit_get_health (unit (list_get (players) 15))) 0)
(!= (unit_get_health (unit (list_get (players) 15))) -1)
)
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
)
)
)
I was not able fix the bug of scope
(the texture of sight does not appear)
When I add
Code:
(player_action_test_zoom)
(cinematic_screen_effect_stop)
(player_action_test_reset)
In the "(begin"
like that:
Code:
(begin
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 6 0 0.5)
(sleep 14)
(cinematic_screen_effect_start 1)
(cinematic_screen_effect_set_convolution 1 2 9 0 0.5)
(sleep 11)
(player_action_test_zoom)
(cinematic_screen_effect_stop)
(player_action_test_reset)
)
The scope flashes
Bookmarks