Create
Return to post

Comparing difference between and

View raw
  • variables
  • {
  • global:
  • 1: goalScore
  • 2: rounds
  • 3: showHUD
  • 11: heroList
  • 17: heroListPos
  • 24: tp1
  • 25: tp2
  • }
  • subroutines
  • {
  • 0: SwitchHero
  • 1: Teleport
  • 3: Slowmo
  • }
  • rule("Credits - By Marc304")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • conditions
  • {
  • Is Game In Progress != True;
  • }
  • actions
  • {
  • Create HUD Text(All Players(All Teams), Null, Null, Custom String("By Marc304"), Right, 0, White, White, White,
  • Visible To and String, Default Visibility);
  • "Map Support"
  • Global.T = Last Text ID;
  • Create HUD Text(All Players(All Teams), Custom String("", Global.M), Null, Custom String("Supported Map: {0}", Global.M), Left, 0,
  • Yellow, White, Yellow, Visible To and String, Default Visibility);
  • Global.S = Last Text ID;
  • disabled Create HUD Text(All Players(All Teams), Null, Custom String(
  • "Supported Maps: Castillo, Ecopoint, Backforest, Workshop Island, Chamber, Expanse"), Custom String(
  • "This message will disappear when the game starts"), Left, 1, Yellow, White, White, Visible To and String, Default Visibility);
  • disabled Global.U = Last Text ID;
  • }
  • }
  • rule("Map TPs")
  • {
  • event
  • {
  • Player Joined Match;
  • All;
  • All;
  • }
  • conditions
  • {
  • disabled Is Game In Progress == True;
  • }
  • actions
  • {
  • If(Current Map == Map(Castillo));
  • Global.tp1 = Vector(-100.298, 45.255, 74.219);
  • Global.tp2 = Vector(-106.032, 45.255, 42.884);
  • Global.M = True;
  • Else If(Current Map == Map(Ecopoint: Antarctica) || Current Map == Map(Ecopoint: Antarctica Winter));
  • Global.tp1 = Vector(1.156, 18.499, -12.031);
  • Global.tp2 = Vector(1.063, 18.499, 11.875);
  • Global.M = True;
  • Else If(Current Map == Map(Workshop Island) || Current Map == Map(Workshop Island Night));
  • Global.tp1 = Vector(0, 5.349, -10);
  • Global.tp2 = Vector(0, 5.349, 10);
  • Global.M = True;
  • Else If(Current Map == Map(Workshop Chamber) || Current Map == Map(Workshop Expanse));
  • Else If(Current Map == Map(Workshop Chamber) || Current Map == Map(Workshop Expanse) || Current Map == Map(
  • Workshop Expanse Night));
  • Global.tp1 = Vector(0, 5.349, -10);
  • Global.tp2 = Vector(0, 5.349, 10);
  • Global.M = True;
  • Else If(Current Map == Map(Black Forest) || Current Map == Map(Black Forest Winter));
  • Global.tp1 = Vector(-13.098, 19.712, 14.660);
  • Global.tp2 = Vector(-13.190, 19.712, -4.057);
  • Global.M = True;
  • Else;
  • Big Message(All Players(All Teams), Custom String("This map is not supported!"));
  • Global.M = False;
  • End;
  • }
  • }
  • rule("[Config] Create Hero List")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • actions
  • {
  • "Goal Score"
  • Global.goalScore = 15;
  • "Activate/Deactivate the damage stats HUD"
  • Global.showHUD = True;
  • "Hero List - Don't deactivate the first Rule! (but you can change the Hero)"
  • Global.heroList = Hero(Soldier: 76);
  • Modify Global Variable(heroList, Append To Array, Hero(Ashe));
  • Modify Global Variable(heroList, Append To Array, Hero(Baptiste));
  • Modify Global Variable(heroList, Append To Array, Hero(Bastion));
  • Modify Global Variable(heroList, Append To Array, Hero(Brigitte));
  • Modify Global Variable(heroList, Append To Array, Hero(D.Va));
  • Modify Global Variable(heroList, Append To Array, Hero(Doomfist));
  • Modify Global Variable(heroList, Append To Array, Hero(Echo));
  • Modify Global Variable(heroList, Append To Array, Hero(Genji));
  • Modify Global Variable(heroList, Append To Array, Hero(Hanzo));
  • Modify Global Variable(heroList, Append To Array, Hero(Junkrat));
  • Modify Global Variable(heroList, Append To Array, Hero(Lúcio));
  • Modify Global Variable(heroList, Append To Array, Hero(McCree));
  • Modify Global Variable(heroList, Append To Array, Hero(Mei));
  • Modify Global Variable(heroList, Append To Array, Hero(Mercy));
  • Modify Global Variable(heroList, Append To Array, Hero(Moira));
  • Modify Global Variable(heroList, Append To Array, Hero(Orisa));
  • Modify Global Variable(heroList, Append To Array, Hero(Pharah));
  • Modify Global Variable(heroList, Append To Array, Hero(Reaper));
  • Modify Global Variable(heroList, Append To Array, Hero(Reinhardt));
  • Modify Global Variable(heroList, Append To Array, Hero(Roadhog));
  • Modify Global Variable(heroList, Append To Array, Hero(Sigma));
  • Modify Global Variable(heroList, Append To Array, Hero(Ana));
  • Modify Global Variable(heroList, Append To Array, Hero(Sombra));
  • Modify Global Variable(heroList, Append To Array, Hero(Symmetra));
  • Modify Global Variable(heroList, Append To Array, Hero(Torbjörn));
  • Modify Global Variable(heroList, Append To Array, Hero(Widowmaker));
  • Modify Global Variable(heroList, Append To Array, Hero(Winston));
  • Modify Global Variable(heroList, Append To Array, Hero(Wrecking Ball));
  • Modify Global Variable(heroList, Append To Array, Hero(Zarya));
  • Modify Global Variable(heroList, Append To Array, Hero(Zenyatta));
  • Global.heroList = Array Slice(Randomized Array(Global.heroList), 0, Count Of(Global.heroList));
  • }
  • }
  • rule("Switch Hero")
  • {
  • event
  • {
  • Subroutine;
  • SwitchHero;
  • }
  • actions
  • {
  • Start Forcing Player To Be Hero(All Players(All Teams), Global.heroList[Global.heroListPos]);
  • Preload Hero(All Players(All Teams), Global.heroList[Global.heroListPos + 1]);
  • }
  • }
  • rule("Start")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • conditions
  • {
  • Is Game In Progress == True;
  • }
  • actions
  • {
  • Set Objective Description(All Players(All Teams), Custom String("First to {1} Kills - Round: {0}", Global.rounds + 1,
  • Global.goalScore), Visible To and String);
  • Destroy HUD Text(Global.T);
  • Destroy HUD Text(Global.S);
  • Destroy HUD Text(Global.U);
  • Call Subroutine(SwitchHero);
  • Call Subroutine(Teleport);
  • Call Subroutine(Slowmo);
  • }
  • }
  • rule("Teleport")
  • {
  • event
  • {
  • Subroutine;
  • Teleport;
  • }
  • actions
  • {
  • Teleport(Players In Slot(0, Team 1), Global.tp1);
  • Teleport(Players In Slot(0, Team 2), Global.tp2);
  • }
  • }
  • rule("Slowmo")
  • {
  • event
  • {
  • Subroutine;
  • Slowmo;
  • }
  • actions
  • {
  • Set Slow Motion(20);
  • Wait(0.500, Ignore Condition);
  • Set Slow Motion(100);
  • }
  • }
  • rule("Kill")
  • {
  • event
  • {
  • Player Died;
  • All;
  • All;
  • }
  • conditions
  • {
  • Team Score(Team 1) != Global.goalScore;
  • Team Score(Team 2) != Global.goalScore;
  • }
  • actions
  • {
  • Global.heroListPos += 1;
  • Global.rounds += 1;
  • Wait(0.200, Ignore Condition);
  • Call Subroutine(SwitchHero);
  • Call Subroutine(Teleport);
  • Resurrect(All Players(All Teams));
  • Call Subroutine(Slowmo);
  • }
  • }
  • rule("HUD")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Game In Progress == True;
  • Global.showHUD == True;
  • }
  • actions
  • {
  • Create HUD Text(Event Player, Null, Null, Custom String("Damage"), Left, 1, White, White, White, Visible To and String,
  • Default Visibility);
  • disabled Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Players In Slot(0, Team 1).D, Players In Slot(0, Team 1)),
  • Left, 2, White, White, White, Visible To and String, Default Visibility);
  • disabled Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Players In Slot(0, Team 2).D, Players In Slot(0, Team 2)),
  • Left, 3, White, White, White, Visible To and String, Default Visibility);
  • Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Round To Integer(Players In Slot(0, Team 1).D, To Nearest),
  • Players In Slot(0, Team 1)), Left, 2, White, White, White, Visible To and String, Default Visibility);
  • Create HUD Text(Event Player, Null, Null, Custom String("{1}: {0}", Round To Integer(Players In Slot(0, Team 2).D, To Nearest),
  • Players In Slot(0, Team 2)), Left, 3, White, White, White, Visible To and String, Default Visibility);
  • }
  • }
  • rule("DMG")
  • {
  • event
  • {
  • Player Dealt Damage;
  • All;
  • All;
  • }
  • conditions
  • {
  • Victim != Event Player;
  • }
  • actions
  • {
  • Event Player.D += Event Damage;
  • disabled Event Player.D = Round To Integer(Event Player.D, To Nearest);
  • }
  • }
  • rule("More Rounds than Heros = Set to Round 1")
  • {
  • event
  • {
  • Ongoing - Global;
  • }
  • conditions
  • {
  • Global.heroListPos == Count Of(Global.heroList);
  • }
  • actions
  • {
  • Global.heroListPos = 1;
  • }
  • }
  • disabled rule("[Debug] Switch Hero")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Button Held(Event Player, Interact) == True;
  • }
  • actions
  • {
  • Call Subroutine(SwitchHero);
  • Global.heroListPos += 1;
  • }
  • }
  • disabled rule("[Debug] Dummy")
  • {
  • event
  • {
  • Ongoing - Each Player;
  • All;
  • All;
  • }
  • conditions
  • {
  • Is Button Held(Event Player, Reload) == True;
  • Is Game In Progress != True;
  • }
  • actions
  • {
  • Create Dummy Bot(Hero(Ana), Team 2, -1, Event Player, Vector(0, 0, 0));
  • }
  • }
Join the Workshop.codes Discord