Reposted because blizzard nuked most of the forum posts when we were so close to a solution, Context below:
Currently there’s a Bug where instead of communicating returning true it returns false. It starts out as 0 and changes to false. You can check this by importing the code VC6TH. How do you distinguish between them?
So far we’ve tried custom strings and empty arrays to no avail. Here’s a sample workshop I made so you can try out possible solutions.
In this workshop it should recharge your cooldowns if you press q or say thanks (except the thanks part doesn’t work) Code is “5E8DYV”
Code snippet:
settings
{
lobby
{
Max Team 1 Players: 6
Max Team 2 Players: 6
}
modes
{
Assault
{
}
Control
{
}
Escort
{
}
Hybrid
{
}
General
{
Game Mode Start: Manual
}
}
}
rule ("Reset Cooldowns (thanks)") {
event {
Ongoing - Each Player;
Team 1;
All;
}
conditions {
Custom String("{0}", Is Communicating(Event Player, Thanks), Null, Null) == Custom String("{0}", False, Null, Null);
}
actions {
Set Ultimate Charge(Event Player, 100);
Set Ability Cooldown(Event Player, Button(Primary Fire), 0);
Set Ability Cooldown(Event Player, Button(Secondary Fire), 0);
Set Ability Cooldown(Event Player, Button(Ability 1), 0);
Set Ability Cooldown(Event Player, Button(Ability 2), 0);
Set Ammo(Event Player, 0, Max Ammo(Event Player, 0));
}
}
rule ("Reset Cooldowns (Hold q)") {
event {
Ongoing - Each Player;
Team 1;
All;
}
conditions {
Is Button Held(Event Player, Button(Ultimate)) == True;
}
actions {
Set Ultimate Charge(Event Player, 100);
Set Ability Cooldown(Event Player, Button(Primary Fire), 0);
Set Ability Cooldown(Event Player, Button(Secondary Fire), 0);
Set Ability Cooldown(Event Player, Button(Ability 1), 0);
Set Ability Cooldown(Event Player, Button(Ability 2), 0);
Set Ammo(Event Player, 0, Max Ammo(Event Player, 0));
}
}