Back to home

Dicewatch | Random Mirrored No Limits Comps

HGR2C
click to copy
This code is over 6 months old.
Codes expire after 6 months and will no longer function.
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.
This code can also be found at workshop.codes/HGR2C

Category:
Custom game mode

Author:
Jokaes

Rating:
1

Version:
1.0.0

Posted:
about 1 year ago

Last updated:
9 months ago

Tags:
jokaes dicewatch random mirrored no limits comps dice control jokaes#2263

Share this workshop!

Options

Dicewatch | Random Mirrored No Limits Comps.

There are 3 dices for each role and 1 dice for you role. Both teams will play with the same random comp. CompAndDices

2.0.0 PTR Code: KC2SF

settings
{
	main
	{
		Description: "Dicewatch v2.0.0 | Random Mirrored No Limits Comps. There are 3 dices for each role and 1 dice for you role. Both teams will play with the same random comp. -Jokaes#2263 Codes -> jokaes.github.io"
	}

	lobby
	{
		Map Rotation: After A Game
		Max Spectators: 12
		Return To Lobby: Never
		Swap Teams After Match: No
		Team Balancing: After A Game
	}

	modes
	{
		Control
		{
			disabled maps
			{
				Lijiang Tower
			}
		}

		General
		{
			Competitive Rules: On
			Game Mode Start: Immediately
			Hero Limit: Off
		}
	}
}

variables
{
	global:
		2: comp
		3: damageList
		11: heroesList
		18: supportList
		19: tanksList
}

rule("-------START-------")
{
	event
	{
		Ongoing - Global;
	}
}

rule("Heroes Lists (Tank, Damage, Support)")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Global.tanksList = All Tank Heroes;
		Global.damageList = All Damage Heroes;
		Global.supportList = All Support Heroes;
		Global.heroesList = Array Slice(Randomized Array(Global.tanksList), 0, 6);
		Modify Global Variable(heroesList, Append To Array, Array Slice(Randomized Array(Global.damageList), 0, 6));
		Modify Global Variable(heroesList, Append To Array, Array Slice(Randomized Array(Global.supportList), 0, 6));
	}
}

rule("Comp")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Global.comp[0] = Random Value In Array(Global.heroesList);
		Global.comp[1] = Random Value In Array(Global.heroesList);
		Global.comp[2] = Random Value In Array(Global.heroesList);
		Global.comp[3] = Random Value In Array(Global.heroesList);
		Global.comp[4] = Random Value In Array(Global.heroesList);
		Global.comp[5] = Random Value In Array(Global.heroesList);
	}
}

rule("-------BETWEEN ROUNDS-------")
{
	event
	{
		Ongoing - Global;
	}
}

rule("Heroes Lists (Tank, Damage, Support)")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Between Rounds == True;
	}

	actions
	{
		Global.tanksList = All Tank Heroes;
		Global.damageList = All Damage Heroes;
		Global.supportList = All Support Heroes;
		Global.heroesList = Array Slice(Randomized Array(Global.tanksList), 0, 6);
		Modify Global Variable(heroesList, Append To Array, Array Slice(Randomized Array(Global.damageList), 0, 6));
		Modify Global Variable(heroesList, Append To Array, Array Slice(Randomized Array(Global.supportList), 0, 6));
	}
}

rule("Comp")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Between Rounds == True;
	}

	actions
	{
		Global.comp[0] = Random Value In Array(Global.heroesList);
		Global.comp[1] = Random Value In Array(Global.heroesList);
		Global.comp[2] = Random Value In Array(Global.heroesList);
		Global.comp[3] = Random Value In Array(Global.heroesList);
		Global.comp[4] = Random Value In Array(Global.heroesList);
		Global.comp[5] = Random Value In Array(Global.heroesList);
	}
}

rule("-------OTHER-------")
{
	event
	{
		Ongoing - Global;
	}
}

