Back to home

Junkenstein's Revenge - Random hero after ultimate

V41P9
click to copy
This game is archived.
If you with to unarchive it, click the "restore" button in the options menu.

Category:
Custom game mode

Author:
Jokaes

Rating:
1

Version:
1.0.0

Posted:
18 days ago

Last updated:
18 days ago

Tags:
junkenstein revenge random hero ultimate pve jokaes jokaes#2263

Share this workshop!

Options

Junkenstein's Revenge - Random hero after ultimate

Junkenstein's Revenge but transform into a random hero after ultimate.

Currenty there is a bug in Overwatch that ignores your difficulty settings so even if you change it will be in Hard

rule("Hero List")
{
	event
	{
		Ongoing - Global;
	}

	actions
	{
		Set Global Variable(L, All Heroes);
		Modify Global Variable(L, Remove From Array By Value, Hero(Hanzo));
		Modify Global Variable(L, Remove From Array By Value, Hero(Tracer));
		Modify Global Variable(L, Remove From Array By Value, Hero(Wrecking Ball));
		Preload Hero(All Players(Team 1), Global Variable(L));
	}
}

rule("Starter Hero")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	actions
	{
		Start Forcing Player To Be Hero(Event Player, Random Value In Array(Global Variable(L)));
	}
}

rule("New hero after ult")
{
	event
	{
		Ongoing - Each Player;
		Team 1;
		All;
	}

	conditions
	{
		Is Using Ultimate(Event Player) == True;
		Is Alive(Event Player) == True;
	}

	actions
	{
		Wait(0.125, Ignore Condition);
		Loop If Condition Is True;
		Set Player Variable(Event Player, H, Random Value In Array(Global Variable(L)));
		Modify Global Variable(L, Remove From Array By Value, Player Variable(Event Player, H));
		Start Forcing Player To Be Hero(Event Player, Random Value In Array(Global Variable(L)));
		Modify Global Variable(L, Append To Array, Player Variable(Event Player, H));
	}
}

rule("Skip assembling")
{
	event
	{
		Ongoing - Global;
	}

	conditions
	{
		Is Assembling Heroes == True;
	}

	actions
	{
		Set Match Time(0);
	}
}