ItsDeltin / Overwatch-Script-To-Workshop

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

Parameters in custom strings decompile to "{0}" instead of "<0>" #171

Closed darmanilink closed 4 years ago

darmanilink commented 4 years ago
variables
{
    global:
        53: killcount
}

actions
{
    Create HUD Text(All Players(All Teams), Custom String("COUNTER: {0}", Global.killcount), Null, Null, Left, 0, White, White, White,
        Visible To and String, Visible Always);
}

to

rule: "test"
{
    CreateHudText(AllPlayers(Team.All), <"COUNTER: {0}", killcount>, null, null, Location.Left, 0, Color.White, Color.White, Color.White, HudTextRev.VisibleToAndString, Spectators.VisibleAlways);
}

to

Create HUD Text(All Players(Team(All)), Custom String("COUNTER: {0}", Null, Null, Null), Null, Null, Left, 0, White, White, White, Visible To and String, Visible Always);
ItsDeltin commented 4 years ago

Thanks for the report! I will look into this.