D.va but only one ult

How do I make it that d.va spawns with her ult and can only use it once. I tried it before and after I ulted I couldn’t get back in my mech.

There may be more efficient ways to do this, but here is one suggestion that I very quickly put together (D.Va spawns with ult ready and can only use her mech ult once until she dies, then she can use it again; mini D.Va can always get her mech back):

Required Settings:

  • D.Va: Spawn with Ultimate ready: On
variables
{
	player:
		0: dva_alt
}

rule("D.Va Pilot")
{
	event
	{
		Ongoing - Each Player;
		Team 2;
		All;
	}

	conditions
	{
		(Is In Alternate Form(Event Player) || Hero Of(Event Player) != Hero(D.Va)) == True;
		Health(Event Player) == True;
	}

	actions
	{
		Event Player.dva_alt = Hero Of(Event Player) == Hero(D.Va);
		Set Ultimate Ability Enabled(Event Player, True);
	}
}

rule("D.Va Mech")
{
	event
	{
		Ongoing - Each Player;
		Team 2;
		All;
	}

	conditions
	{
		Event Player.dva_alt == True;
		Is In Alternate Form(Event Player) == False;
	}

	actions
	{
		Set Ultimate Ability Enabled(Event Player, Hero Of(Event Player) != Hero(D.Va));
		Event Player.dva_alt = False;
	}
}

rule("Player Died")
{
	event
	{
		Player Died;
		Team 2;
		All;
	}

	actions
	{
		Event Player.dva_alt = False;
		Set Ultimate Ability Enabled(Event Player, True);
	}
}

Edit: Didn’t meant to post yet, need to quickly test this first :slight_smile:

1 Like

It doesn’t work for me I get stuck at actions for rule: D.va pilot.

Try renaming any unused player variable to dva_alt then copy and paste the 3 rules. (I made this for Skirmish; it may not work in other modes.)

1 Like