• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Something's Wrong in Here

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
Something's Wrong in Here. The action
  • Camera - Set (Player((Integer A)))'s camera Rotation to -270.00 over 3.00 seconds
doesn't responds in Phase 3 and 4. Plz help me fix it, I'm doing this all day xD, cant figure out why

  • Camera Settings
    • Events
      • Time - FinalWave_Timer[2] expires
    • Conditions
    • Actions
      • -------- ---------------------- Setting Variables ---------------------- --------
      • Set FinalWave_Point[1] = (Center of Player 1 Respawn Point <gen>)
      • Set FinalWave_Point[2] = (Center of Player 2 Respawn Point <gen>)
      • Set FinalWave_Point[3] = (Center of Player 3 Respawn Point <gen>)
      • Set FinalWave_Point[4] = (Center of Player 4 Respawn Point <gen>)
      • Set FinalWave_Point[5] = (Center of Player 5 Respawn Point <gen>)
      • Set FinalWave_Point[6] = (Center of Player 6 Respawn Point <gen>)
      • Set FinalWave_Point[7] = (Center of Player 7 Respawn Point <gen>)
      • Set FinalWave_Point[8] = (Center of Player 8 Respawn Point <gen>)
      • -------- ---------------------------------------------- Pausing the Creeps ----------------------------------------- --------
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an ally of Player 12 (Brown)) Equal to True
            • Then - Actions
              • Unit - Make (Picked unit) Invulnerable
              • Unit - Pause (Picked unit)
            • Else - Actions
      • -------- -------------------------------------------- Starting With Camera Settings --------------------------------------------- --------
      • -------- -------------------------------------------- Phase 1 --------------------------------------------- --------
      • Wait 5.00 seconds
      • Set TempPoint = (Center of Final Wave Hero 1 <gen>)
      • Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 0.50 seconds
      • Cinematic - Disable user control for (All players)
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Set (Player((Integer A)))'s camera Distance to target to 1500.00 over 3.00 seconds
          • Camera - Pan camera for (Player((Integer A))) to TempPoint over 3.00 seconds
          • Camera - Set (Player((Integer A)))'s camera Angle of attack to (Angle of attack of Final Wave Hero 1 Camera <gen>) over 2.00 seconds
          • Camera - Set (Player((Integer A)))'s camera Rotation to 180.00 over 3.00 seconds
      • -------- -------------------------------------------- Creating first Hero --------------------------------------------- --------
      • Wait 5.00 seconds
      • Environment - Create a 5.00 second Depression ripple deformation at TempPoint with starting radius 500.00, ending radius 500.00, and depth 128.00, using 1.00 second ripples spaced 512.00 apart
      • Unit - Create 1 Unbroken for Player 12 (Brown) at TempPoint facing 360.00 degrees
      • Set FinalWave_Unit[1] = (Last created unit)
      • Hero - Learn skill for (Last created unit): Bash
      • Unit - Set level of Bash for (Last created unit) to 2
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Hero - Modify Strength of (Last created unit): Add 12500
      • Hero - Modify Agility of (Last created unit): Add 12500
      • Hero - Modify Intelligence of (Last created unit): Add 12500
      • Unit - Pause (Last created unit)
      • Wait 2.00 seconds
      • Cinematic - Send transmission to (All players) from a Player 12 (Brown) Unbroken named Unbroken at TempPoint: Play No sound and display |c00FFCD00Your prec.... Modify duration: Add 0.00 seconds and Wait
      • Wait 5.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to (Center of Castle <gen>) over 3.00 seconds
      • Custom script: call RemoveLocation(udg_TempPoint)
      • -------- -------------------------------------------- Phase 2 --------------------------------------------- --------
      • Wait 5.00 seconds
      • Set TempPoint = (Center of Final Wave Hero 2 <gen>)
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Set (Player((Integer A)))'s camera Rotation to -270.00 over 2.00 seconds
      • Wait 3.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to TempPoint over 3.00 seconds
      • -------- -------------------------------------------- Creating second Hero --------------------------------------------- --------
      • Wait 5.00 seconds
      • Environment - Create a 5.00 second Depression ripple deformation at TempPoint with starting radius 500.00, ending radius 500.00, and depth 128.00, using 1.00 second ripples spaced 512.00 apart
      • Unit - Create 1 Ogre Idiot for Player 12 (Brown) at TempPoint facing 270.00 degrees
      • Set FinalWave_Unit[2] = (Last created unit)
      • Hero - Learn skill for (Last created unit): Thorns Aura
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Hero - Modify Strength of (Last created unit): Add 12500
      • Hero - Modify Agility of (Last created unit): Add 12500
      • Hero - Modify Intelligence of (Last created unit): Add 12500
      • Unit - Pause (Last created unit)
      • Wait 2.00 seconds
      • Cinematic - Send transmission to (All players) from a Player 12 (Brown) Ogre Idiot named Ogre Idiot at TempPoint: Play No sound and display |c00FFCD00I will de.... Modify duration: Add 0.00 seconds and Wait
      • Wait 5.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to (Center of Castle <gen>) over 3.00 seconds
      • Custom script: call RemoveLocation(udg_TempPoint)
      • -------- -------------------------------------------- Phase 3 --------------------------------------------- --------
      • Wait 5.00 seconds
      • Set TempPoint = (Center of Final Wave Hero 3 <gen>)
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Set (Player((Integer A)))'s camera Rotation to -270.00 over 2.00 seconds
      • Wait 3.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to TempPoint over 3.00 seconds
      • -------- -------------------------------------------- Creating third Hero --------------------------------------------- --------
      • Wait 5.00 seconds
      • Environment - Create a 5.00 second Depression ripple deformation at TempPoint with starting radius 500.00, ending radius 500.00, and depth 128.00, using 1.00 second ripples spaced 512.00 apart
      • Unit - Create 1 Skeleton Singer xD for Player 12 (Brown) at TempPoint facing 180.00 degrees
      • Set FinalWave_Unit[3] = (Last created unit)
      • Hero - Learn skill for (Last created unit): Vampiric Aura
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Hero - Modify Strength of (Last created unit): Add 12500
      • Hero - Modify Agility of (Last created unit): Add 12500
      • Hero - Modify Intelligence of (Last created unit): Add 12500
      • Unit - Pause (Last created unit)
      • Wait 2.00 seconds
      • Cinematic - Send transmission to (All players) from a Player 12 (Brown) Skeleton Singer xD named Skeleton Singer at TempPoint: Play No sound and display |c00FFCD00You are a.... Modify duration: Add 0.00 seconds and Wait
      • Wait 5.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to (Center of Castle <gen>) over 3.00 seconds
      • Custom script: call RemoveLocation(udg_TempPoint)
      • -------- -------------------------------------------- Phase 4 --------------------------------------------- --------
      • Wait 5.00 seconds
      • Set TempPoint = (Center of Final Wave Hero 4 <gen>)
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Set (Player((Integer A)))'s camera Rotation to -270.00 over 2.00 seconds
      • Wait 3.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to TempPoint over 3.00 seconds
      • -------- -------------------------------------------- Creating fourth Hero --------------------------------------------- --------
      • Wait 5.00 seconds
      • Environment - Create a 5.00 second Depression ripple deformation at TempPoint with starting radius 500.00, ending radius 500.00, and depth 128.00, using 1.00 second ripples spaced 512.00 apart
      • Unit - Create 1 Shade Alike for Player 12 (Brown) at TempPoint facing 90.00 degrees
      • Set FinalWave_Unit[4] = (Last created unit)
      • Hero - Learn skill for (Last created unit): Evasion
      • Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Hero - Modify Strength of (Last created unit): Add 12500
      • Hero - Modify Agility of (Last created unit): Add 12500
      • Hero - Modify Intelligence of (Last created unit): Add 12500
      • Unit - Pause (Last created unit)
      • Wait 2.00 seconds
      • Cinematic - Send transmission to (All players) from a Player 12 (Brown) Shade Alike named Shade Alike at TempPoint: Play No sound and display |c00FFCD00I will to.... Modify duration: Add 0.00 seconds and Wait
      • Wait 5.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to (Center of Castle <gen>) over 3.00 seconds
      • Custom script: call RemoveLocation(udg_TempPoint)
      • -------- ------------------------------------------------------------------------- --------
      • Wait 5.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Rotate camera 180.00 degrees around (Center of Castle <gen>) for (Player((Integer A))) over 3.00 seconds
      • Wait 3.50 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Reset camera for (Player((Integer A))) to standard game-view over 3.00 seconds
      • Wait 4.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to FinalWave_Point[(Integer A)] over 3.00 seconds
      • Wait 4.00 seconds
      • Cinematic - Send transmission to (All players) from a Player 12 (Brown) Devildare named DevilDare at (Center of Castle <gen>): Play No sound and display |c00FFCD00So, you d.... Modify duration: Add 0.00 seconds and Wait
      • Wait 7.00 seconds
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • Camera - Reset camera for (Player((Integer A))) to standard game-view over 2.00 seconds
      • Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 0.50 seconds
      • Cinematic - Enable user control for (All players)
      • -------- -------------------------------------------- Unpausing the Units --------------------------------------------- --------
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in Frozen Throne Shop <gen> matching (((Matching unit) is A structure) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Unpause (Picked unit)
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in Castle <gen> matching (((Matching unit) is A structure) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Unpause (Picked unit)
          • Unit - Make (Picked unit) Vulnerable
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in Starting Area Visibility <gen> matching ((((Matching unit) belongs to an ally of Player 11 (Dark Green)) Equal to True) and (((Matching unit) is A structure) Equal to False))) and do (Actions)
        • Loop - Actions
          • Unit - Unpause (Picked unit)
          • Unit - Make (Picked unit) Vulnerable
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in Starting Area Visibility <gen> matching (((Matching unit) belongs to an enemy of Player 11 (Dark Green)) Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Unpause (Picked unit)
          • Unit - Make (Picked unit) Vulnerable
          • Unit - Order (Picked unit) to Attack-Move To (Center of Castle <gen>)
      • -------- ---------------------- Clean Leaks ---------------------- --------
      • Custom script: call RemoveLocation(udg_FinalWave_Point[1])
      • Custom script: call RemoveLocation(udg_FinalWave_Point[2])
      • Custom script: call RemoveLocation(udg_FinalWave_Point[3])
      • Custom script: call RemoveLocation(udg_FinalWave_Point[4])
      • Custom script: call RemoveLocation(udg_FinalWave_Point[5])
      • Custom script: call RemoveLocation(udg_FinalWave_Point[6])
      • Custom script: call RemoveLocation(udg_FinalWave_Point[7])
      • Custom script: call RemoveLocation(udg_FinalWave_Point[8])
      • Trigger - Turn on Creep Death Detection <gen>
 
Last edited:
Level 16
Joined
Mar 27, 2011
Messages
1,349
Why do it that way? I would do this:

  • Set PlayerGroup = all players
  • Player Group - Pick all players in PlayerGroup and do actions
    • loop actions
    • Camera - Set Picked Player's camera Distance to target to 1500.00 over 3.00 seconds
    • Camera - Pan camera for Picked Player to TempPoint over 3.00 seconds
    • Camera - Set Picked Player's camera Angle of attack to (Angle of attack of Final Wave Hero 1 Camera <gen>) over 2.00 seconds
    • Camera - Set Picked Player's camera Rotation to 180.00 over 3.00 seconds
  • Custom script: call DestroyForce (udg_PlayerGroup)
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Why do it that way? I would do this:

  • Set PlayerGroup = all players
  • Player Group - Pick all players in PlayerGroup and do actions
    • loop actions
    • Camera - Set Picked Player's camera Distance to target to 1500.00 over 3.00 seconds
    • Camera - Pan camera for Picked Player to TempPoint over 3.00 seconds
    • Camera - Set Picked Player's camera Angle of attack to (Angle of attack of Final Wave Hero 1 Camera <gen>) over 2.00 seconds
    • Camera - Set Picked Player's camera Rotation to 180.00 over 3.00 seconds
  • Custom script: call DestroyForce (udg_PlayerGroup)
"All Players" is not a leak!
Never remove it, because it will mess everything up later (you're actually removing the group "All Players" so you can never access it in the future again).
Also, it's actually the exact same thing, just with a player group instead of a loop.


Can you put a message there to see if the loop is actually running and whether Integer A is correct? (Though it should be, Warcraft can't run 2 things at the same time).
The only thing I'm a bit annoyed by is that you never remove the leak "TempPoint" at the end.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Please do not multi-post (you could've easily covered all those messages in just 1 post).

I just tried doing something like this myself, the action "Rotate around point" locks the camera in place, making it unable to set any field values until you pan the camera again.
The fix is actually really easy, except that you made it a bit harder because you set TempPoint at places where you shouldn't set it.

  • For each (Integer A) from 1 to 8, do (Actions)
    • Loop - Actions
      • Camera - Pan camera for (Player((Integer A))) to TempPoint over 0.00 seconds
      • Camera - Set (Player((Integer A)))'s camera Rotation to -270.00 over 3.00 seconds
The "TempPoint" in this action is the TempPoint that was used in the previous rotation (rotate 360 degrees).
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Well, basically the action
  • Camera - Rotate camera 360.00 degrees around TempPoint for (Player((Integer A))) over 5.00 seconds
messes up the action you were having problems with.

To reset the camera (so it can rotate again), you add the action
  • Camera - Pan camera for (Player((Integer A))) to TempPoint over 0.00 seconds
In front of your failing action (as seen in my previous post).
The "TempPoint" here is the same location as in the action at the top of this post.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
but why then it doesn't screwes it at the first 2 rotations?
There's actually only 1 rotation before that, but if you count in all other rotations: the one that's causing trouble is the only rotation where you did not use "Pan camera" before changing a field value.
For all the other rotations, you pan the camera after the rotation.
 
Level 18
Joined
May 11, 2012
Messages
2,103
ahhh, ok then, thanks for help :D, rep ofc

I completely lost myself again and it's not working again. I updated the trigger in my first post, check it again and see what's wrong now. And I removed the 360 rotation.
 
Last edited:
Status
Not open for further replies.
Top