ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
207 stars 24 forks source link

[BUG] "Slot" property / symbol is not supported #483

Closed jangoergens closed 1 month ago

jangoergens commented 2 months ago

Setting Player to "Slot 0-11" and exporting the rule causes an error in VSCode:

Unknown workshop symbol 'Slot 0' Invalid Player option

image

Here is the ingame rule:

image

Here is the exported code:

rule("TimerFreeze")
{
    event
    {
        Ongoing - Each Player;
        Team 1;
        Slot 0;
    }

    conditions
    {
        Is Button Held(Host Player, Button(Crouch)) == True;
        Is Button Held(Host Player, Button(Melee)) == True;
    }

    actions
    {
        If(Global.TimerFreeze == Color(Red));
            Global.TimerFreeze = Color(Green);
        Else If(Global.TimerFreeze == Color(Green));
            Global.TimerFreeze = Color(Red);
        End;
    }
}