SammehFFXI / FFXIAddons

53 stars 114 forks source link

is there a way to add a delay? #25

Open Mercurian opened 4 years ago

Mercurian commented 4 years ago

So uh, long story short I've been using this for years with a cure received set and I just finally actually noticed it hasn't worked this whole time lol.

When a trust casts cure it does put the set on, but, it seems to take it off and go back to normal before the cure lands. is there a way to add an artificial delay.

    ["Cure IV"]={
        ["complete_reaction"]="gs c reset DefenseMode", 
        ["ready_reaction"]="gs equip sets.Cured"

Is there a way to like... ["Cure IV"]={ ["complete_reaction"]=wait 1, "gs c reset DefenseMode", ["complete_reaction"]=wait1, "gs c reset DefenseMode", ["complete_reaction"]=sleep 1, "gs c reset DefenseMode", ["complete_reaction"]=delay 1, "gs c reset DefenseMode", etc

Icydeath commented 4 years ago

have you tried this?

["complete_reaction"]="wait 1;gs c reset DefenseMode",

Mercurian commented 4 years ago

It still changes instantly, the problem I always find is context. lack of quotes or colon/semicolon or the right word or spaces like..... ["complete_reaction"]="wait 2"; "gs c reset DefenseMode" ["complete_reaction"]="wait2"; "gs c reset DefenseMode" ["complete_reaction"]="wait 2;gs c reset DefenseMode" ["complete_reaction"]="wait2; gs c reset DefenseMode" ["complete_reaction"]=wait 2; "gs c reset DefenseMode" ["complete_reaction"]=wait2; "gs c reset DefenseMode"

I think I can make it work with a script; ["complete_reaction"]="Exec wait.txt" and then text file reads

wait 2
input //gs c reset DefenseMode

But I'd like to not have to ghetto rig it