Dipski said:
first of all xphere, your maps dont work, it says it cant run trigger function returnunit b/c it's not in trigger database
Yes, you are right, all my maps have been done under WEU and if you try to open it under WE, it crashes.
I will do some minor changes to it so you can open it under WE
Basically, this is the idea:
Split every cinematic in no less than three triggers:
- Intro: Set the unit cinematics, the camera, the fading...
- Action: Where all the action runs
- Outro: Eerase all created units for cinematic, reset camera, reset fading...
Enqueue all these triggers in the Trigger Queue.
Have a boolean variable b_isSkippedCinematic and a trigger variable trg_CurrentCinematic.
When the cinematic begins, enable this trigger
Code:
Events
Player - Cinematic skipped
Conditions
Actions
set b_isSkippedCinematic = true
Remove (trg_CurrentCinematic) from Trigger Queue
And in the Action part of your cinematic do something like
Code:
Events
Conditions
Actions
set b_isSkippedCinematic = false
set trg_CurrentCinematic = This trigger
(... Do some action for your cinematic... )
If (b_isSkippedCinematic is true) then (Skip remaining actions) Else (Do nothing)
(... Do some more actions... )
If (b_isSkippedCinematic is true) then (Skip remaining actions) Else (Do nothing)
(... Do some more actions... )
Remove (This trigger) from Trigger Queue
Remember to put a "Remove (This trigger) from Trigger Queue" statement at the end of every trigger you enqueue.
Hope it help