So I've been making an rpg for quite some time now (on twine 2.0 harlowe), and I am almost done now but there is one feature that still remains, the skills feature, simply every certain time interval you will be able to use a skill, and I was able to implement it easily enough but I want users to be able to charge up techniques, so if they click charge up which itself is a skill, after a 1 sec they will be able to use the regular technique or if they wait for 4 sec can use a stronger one, I was able to do that, sure if you click the 1 sec technique the 4 sec one won't show and you'll have to recharge as intended but there is a certain bug I realized, if you wait long enough for the 4sec technique you can actually click both, heck you can even cycle it so you click one technique wait till you charge up and click the other so you will always have 1 technique available if needed, I have summarized the code to the only basics you can even run it and it will work perfectly
(set: $show10 to 1)(set: $show40 to 4) (set:$show20 to 2) ''Round'': |round>[] |skill1>[]|skill2>[]|skill3>[]|skill4>[] {(live: 1s)[{(set: $elapsedTime to it + 1) (replace: ?round)[$elapsedTime] (if: $elapsedTime is $show20)[(replace: ?skill3)[{(link: "Flame commandment")[(set: $show40 to $elapsedTime + 4)(set: $show10 to $elapsedTime + 1)(set: $GFE to 1) (set: $FP to 1)]}]] (if: $GFE is 1)[(if: $elapsedTime is $show40)[(replace: ?skill4)[{(link: "Use Great Flame Emperor")[blah blah (set: $show20 to $elapsedTime + 2)(set: $show10 to $elapsedTime - 1)(set: $GFE to 0) (set: $FP to 0)]}]]] (if: $FP is 1)[(if: $elapsedTime is $show10)[(replace: ?skill1)[{(link: "Use Fire pillar")[blah blah (set: $show20 to $elapsedTime + 2)(set: $show40 to $elapsedTime - 4)(set: $GFE to 0) (set: $FP to 0)]}]]] }]}please help me find a way for the "Great Flame Emperor" link to fade away if the fire pillar link has been pressed and vice versa