- Joined
- Feb 17, 2007
- Messages
- 368
This is the hero select system I am using:
Left Arrow
Left Arrow
-
Actions
- Set Hero_Selector[(Player number of (Triggering player))] = (Hero_Selector[(Player number of (Triggering player))] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- BossPath[(Player number of (Triggering player))] Equal to 1
-
Then - Actions
-
For each (Integer Path1) from 1 to 7, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Hero_Selector[(Player number of (Triggering player))] Equal to Path1
-
Then - Actions
- Set HeroSelectInfo = (Player group((Triggering player)))
- Selection - Select Hero_For_Selection[Path1] for (Triggering player)
- Camera - Lock camera target for (Triggering player) to Hero_For_Selection[Path1], offset by (0.00, 0.00) using Default rotation
- Set Current_Hero[(Player number of (Triggering player))] = (Unit-type of Hero_For_Selection[Path1])
- Custom script: call DestroyForce(udg_HeroSelectInfo)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Hero_Selector[(Player number of (Triggering player))] Equal to 0
-
Then - Actions
- Set HeroSelectInfo = (Player group((Triggering player)))
- Camera - Lock camera target for (Triggering player) to Hero_For_Selection[8], offset by (0.00, 0.00) using Default rotation
- Selection - Select Krillin 0003 <gen> for (Triggering player)
- Set Hero_Selector[(Player number of (Triggering player))] = 8
- Set Current_Hero[(Player number of (Triggering player))] = Krillin
- Custom script: call DestroyForce(udg_HeroSelectInfo)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer Path1) from 1 to 7, do (Actions)
- Else - Actions
-
If - Conditions
-
Actions
- Set Hero_Selector[(Player number of (Triggering player))] = (Hero_Selector[(Player number of (Triggering player))] + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- BossPath[(Player number of (Triggering player))] Equal to 1
-
Then - Actions
-
For each (Integer Path1) from 1 to 8, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Hero_Selector[(Player number of (Triggering player))] Equal to Path1
-
Then - Actions
- Set HeroSelectInfo = (Player group((Triggering player)))
- Camera - Lock camera target for (Triggering player) to Hero_For_Selection[Path1], offset by (0.00, 0.00) using Default rotation
- Selection - Select Hero_For_Selection[Path1] for (Triggering player)
- Set Current_Hero[(Player number of (Triggering player))] = (Unit-type of Hero_For_Selection[Path1])
- Custom script: call DestroyForce(udg_HeroSelectInfo)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Hero_Selector[(Player number of (Triggering player))] Equal to 9
-
Then - Actions
- Set HeroSelectInfo = (Player group((Triggering player)))
- Camera - Lock camera target for (Triggering player) to Hero_For_Selection[1], offset by (0.00, 0.00) using Default rotation
- Selection - Select Goku 0012 <gen> for (Triggering player)
- Set Hero_Selector[(Player number of (Triggering player))] = 1
- Set Current_Hero[(Player number of (Triggering player))] = Goku
- Custom script: call DestroyForce(udg_HeroSelectInfo)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer Path1) from 1 to 8, do (Actions)
- Else - Actions
-
If - Conditions
- Set Hero_For_Selection[1] = Goku 0012 <gen>
- Set Hero_For_Selection[2] = Gohan 0083 <gen>
- Set Hero_For_Selection[3] = Vegeta 0014 <gen>
- Set Picking_Hero[(Player number of Player 1 (Red))] = True
- Player - Player 1 (Red) skips a cinematic sequence
-
Conditions
- Hero_Selected[(Player number of (Triggering player))] Equal to False
- Picking_Hero[(Player number of (Triggering player))] Equal to True