Would it be possible to import and export a ‘script’ instead of having so much UI? I know this would only work for PC, but would make it so much easier.
1 Like
Yep, it definitely possible. When you copy a rule, you can see it’s structure in your buffer. So, it is possible to create some sort of translator from pseudo-code (for example), probably smth like this:
init global vars (global) {
if { //empty, bc it's just init
}//it becomes condition in Workshop
then { //and this becomes actions inside rule "init global vars"
gl.A = 0;
gl.S = vector(43.3, 23.13, -3.45);
}
}
And it’s translates into workshop-friendly view.
Actually, when the workshop was just relesed, one man started to create this thing. You should check his topic:
Yes since the latest patch you can copy/paste code. Raw, it looks like this:
rule("# Game STARTED - Choose Junkrat")
{
event
{
Ongoing - Global;
}
conditions
{
Is Game In Progress == True;
Global Variable(X) == 0;
}
actions
{
Set Player Variable(Random Value In Array(All Players(All Teams)), A, True);
Set Global Variable(X, 1);
Stop All Damage Modifications;
Wait(0.250, Ignore Condition);
Start Damage Modification(Filtered Array(All Players(All Teams), Compare(Hero Of(Current Array Element), !=, Hero(Junkrat))),
Filtered Array(All Players(All Teams), Compare(Hero Of(Current Array Element), !=, Hero(Junkrat))), 0, Receivers and Damagers);
}
}