Prince Wrecko, Elite Wrecking Ball Bender (Lucio ai Boss)

77E09

This is a PvE boss map. Defeat Prince Wrecko, a powerful alternate-universe Lucio who has the power to control friendly wrecking ball minions! Team up with 5 other people or ai, and defeat all 3 stages of the boss before using up all lives for your team. (IMPORTANT: When setting up the game, put an enemy ai Lucio on team 1 slot 1; leave other slots on team 1 empty. All human and friendly ai players go on team 2)

Code Snippet

View variables

Rules

No Rules are declared.
rule("Spawn Wrecking Balls At Start") { event { Ongoing - Global; } conditions { Has Spawned(All Living Players(All Teams)) == True; Global Variable(A) == 0; } actions { Create Dummy Bot(Hero(Wrecking Ball), Team 1, Add(1, Players In Slot(Last Of(All Players(All Teams)), Team 1)), Nearest Walkable Position(Closest Player To(Vector(0, 0, 0), Team 1)), Vector(0, 0, 0)); Create Dummy Bot(Hero(Wrecking Ball), Team 1, Add(2, Players In Slot(Last Of(All Players(All Teams)), Team 1)), Nearest Walkable Position(Closest Player To(Vector(0, 0, 0), Team 1)), Vector(0, 0, 0)); Create Dummy Bot(Hero(Wrecking Ball), Team 1, Add(3, Players In Slot(Last Of(All Players(All Teams)), Team 1)), Nearest Walkable Position(Closest Player To(Vector(0, 0, 0), Team 1)), Vector(0, 0, 0)); Create Dummy Bot(Hero(Wrecking Ball), Team 1, Add(4, Players In Slot(Last Of(All Players(All Teams)), Team 1)), Nearest Walkable Position(Closest Player To(Vector(0, 0, 0), Team 1)), Vector(0, 0, 0)); Create Dummy Bot(Hero(Wrecking Ball), Team 1, Add(5, Players In Slot(Last Of(All Players(All Teams)), Team 1)), Nearest Walkable Position(Closest Player To(Vector(0, 0, 0), Team 1)), Vector(0, 0, 0)); } } rule("hammond dive behavior") { event { Ongoing - Each Player; All; All; } conditions { Is Dummy Bot(Event Player) == True; Has Spawned(Event Player) == True; Altitude Of(Event Player) >= 5; } actions { disabled Start Facing(Event Player, Direction Towards(Event Player, Players In Slot(0, Team 1)), 100, To World, Direction and Turn Rate); disabled Start Accelerating(Event Player, Direction Towards(Event Player, Players In Slot(0, Team 1)), 500, 1000, To World, Direction Rate and Max Speed); Press Button(Event Player, Crouch); Wait(2.350, Ignore Condition); Stop Holding Button(Event Player, Crouch); Wait(0.500, Ignore Condition); Loop If Condition Is True; } } rule("tp hammond to enemy lucio") { event { Ongoing - Each Player; All; All; } conditions { Is Dummy Bot(Event Player) == True; Distance Between(Event Player, Players In Slot(0, Team 1)) >= Absolute Value(20); } actions { Teleport(Event Player, Nearest Walkable Position(Players In Slot(0, Team 1))); Wait(2.250, Ignore Condition); Loop If Condition Is True; } } rule("hammond surrounding enemy lucio") { event { Ongoing - Each Player; All; All; } conditions { Has Spawned(Event Player) == True; Is Dummy Bot(Event Player) == True; } actions { Start Facing(Event Player, Direction Towards(Event Player, Players In Slot(0, Team 1)), 100, To World, Direction and Turn Rate); Start Accelerating(Event Player, Direction Towards(Event Player, Players In Slot(0, Team 1)), 500, 1000, To World, Direction Rate and Max Speed); } } rule("hammond physics") { event { Ongoing - Each Player; All; All; } conditions { Is Dummy Bot(Event Player) == True; Has Spawned(Event Player) == True; } actions { Press Button(Event Player, Ability 1); Set Gravity(Event Player, 100); Set Move Speed(Event Player, 200); Wait(0.250, Ignore Condition); Set Healing Received(Event Player, 0); } } rule("Variable A start at 0") { event { Ongoing - Global; } conditions { Number of Deaths(All Players(Team 1)) == 0; Global Variable(A) != 0; } actions { Set Global Variable(A, 0); } } rule("lucio vulnerable") { event { Ongoing - Each Player; Team 1; All; } conditions { All Dead Players(Team 1) == 5; } actions { Clear Status(Players In Slot(0, Team 1), Invincible); } } rule("lucio resistant, lucio boss title") { event { Ongoing - Global; } conditions { Number of Deaths(All Players(Team 1)) < 5; } actions { Set Status(Players On Hero(Hero(Lúcio), Team 1), Players On Hero(Hero(Lúcio), Team 1), Invincible, Absolute Value(999999)); Create HUD Text(All Players(All Teams), Custom String("Prince Wrecko, elite hammond-bender, has appeared!", Null, Null, Null), Null, Custom String("Defeat Prince Wrecko!", Null, Null, Null), Top, 0, Orange, White, White, Visible To and String, Default Visibility); Create In-World Text(All Players(All Teams), Custom String("Prince Wrecko", Null, Null, Null), Players In Slot(0, Team 1), 3, Clip Against Surfaces, Visible To Position and String, Orange, Default Visibility); } } rule("Prevent Hammond Respawn, Stage 1 pt 1") { event { Ongoing - Global; } conditions { 1 <= Is Dead(Players On Hero(Hero(Wrecking Ball), Team 1)); Global Variable(A) == 0; } actions { Set Global Variable(A, 1); } } rule("Prevent Hammond Respawn, Stage 1 pt 2") { event { Ongoing - Each Player; All; All; } conditions { Is Dummy Bot(Event Player) == True; Is Dead(Event Player) == True; Global Variable(A) == 1; } actions { Disable Built-In Game Mode Respawning(Event Player); } } rule("lucio ultimate behavior") { event { Ongoing - Global; } conditions { Ultimate Charge Percent(Players In Slot(0, Team 1)) == 100; } actions { Set Gravity(Players In Slot(0, Team 1), 0); Wait(7.250, Ignore Condition); Set Gravity(Players In Slot(0, Team 1), 200); Wait(0.250, Ignore Condition); Set Gravity(Players In Slot(0, Team 1), 50); } } rule("stage 2 start") { event { Ongoing - Each Player; Team 1; All; } conditions { Is Dead(Players In Slot(0, Team 1)) == True; Global Variable(A) == 1; } actions { Respawn(All Dead Players(Team 1)); Big Message(All Players(All Teams), Custom String("Prince Wrecko has entered stage 2! ", Null, Null, Null)); Wait(7.250, Ignore Condition); Teleport(All Players(Team 1), Nearest Walkable Position(Vector(0, 0, 0))); Set Gravity(Players In Slot(0, Team 1), 0); Set Global Variable(A, 2); Set Move Speed(Players In Slot(0, Team 1), 150); } } rule("stage 2 ai hammond") { event { Ongoing - Each Player; Team 1; All; } conditions { Global Variable(A) == 2; Is Dummy Bot(Event Player) == True; Ultimate Charge Percent(Event Player) == 100; } actions { Wait(20.250, Ignore Condition); Press Button(Event Player, Ultimate); } } rule("Prevent Hammond Respawn, Stage 2 pt 1") { event { Ongoing - Global; } conditions { 1 <= Is Dead(Players On Hero(Hero(Wrecking Ball), Team 1)); Global Variable(A) == 2; } actions { Set Global Variable(A, 3); } } rule("Prevent Hammon Respawn, Stage 2 pt 2") { event { Ongoing - Each Player; All; All; } conditions { Is Dummy Bot(Event Player) == True; Is Dead(Event Player) == True; Global Variable(A) == 3; } actions { Disable Built-In Game Mode Respawning(Event Player); } } rule("stage 3 start") { event { Ongoing - Global; } conditions { Is Dead(Players In Slot(0, Team 1)) == True; Global Variable(A) == 3; } actions { Respawn(All Dead Players(Team 1)); Big Message(All Players(All Teams), Custom String("Prince Wrecko has entered the final stage! ", Null, Null, Null)); Wait(7.250, Ignore Condition); Teleport(All Living Players(Team 1), Nearest Walkable Position(Vector(0, 0, 0))); Set Gravity(Players In Slot(0, Team 1), 100); Set Global Variable(A, 4); Set Move Speed(Players In Slot(0, Team 1), 700); } } rule("stage 3 ai hammond") { event { Ongoing - Each Player; Team 1; All; } conditions { Global Variable(A) == 4; Is Dummy Bot(Event Player) == True; Ultimate Charge Percent(Event Player) == 100; } actions { Wait(20.250, Ignore Condition); Press Button(Event Player, Ultimate); } } rule("victory") { event { Ongoing - Each Player; Team 1; All; } conditions { Is Dead(Players In Slot(0, Team 1)) == True; Global Variable(A) == 4; } actions { Big Message(All Players(All Teams), Custom String("Prince Wrecko is Defeated!!!", Null, Null, Null)); Wait(10.250, Ignore Condition); Declare Team Victory(Team 2); } } rule("lives counter message") { event { Player Died; Team 2; All; } actions { Set Global Variable(B, Add(1, Global Variable(B))); Big Message(All Players(All Teams), Custom String("{0} of 15 lives used!", Global Variable(B), Null, Null)); } } rule("global variable b") { event { Ongoing - Global; } actions { Set Global Variable(B, 0); } } rule("game over") { event { Player Died; Team 2; All; } conditions { Global Variable(B) == 15; } actions { Declare Team Victory(Team 1); } }
View Fullscreen
Copy current Rule
Copy all Rules
Made by | VirtualCrumb
Categories | Boss Mode
Heroes | All
Created at |
Last updated |
Current version | 1.0.0

0 Comments

Log in or Sign up to place a comment.
Workshop.codes - Background image