• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Boss fight (fixed)

Status
Not open for further replies.
Level 3
Joined
Jan 3, 2022
Messages
7
I want to create many boss fights in my map. It's my first time doing this and the majority of triggers don't work as I want. The fight have four phases during which he uses spells and speaks. When the boss have a certain amount of life, I pause him and spawn minions.
Now I have many problems with it. First, the boss don't say his lines. Second, when all the minions die, the next phase dont launch. Last, the boss don't use his abilities. I watched a lot of tutorials everywhere but I couldn't find anything usefull.
I'm not really good with the world editor so many triggers can not be optimized.
Thank you for your help.

Yeah, clearly not optimized
  • start fight first time
    • Events
      • Unit - A unit enters bandit boss fight start <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Trigger - Turn off (This trigger)
      • Quest - Destroy Minimap Icon for iconBanditBossQuest
      • Unit - Pause Swindling Milt 0116 <gen>
      • Unit - Pause Lord Othmar Garitos 0006 <gen>
      • Cinematic - Turn cinematic mode On for (All players)
      • Unit - Move Lord Othmar Garitos 0006 <gen> instantly to (Center of bandit boss fight garithos <gen>)
      • Camera - Apply bandit boss fight cinematic 1 <gen> for Player 1 (Red) over 0.00 seconds
      • Wait 2.00 seconds
      • Camera - Apply bandit boss fight cinematic 3 <gen> for Player 1 (Red) over 0.00 seconds
      • Cinematic - Send transmission to (All players) from Lord Othmar Garitos 0006 <gen> named Garithos: Play No sound and display Are you the leader .... Modify duration: Set to 3.40 seconds and Wait
      • Camera - Apply bandit boss fight cinematic 2 <gen> for Player 1 (Red) over 0.00 seconds
      • Cinematic - Send transmission to (All players) from Swindling Milt 0116 <gen> named Swindling Milt: Play No sound and display Yes. I am Swindling.... Modify duration: Set to 4.30 seconds and Wait
      • Camera - Apply bandit boss fight cinematic 3 <gen> for Player 1 (Red) over 0.00 seconds
      • Cinematic - Send transmission to (All players) from Lord Othmar Garitos 0006 <gen> named Garithos: Play No sound and display I don't think so.. Modify duration: Set to 1.80 seconds and Wait
      • Camera - Apply boss fight <gen> for Player 1 (Red) over 0.00 seconds
      • Unit - Unpause Swindling Milt 0116 <gen>
      • Unit - Unpause Lord Othmar Garitos 0006 <gen>
      • Cinematic - Turn cinematic mode Off for (All players)
      • Set VariableSet banditFightIsOn = Prawda
      • Trigger - Run terrain preparation <gen> (checking conditions)
      • Trigger - Turn on first phase end <gen>
      • Trigger - Turn on first phase talk <gen>
      • Trigger - Turn on unit count <gen>
      • Trigger - Turn on start fight next time <gen>
  • start fight next time
    • Events
      • Unit - A unit enters bandit boss fight start <gen>
    • Conditions
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Set VariableSet banditFightIsOn = Prawda
      • Trigger - Run terrain preparation <gen> (checking conditions)
      • Trigger - Turn on first phase end <gen>
      • Trigger - Turn on first phase talk <gen>
      • Trigger - Turn on unit count <gen>
  • first phase talk
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
      • banditFightIsOn Equal to Prawda
    • Actions
      • Set VariableSet randomNumber = (Random integer number between 1 and 7)
      • Sound - Play RandomSoundBanditFight[randomNumber]
      • Sound - Set volume of RandomSoundBanditFight[randomNumber] to 100.00%
  • first phase end
    • Events
      • Unit - Swindling Milt 0116 <gen>'s life becomes Less than or equal to 1500.00
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set VariableSet banditFightIsOn = Fałsz
      • Unit - Pause Swindling Milt 0116 <gen>
      • Unit - Make Swindling Milt 0116 <gen> Invulnerable
      • Unit - Move Swindling Milt 0116 <gen> instantly to (Center of Swindling Milt return <gen>)
      • Unit - Set life of Swindling Milt 0116 <gen> to 1500.00
      • Unit - Create 1 Bandyta for Player 21 (Coal) at (Center of bandit boss fight minions 2 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Rozbójnik for Player 21 (Coal) at (Center of bandit boss fight minions 2 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Item - Create Runa Leczenia at (Center of bandit boss fight minions 2 <gen>)
      • Unit - Create 1 Bandyta for Player 21 (Coal) at (Center of bandit boss fight minions 1 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Rozbójnik for Player 21 (Coal) at (Center of bandit boss fight minions 1 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Rozbójnik for Player 21 (Coal) at (Center of bandit boss fight minions 3 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Bandyta for Player 21 (Coal) at (Center of bandit boss fight minions 3 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Bandyta for Player 21 (Coal) at (Center of bandit boss fight minions 4 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Rozbójnik for Player 21 (Coal) at (Center of bandit boss fight minions 4 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Trigger - Turn on second phase end <gen>
      • Trigger - Turn on second phase attacks <gen>
  • unit count
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Dying unit)) Equal to Bandyta
          • (Unit-type of (Dying unit)) Equal to Mroczny czarodziej
          • (Unit-type of (Dying unit)) Equal to Rozbójnik
          • (Unit-type of (Dying unit)) Equal to Zabójca
          • (Unit-type of (Dying unit)) Equal to Łotrzyk
          • (Unit-type of (Dying unit)) Equal to Czarodziej odstępca
          • (Unit-type of (Dying unit)) Equal to Czarodziej renegat
          • (Unit-type of (Dying unit)) Equal to Czarodziej nowicjusz
          • (Unit-type of (Dying unit)) Equal to Herszt bandytów
          • (Unit-type of (Dying unit)) Equal to Egzekutor
    • Actions
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup - 1)
  • phase start
    • Events
      • Unit - A unit owned by Player 21 (Coal) Dies
    • Conditions
      • BanditsFightUnitGroup Equal to 0
    • Actions
      • Set VariableSet banditFightIsOn = Prawda
      • Unit - Unpause Swindling Milt 0116 <gen>
      • Unit - Make Swindling Milt 0116 <gen> Vulnerable
  • second phase attacks
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
      • ((Triggering unit) is A structure) Equal to Prawda
    • Actions
      • Unit - Order Swindling Milt 0116 <gen> to Undead Crypt Lord - Impale Lord Othmar Garitos 0006 <gen>
  • second phase end
    • Events
      • Unit - Swindling Milt 0116 <gen>'s life becomes Less than or equal to 1000.00
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set VariableSet banditFightIsOn = Fałsz
      • Unit - Pause Swindling Milt 0116 <gen>
      • Unit - Make Swindling Milt 0116 <gen> Invulnerable
      • Unit - Move Swindling Milt 0116 <gen> instantly to (Center of Swindling Milt return <gen>)
      • Unit - Set life of Swindling Milt 0116 <gen> to 1000.00
      • Unit - Create 1 Łotrzyk for Player 21 (Coal) at (Center of bandit boss fight minions 2 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Zabójca for Player 21 (Coal) at (Center of bandit boss fight minions 2 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Bandyta for Player 21 (Coal) at (Center of bandit boss fight minions 1 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Rozbójnik for Player 21 (Coal) at (Center of bandit boss fight minions 1 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Item - Create Runa Większego Leczenia at (Center of bandit boss fight minions 1 <gen>)
      • Unit - Create 1 Łotrzyk for Player 21 (Coal) at (Center of bandit boss fight minions 3 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Zabójca for Player 21 (Coal) at (Center of bandit boss fight minions 3 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Rozbójnik for Player 21 (Coal) at (Center of bandit boss fight minions 4 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Bandyta for Player 21 (Coal) at (Center of bandit boss fight minions 4 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Trigger - Turn on third phase attacks <gen>
      • Trigger - Turn on third phase end <gen>
  • third phase attacks
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
      • banditFightIsOn Equal to Prawda
    • Actions
      • Unit - Order Swindling Milt 0116 <gen> to Night Elf Demon Hunter - Mana Burn Lord Othmar Garitos 0006 <gen>
  • third phase end
    • Events
      • Unit - Swindling Milt 0116 <gen>'s life becomes Less than or equal to 500.00
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set VariableSet banditFightIsOn = Fałsz
      • Unit - Pause Swindling Milt 0116 <gen>
      • Unit - Make Swindling Milt 0116 <gen> Invulnerable
      • Unit - Move Swindling Milt 0116 <gen> instantly to (Center of Swindling Milt return <gen>)
      • Unit - Set life of Swindling Milt 0116 <gen> to 500.00
      • Unit - Create 1 Łotrzyk for Player 21 (Coal) at (Center of bandit boss fight minions 2 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Zabójca for Player 21 (Coal) at (Center of bandit boss fight minions 2 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Egzekutor for Player 21 (Coal) at (Center of bandit boss fight minions 1 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Zabójca for Player 21 (Coal) at (Center of bandit boss fight minions 1 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Zabójca for Player 21 (Coal) at (Center of bandit boss fight minions 3 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Item - Create Runa Większej Many at (Center of bandit boss fight minions 3 <gen>)
      • Unit - Create 1 Łotrzyk for Player 21 (Coal) at (Center of bandit boss fight minions 3 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Egzekutor for Player 21 (Coal) at (Center of bandit boss fight minions 4 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Unit - Create 1 Zabójca for Player 21 (Coal) at (Center of bandit boss fight minions 4 <gen>) facing Default building facing degrees
      • Set VariableSet BanditsFightUnitGroup = (BanditsFightUnitGroup + 1)
      • Trigger - Turn on last phase attacks <gen>
      • Trigger - Turn on third phase end <gen>
  • last phase attacks
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
      • banditFightIsOn Equal to Prawda
    • Actions
      • Unit - Order Swindling Milt 0116 <gen> to Night Elf Warden - Shadow Strike Lord Othmar Garitos 0006 <gen>
  • last phase end
    • Events
      • Unit - Swindling Milt 0116 <gen>'s life becomes Less than or equal to 50.00
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Set VariableSet banditFightIsOn = Fałsz
      • Unit - Pause Swindling Milt 0116 <gen>
      • Unit - Make Swindling Milt 0116 <gen> Invulnerable
      • Unit - Set life of Swindling Milt 0116 <gen> to 1.00
      • Cinematic - Send transmission to (All players) from Lord Othmar Garitos 0006 <gen> named Garithos: Play No sound and display I won. Now... die.. Modify duration: Set to 1.80 seconds and Wait
      • Animation - Play Swindling Milt 0116 <gen>'s death animation
      • Unit - Kill Swindling Milt 0116 <gen>
      • Destructible - Pick every destructible in bandit boss fight start <gen> and do (Destructible - Kill (Picked destructible))
      • Camera - Set the camera bounds for Player 1 (Red) to (Playable map area)
  • if hero dies
    • Events
      • Unit - Lord Othmar Garitos 0006 <gen> Dies
    • Conditions
    • Actions
      • Destructible - Pick every destructible in bandit boss fight start <gen> and do (Destructible - Kill (Picked destructible))
 
Level 3
Joined
Jan 3, 2022
Messages
7
You need to be more specific with your questions. Right now, your post is of the form "please fix my bugs"

Instead, show us a minimum example with a specific thing that you think should work (what you expect, what the reality is, what your question is)
Oh, sorry, it just happened that I tried every single trigger and finally it worked, I just forgot to finish the thread. I'll also try to remember that I should be more precise. Thanks for your time
 
Status
Not open for further replies.
Top