rule("Round 1 heroes")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Match Round == 1;
	}

	actions
	{
		Set Player Allowed Heroes(Event Player, Global.comp[Slot Of(Event Player)]);
		Start Forcing Player To Be Hero(Event Player, Global.comp[Slot Of(Event Player)]);
	}
}

rule("Round 2 heroes")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Match Round == 2;
	}

	actions
	{
		Set Player Allowed Heroes(Event Player, Global.comp[Slot Of(Event Player)]);
		Start Forcing Player To Be Hero(Event Player, Global.comp[Slot Of(Event Player)]);
	}
}

rule("Round 3 heroes")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Match Round == 3;
	}

	actions
	{
		Set Player Allowed Heroes(Event Player, Global.comp[Slot Of(Event Player)]);
		Start Forcing Player To Be Hero(Event Player, Global.comp[Slot Of(Event Player)]);
	}
}

rule("Assembling time")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Assembling Heroes == True;
	}

	actions
	{
		Set Match Time(10);
	}
}

rule("Setup time")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is In Setup == True;
	}

	actions
	{
		Set Match Time(10);
	}
}

rule("Info and HUD of Heroes")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("Dicewatch v2.0.0 | Random Mirrored No Limits Comps."), Left, -3,
			White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String(
			"There are 3 dices for each role and 1 dice for you role.nBoth teams will play with the same random comp. "), Left, -2, White,
			White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Custom String("Created by Jokaes#2263"), Null, Left, -1, White, White, White,
			Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Null, String("{0} {1}", String("Round"), String("Heroes")), Left, 0, White, White,
			White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), String("{0} {1} {2}", Hero Icon String(Global.comp[0]), Hero Icon String(Global.comp[1]),
			Hero Icon String(Global.comp[2])), Null, Null, Left, 1, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), String("{0} {1} {2}", Hero Icon String(Global.comp[3]), Hero Icon String(Global.comp[4]),
			Hero Icon String(Global.comp[5])), Null, Null, Left, 2, White, White, White, Visible To and String, Default Visibility);
		Create HUD Text(All Players(All Teams), Null, Custom String("Tanks dice:"), Custom String("{0}", String("{0} {1} {2}",
			Hero Icon String(Global.tanksList[0]), Hero Icon String(Global.tanksList[1]), Hero Icon String(Global.tanksList[2]))), Left, 3,
			White, White, White, Visible To and String, Visible Always);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("{0}", String("{0} {1} {2}", Hero Icon String(
			Global.tanksList[3]), Hero Icon String(Global.tanksList[4]), Hero Icon String(Global.tanksList[5]))), Left, 4, White, White,
			White, Visible To and String, Visible Always);
		Create HUD Text(All Players(All Teams), Null, Custom String("Damage dice:"), Custom String("{0}", String("{0} {1} {2}",
			Hero Icon String(Global.damageList[0]), Hero Icon String(Global.damageList[1]), Hero Icon String(Global.damageList[2]))), Left,
			5, White, White, White, Visible To and String, Visible Always);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("{0}", String("{0} {1} {2}", Hero Icon String(
			Global.damageList[3]), Hero Icon String(Global.damageList[4]), Hero Icon String(Global.damageList[5]))), Left, 6, White, White,
			White, Visible To and String, Visible Always);
		Create HUD Text(All Players(All Teams), Null, Custom String("Support dice:"), Custom String("{0}", String("{0} {1} {2}",
			Hero Icon String(Global.supportList[0]), Hero Icon String(Global.supportList[1]), Hero Icon String(Global.supportList[2]))),
			Left, 7, White, White, White, Visible To and String, Visible Always);
		Create HUD Text(All Players(All Teams), Null, Null, Custom String("{0}", String("{0} {1} {2}", Hero Icon String(
			Global.supportList[3]), Hero Icon String(Global.supportList[4]), Hero Icon String(Global.supportList[5]))), Left, 8, White,
			White, White, Visible To and String, Visible Always);
	}
}

disabled rule("Created by Jokaes#2263")
{
	event
	{
		Ongoing - Global;
	}
}