Need some help with charges and ammo!

So I’m trying to make it so players have a certain amount of ammo as Tracer, my text goes as:
Set Max Ammo (Players on hero(Hero(tracer), All Teams) 1, 10)

But it doesn’t actually work properly

I’m also trying to make it so Symmettra has more Turrets, and also seeing if I can change the barrier health with the resource? Is that something we can do with the new features?

list of things I also wanna try and do

  • Larger Moira Orbs
  • Larger Mei Wall
  • Larger Sigma Barrier with adjustable health
  • Larger Turret with more health
  • Multiple Blinks, Dynamite, Flashbang charges that don’t cool down but only have a set amount of “ammo”

I just want to know if I can do any of these things, if someone could give me a walkthrough of at least the first concept about Ammo, where heroes have a set amount of ammo for the round, that would be great!

ALSO Blizz plz add Barrier health to the lobby option sliders for all characters with Barriers :frowning: And Winston’s Barrier should have a duration slider as well.

2 Likes

and orisas, cant for get robot cow

3 Likes

Try instead:

each player event

condition:
- has spawned(event player) == true
- hero of(event player) == hero(tracer)

action:
- set max ammo(event player, 10)

You can do that with player variables as the ammo counter and enabling/disabling the ability.

1 Like

Still not working, I have it exactly as you have it, but it’s not changing the ammo at all?

Well, I have not tested the PTR update yet, so I can’t tell you if it has something to do with “set max ammo”.
Though, you could try to add a “wait()” action before the “set max ammo” action.

Mmmmh I made this so when spawning Tracer already has 70 max ammo and 70 ammo. I don’t really know how the Set Max Ammo and Set Ammo actions works, that “0” before the 70 idk what it means but if you put 0 it works perfectly fine. I have to do some research on that, or if someone understands it please tell me lol

rule("Tracer ammo")
{
	event
	{
		Ongoing - Each Player;
		All;
		Tracer;
	}

	actions
	{
		Set Max Ammo(Event Player, 0, 70);
		Set Ammo(Event Player, 0, 70);
	}
}

This is pretty simple, just use this:

rule("Symmetra turrets")
{
	event
	{
		Ongoing - Each Player;
		All;
		Symmetra;
	}

	actions
	{
		Set Ability Charge(Event Player, Button(Ability 1), 9);
	}
}

This just gives Symmetra 9 turrets when the game starts. Just 3 of them have cooldown, so I think that you would have to make custom cooldowns for the other 6. I don’t think it’s that complicated, but a “Set Charge Cooldown” action or something like this would be useful.

I don’t think you can change the barrier health with the resource feature.
It would be cool if there were more options with the charges cooldown and with barriers, but I think we will have to wait for that.

1 Like

On your Set Max Ammo, change the index to 0. That should fix your problem.
You currently have it at index 1, and that’s trying to set an alt fire ammo size for her, rather than her primary fire with the pistols.

Set Ammo as well as max ammo, so she doesn’t start with 40 rounds and reloads to 10 :slight_smile:

2 Likes