- Joined
- Dec 16, 2017
- Messages
- 416
Hello guys, i am storing into a variable the heroes created in the choosing trigger and also the players of the heroes, because i need to use them again at the end of the game for some cinematics and teleports, but for some reason it takes just the first picked hero and player, not all of them, how can i fix this?
If i use numbers from 1 to 5(i have only 5 players), it doesn't do anything in game, the cinematics run without a hero portrait or player name.
I use 1.28.5 Wc3 Patch
This is the hero picking trigger:
If i use numbers from 1 to 5(i have only 5 players), it doesn't do anything in game, the cinematics run without a hero portrait or player name.
I use 1.28.5 Wc3 Patch
This is the hero picking trigger:
-
Hero Selection
-
Events
-
Unit - A unit Sells a unit
-
-
Conditions
-
Actions
-
For each (Integer IntA) from 1 to 47, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Sold unit)) Equal to HeroType[IntA]
-
-
Then - Actions
-
Set BuyingU = (Buying unit)
-
Set SoldU = (Sold unit)
-
Set HeroSpawn = (Center of RegionHeroSpawn <gen>)
-
Set MaxPlayers = (Number of players in (All players))
-
Set PlayerInteger = (Player number of (Owner of (Buying unit)))
-
Set Player[PlayerInteger] = (Owner of (Buying unit))
-
Set Hero[PlayerInteger] = (Sold unit)
-
Unit Group - Add Hero[PlayerInteger] to ArenaHeroes
-
Unit - Explode BuyingU
-
Unit - Move SoldU instantly to HeroSpawn
-
Camera - Pan camera for (Owner of SoldU) to HeroSpawn over 0.05 seconds
-
Selection - Select SoldU for (Owner of SoldU)
-
Unit - Make SoldU face 270.00 over 0.00 seconds
-
Special Effect - Create a special effect at (Position of SoldU) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
For each (Integer IntB) from 1 to 47, do (Actions)
-
Loop - Actions
-
For each (Integer CurrentPlayer) from 1 to MaxPlayers, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HeroClass[IntA] Equal to HeroClass[IntB]
-
-
Then - Actions
-
Player - Make HeroType[IntB] Unavailable for training/construction by (Player(CurrentPlayer))
-
Unit - Change ownership of ClassHall[HeroClass[IntB]] to (Owner of Hero[PlayerInteger]) and Change color
-
-
Else - Actions
-
-
-
-
-
-
Game - Display to (All players) the text: ((|c00996600 + (Name of (Owner of (Buying unit)))) + (|r + ( |c0000cc00decided to conquer the legion forces with|r + (|c00990000 + ((Name of (Sold unit)) + |r)))))
-
Custom script: call RemoveLocation(udg_HeroSpawn)
-
-
Else - Actions
-
-
-
-
-
-
Victory Cutscene P2
-
Events
-
Unit - A unit enters VICCINGUARDIANMOVE <gen>
-
-
Conditions
-
(Entering unit) Equal to GuardianofHyajl
-
-
Actions
-
Wait 0.70 seconds
-
Unit - Make GuardianofHyajl face 90.00 over 1.00 seconds
-
Unit - Order Hero[PlayerInteger] to Move To (Center of CinematicEndingMove[1])
-
Unit - Order Hero[PlayerInteger] to Move To (Center of CinematicEndingMove[2])
-
Unit - Order Hero[PlayerInteger] to Move To (Center of CinematicEndingMove[3])
-
Unit - Order Hero[PlayerInteger] to Move To (Center of CinematicEndingMove[4])
-
Unit - Order Hero[PlayerInteger] to Move To (Center of CinematicEndingMove[5])
-
Cinematic - Send transmission to (All players) from GuardianofHyajl named The Guardian of Hyj...: Play No sound and display Heroes, the world o.... Modify duration: Set to 7.00 seconds and Wait
-
Unit Group - Pick every unit in ArenaHeroes and do (Actions)
-
Loop - Actions
-
Unit - Make (Picked unit) face GuardianofHyajl over 0.00 seconds
-
-
-
Unit - Make GuardianofHyajl Vulnerable
-
Cinematic - Send transmission to (All players) from Hero[PlayerInteger] named ((Name of Player[PlayerInteger]) + (, the + (Name of Hero[PlayerInteger]))): Play No sound and display Aid you? We only ev.... Modify duration: Set to 9.00 seconds and Wait
-
Unit - Order Hero[PlayerInteger] to Attack GuardianofHyajl
-
-
-
Victory Cutscene P3
-
Events
-
Unit - A unit owned by Player 11 (Dark Green) Is attacked
-
-
Conditions
-
(Attacked unit) Equal to GuardianofHyajl
-
-
Actions
-
Unit - Add a 2.00 second Generic expiration timer to Hero Chooser 0073 <gen>
-
Unit - Add a 2.00 second Generic expiration timer to Hero Chooser 0074 <gen>
-
Unit - Add a 2.00 second Generic expiration timer to Hero Chooser 0075 <gen>
-
Unit - Add a 2.00 second Generic expiration timer to Hero Chooser 0076 <gen>
-
Unit - Add a 2.00 second Generic expiration timer to Hero Chooser 0077 <gen>
-
Unit - Kill GuardianofHyajl
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Killing unit) Equal to Hero[PlayerInteger]
-
-
Then - Actions
-
Unit - Make (Killing unit) face 45.00 over 1.00 seconds
-
Cinematic - Send transmission to (All players) from Hero[PlayerInteger] named ((Name of Player[PlayerInteger]) + (, the + (Name of Hero[PlayerInteger]))): Play No sound and display With him dead, we c.... Modify duration: Set to 6.00 seconds and Wait
-
-
Else - Actions
-
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Cinematic - Send transmission to (All players) from Hero[PlayerInteger] named ((Name of Player[PlayerInteger]) + (, the + (Name of Hero[PlayerInteger]))): Play No sound and display Together?Ha..Enough.... Modify duration: Set to 7.00 seconds and Wait
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Unit - Make Hero[PlayerInteger] face Hero[PlayerInteger] over 0.50 seconds
-
Cinematic - Fade out over 2.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
-
Trigger - Turn off Enter Pick Region <gen>
-
Wait 2.00 seconds
-
Camera - Reset camera for Player 1 (Red) to standard game-view over 0.00 seconds
-
Camera - Reset camera for Player 2 (Blue) to standard game-view over 0.00 seconds
-
Camera - Reset camera for Player 3 (Teal) to standard game-view over 0.00 seconds
-
Camera - Reset camera for Player 4 (Purple) to standard game-view over 0.00 seconds
-
Camera - Reset camera for Player 5 (Yellow) to standard game-view over 0.00 seconds
-
Camera - Pan camera for Player[PlayerInteger] to (Center of CinematicArenaPosition[1]) over 0.10 seconds
-
Camera - Pan camera for Player[PlayerInteger] to (Center of CinematicArenaPosition[2]) over 0.10 seconds
-
Camera - Pan camera for Player[PlayerInteger] to (Center of CinematicArenaPosition[3]) over 0.10 seconds
-
Camera - Pan camera for Player[PlayerInteger] to (Center of CinematicArenaPosition[4]) over 0.10 seconds
-
Camera - Pan camera for Player[PlayerInteger] to (Center of CinematicArenaPosition[5]) over 0.10 seconds
-
Sound - Play PursuitTheme <gen>
-
Cinematic - Turn cinematic mode Off for (All players)
-
Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 1.00 seconds
-
Cinematic - Enable user control for (All players)
-
Cinematic - Fade in over 1.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
-
Player - Make Player 1 (Red) treat Player 2 (Blue) as an Enemy
-
Player - Make Player 1 (Red) treat Player 3 (Teal) as an Enemy
-
Player - Make Player 1 (Red) treat Player 4 (Purple) as an Enemy
-
Player - Make Player 1 (Red) treat Player 5 (Yellow) as an Enemy
-
Player - Make Player 2 (Blue) treat Player 1 (Red) as an Enemy
-
Player - Make Player 2 (Blue) treat Player 3 (Teal) as an Enemy
-
Player - Make Player 2 (Blue) treat Player 4 (Purple) as an Enemy
-
Player - Make Player 2 (Blue) treat Player 5 (Yellow) as an Enemy
-
Player - Make Player 3 (Teal) treat Player 1 (Red) as an Enemy
-
Player - Make Player 3 (Teal) treat Player 2 (Blue) as an Enemy
-
Player - Make Player 3 (Teal) treat Player 4 (Purple) as an Enemy
-
Player - Make Player 3 (Teal) treat Player 5 (Yellow) as an Enemy
-
Player - Make Player 4 (Purple) treat Player 1 (Red) as an Enemy
-
Player - Make Player 4 (Purple) treat Player 2 (Blue) as an Enemy
-
Player - Make Player 4 (Purple) treat Player 3 (Teal) as an Enemy
-
Player - Make Player 4 (Purple) treat Player 5 (Yellow) as an Enemy
-
Player - Make Player 5 (Yellow) treat Player 1 (Red) as an Enemy
-
Player - Make Player 5 (Yellow) treat Player 2 (Blue) as an Enemy
-
Player - Make Player 5 (Yellow) treat Player 3 (Teal) as an Enemy
-
Player - Make Player 5 (Yellow) treat Player 4 (Purple) as an Enemy
-
Player - Make Player 7 (Green) treat Player 1 (Red) as an Enemy
-
Player - Make Player 7 (Green) treat Player 2 (Blue) as an Enemy
-
Player - Make Player 7 (Green) treat Player 3 (Teal) as an Enemy
-
Player - Make Player 7 (Green) treat Player 4 (Purple) as an Enemy
-
Player - Make Player 7 (Green) treat Player 5 (Yellow) as an Enemy
-
Unit - Move Hero[PlayerInteger] instantly to (Center of CinematicArenaPosition[1])
-
Unit - Move Hero[PlayerInteger] instantly to (Center of CinematicArenaPosition[2])
-
Unit - Move Hero[PlayerInteger] instantly to (Center of CinematicArenaPosition[3])
-
Unit - Move Hero[PlayerInteger] instantly to (Center of CinematicArenaPosition[4])
-
Unit - Move Hero[PlayerInteger] instantly to (Center of CinematicArenaPosition[5])
-
Unit Group - Pick every unit in ArenaHeroes and do (Actions)
-
Loop - Actions
-
Unit - Set mana of (Picked unit) to 100.00%
-
Unit - Set life of (Picked unit) to 100.00%
-
Visibility - Create an initially Enabled visibility modifier for (Owner of (Picked unit)) emitting Visibility across WiderArena <gen>
-
-
-
Unit - Create 1 Damage Tier Set Level 1 for Player 7 (Green) at (Center of RegionArenaDamage <gen>) facing Default building facing degrees
-
Set Meteor1 = (Last created unit)
-
Hero - Learn skill for Meteor1: Inferno (Level 1 Damage Tier Set)
-
Unit - Create 1 Flamestrike for Player 7 (Green) at (Center of RegionArenaDamage <gen>) facing Default building facing degrees
-
Set Flamestrike1 = (Last created unit)
-
Hero - Learn skill for Flamestrike1: Flame Strike (Abyssius)
-
Unit - Create 1 Flamestrike for Player 7 (Green) at (Center of RegionArenaDamage <gen>) facing Default building facing degrees
-
Set Flamestrike2 = (Last created unit)
-
Hero - Learn skill for Flamestrike2: Flame Strike (Abyssius)
-
Trigger - Turn on Flamestrike <gen>
-
Trigger - Turn on Inferno <gen>
-
Trigger - Turn on Hero Die Arena <gen>
-
-