- Joined
- Feb 25, 2005
- Messages
- 230
EDIT - Maybe this belongs in the Triggers & Scripts section.
Hullo!
I'm making my first cinematic. I'm having some problems though, so please take a look at this.
The cinema is supposed to show all heros being summond in the labyrinth (in the beginning of the game, as you may have guessed ). To do this, I'm using a 8-times-loop, 1 for each player. Then I'm checking if that player is playing, and of course not using that condition while testplaying. And if player slot is used by a player I'm showing that hero being summoned. That is how I want it to work.
The problem is that only the first Hero (for player 1, red) is shown.
Note that the cinematic does work! It is just that it seem like the "For each (Integer A) from 1 to 8, do (Actions)" does not jump to the next step.
Here is da trigger;
Appreciate any kind of help or ideas of how to solve this!
Yours truly
Lingon
Hullo!
I'm making my first cinematic. I'm having some problems though, so please take a look at this.
The cinema is supposed to show all heros being summond in the labyrinth (in the beginning of the game, as you may have guessed ). To do this, I'm using a 8-times-loop, 1 for each player. Then I'm checking if that player is playing, and of course not using that condition while testplaying. And if player slot is used by a player I'm showing that hero being summoned. That is how I want it to work.
The problem is that only the first Hero (for player 1, red) is shown.
Note that the cinematic does work! It is just that it seem like the "For each (Integer A) from 1 to 8, do (Actions)" does not jump to the next step.
Here is da trigger;
-
Cinema
- Events
- Conditions
-
Actions
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
-
Then - Actions
- Set tempGroup = (All players)
-
Player Group - Pick every player in tempGroup and do (Actions)
-
Loop - Actions
- Camera - Apply Cameras[(Integer A)] for (Picked player) over 0.00 seconds
-
Loop - Actions
- Custom script: call DestroyForce(udg_tempGroup)
- Wait 1.00 seconds
- Set tempPoint[1] = (Center of startpoints[(Integer A)])
- Set tempPoint[2] = (Position of Loka Brunn 0000 <gen>)
- Unit - Create 1 Hellcaller for (Player((Integer A))) at tempPoint[1] facing tempPoint[2]
- Set Hero[(Integer A)] = (Last created unit)
- Custom script: call RemoveLocation(udg_tempPoint[1])
- Custom script: call RemoveLocation(udg_tempPoint[2])
- Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 1.50 seconds
- Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Wait 3.00 seconds
- Trigger - Run Start <gen> (checking conditions)
-
For each (Integer A) from 1 to 8, do (Actions)
Appreciate any kind of help or ideas of how to solve this!
Yours truly
Lingon
Last edited: