SwedishChef
New Member
- Reaction score
- 32
Okey I gotta go in a second so I will race through my explanation. I just want a trigger where the camera pans to a location and then gives a hint about an unit. But it works in one trigger but not in the other.
The one which don't work:
The one which works:
So what is the problem?
The one which don't work:
Trigger:
- Teleport From Ready 2
- Events
- Unit - A unit enters Ready <gen>
- Conditions
- Move_ok Equal to False
- Actions
- Set MyUnitGroup = (Units in Ready <gen>)
- Set MyLocation = (Center of Item Area <gen>)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in (Units in Ready <gen>)) Equal to (Number of players in All_Players)
- Then - Actions
- Set Move_ok = True
- Countdown Timer - Pause ChooseHero
- Countdown Timer - Destroy (Last created timer window)
- Trigger - Turn off Timer Expires <gen>
- Unit Group - Pick every unit in MyUnitGroup and do (Actions)
- Loop - Actions
- Set Has_Moved[(Player number of (Owner of (Picked unit)))] = True
- Multiboard - Set the text for (Last created multiboard) item in column 1, row Multiboard_Spots[(Player number of (Owner of (Picked unit)))] to (Player_Colors[(Player number of (Owner of (Picked unit)))] + ((Name of (Owner of (Picked unit))) + |r))
- Hero - Modify unspent skill points of (Picked unit): Set to 1 points
- Player - Set (Owner of (Picked unit)) Current gold to 350
- Unit - Move (Picked unit) instantly to MyLocation
- Camera - Pan camera for (Owner of (Picked unit)) to MyLocation over 0.00 seconds
- Special Effect - Create a special effect at MyLocation using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Create 1 Stash (dummy) for (Owner of (Picked unit)) at MyLocation facing Default building facing degrees
- Unit - Remove HeroChooseDummy[(Player number of (Owner of (Picked unit)))] from the game
- Custom script: call RemoveLocation(udg_MyLocation)
- Set MyLocation = (Position of Stash[(Player number of (Owner of (Picked unit)))])
- Camera - Pan camera for (Owner of (Picked unit)) to MyLocation over 1.00 seconds
- Custom script: call RemoveLocation(udg_MyLocation)
- Loop - Actions
- Quest - Display to (All players) the Quest Update message: This is your stash....
- For each (Integer A) from 1 to 11, do (Floating Text - Destroy Text[(Integer A)])
- Trigger - Run New Round <gen> (checking conditions)
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Custom script: call RemoveLocation(udg_MyLocation)
- Custom script: call DestroyGroup(udg_MyUnitGroup)
- Game - Display to (All players) the text: 2
- Events
The one which works:
Trigger:
- Teleport From Ready
- Events
- Unit - A unit enters Ready <gen>
- Conditions
- Move_ok Equal to True
- Has_Moved[(Player number of (Owner of (Triggering unit)))] Equal to False
- Actions
- Set MyLocation = (Center of Item Area <gen>)
- Set Has_Moved[(Player number of (Owner of (Entering unit)))] = True
- Multiboard - Set the text for (Last created multiboard) item in column 1, row Multiboard_Spots[(Player number of (Owner of (Entering unit)))] to (Player_Colors[(Player number of (Owner of (Entering unit)))] + ((Name of (Owner of (Entering unit))) + |r))
- Player - Set (Owner of (Entering unit)) Current gold to 350
- Hero - Modify unspent skill points of Hero[(Player number of (Owner of (Entering unit)))]: Set to 1 points
- Unit - Move (Entering unit) instantly to MyLocation
- Unit - Create 1 Stash (dummy) for (Owner of (Triggering unit)) at MyLocation facing Default building facing degrees
- Camera - Pan camera for (Owner of (Entering unit)) to MyLocation over 0.00 seconds
- Special Effect - Create a special effect at MyLocation using Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Remove HeroChooseDummy[(Player number of (Owner of (Triggering unit)))] from the game
- Custom script: call RemoveLocation(udg_MyLocation)
- Set MyLocation = (Position of Stash[(Player number of (Owner of (Triggering unit)))])
- Camera - Pan camera for (Owner of (Triggering unit)) to MyLocation over 1.00 seconds
- Quest - Display to (Player group((Owner of (Triggering unit)))) the Quest Update message: This is your stash....
- Custom script: call RemoveLocation(udg_MyLocation)
- Custom script: call DestroyGroup(udg_MyUnitGroup)
- Game - Display to (All players) the text: 1
- Events
So what is the problem?