- Joined
- Aug 27, 2004
- Messages
- 471
I tried to make a skip cinimatic... but i cant get it to work...
It should work... But it just doesnt. It runs the intro without reguard for anything...
Code:
Startup
Events
Map initialization
Conditions
Actions
Set Intro = 0
Set Nointro = 0
Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
Wait 0.01 seconds
Game - Display to (All players) for 11.00 seconds the text: |cFF990000You have ...
Dialog - Create a dialog button for DialogIntro labelled Show intro
Set Shwointrobutton = (Last created dialog Button)
Wait 0.10 seconds
Dialog - Create a dialog button for DialogIntro labelled Skip Intro
Set Dontshowintrobutton = (Last created dialog Button)
Wait 0.01 seconds
Dialog - Show DialogIntro for Player 1 (Red)
Dialog - Show DialogIntro for Player 2 (Blue)
Camera - Lock camera target for Player 1 (Red) to Scientist 0000 <gen>, offset by (0.00, 0.00) using Default rotation
Camera - Lock camera target for Player 2 (Blue) to Scientist 0000 <gen>, offset by (0.00, 0.00) using Default rotation
Code:
Show Intro
Events
Dialog - A dialog button is clicked for DialogIntro
Conditions
(Clicked dialog button) Equal to Shwointrobutton
Actions
Dialog - Hide DialogIntro for (Triggering player)
Set Intro = (Intro + 1)
Code:
Dont Show Intro
Events
Dialog - A dialog button is clicked for DialogIntro
Conditions
(Clicked dialog button) Equal to Dontshowintrobutton
Actions
Dialog - Hide DialogIntro for (Triggering player)
Set Nointro = (Nointro + 1)
Code:
RunVoteCheck
Events
Time - Elapsed game time is 15.50 seconds
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) controller) Equal to User
Then - Actions
Set PlayerAmount = (PlayerAmount + 1)
Else - Actions
Do nothing
Wait 0.10 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) controller) Equal to User
Then - Actions
Set PlayerAmount = (PlayerAmount + 1)
Else - Actions
Do nothing
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Intro + Nointro) Equal to PlayerAmount
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Intro Greater than or equal to Nointro
Then - Actions
Trigger - Run Intro <gen> (ignoring conditions)
Dialog - Hide DialogIntro for Player 1 (Red)
Dialog - Hide DialogIntro for Player 2 (Blue)
Else - Actions
Dialog - Hide DialogIntro for Player 1 (Red)
Dialog - Hide DialogIntro for Player 2 (Blue)
Player Group - Add Player 1 (Red) to Slayers
Player Group - Add Player 2 (Blue) to Slayers
Wait 0.10 seconds
Cinematic - Turn cinematic mode On for (All players)
Cinematic - Disable user control for (All players)
Wait 0.10 seconds
Trigger - Run Story <gen> (ignoring conditions)
Else - Actions
Dialog - Hide DialogIntro for Player 1 (Red)
Dialog - Hide DialogIntro for Player 2 (Blue)
Trigger - Run Intro <gen> (ignoring conditions)
It should work... But it just doesnt. It runs the intro without reguard for anything...