@kcmalik
You have a few <<</liveblock> with a missing > at the end. That probably would give you a few issue.
EDIT: @souppilouliouma is correct. The issue here comes from $var lte $totalpts. If you remove that part of code it will get to 0 no problem.
Here’s the edited coded below @kcmalik :
I’ve also removed the unnecessary liveblocks (only one is needed) and the empty elseif ![]()
<<liveblock>>
<<link "<-">>
<<set $strengthvalue -= 1>>
<<set $totalpts += 1>>
<<update>>
<</link>>
$strengthvalue
<<if $totalpts gt 0>>
<<link "->">>
<<set $strengthvalue += 1>><<set $totalpts -= 1>>
<<update>>
<</link>>
<</if>>
<<link "<-">>
<<set $luckvalue -= 1>>
<<set $totalpts += 1>>
<<update>>
<</link>>
$luckvalue
<<if $totalpts gt 0>>
<<link "->">>
<<set $luckvalue += 1>>
<<set $totalpts -= 1>>
<<update>>
<</link>>
<</if>>
<<link "<-">>
<<set $intvalue -= 1>>
<<set $totalpts += 1>>
<<update>>
<</link>>
$intvalue
<<if $totalpts gt 0>>
<<link "->">>
<<set $intvalue += 1>><<set $totalpts -= 1>>
<<update>>
<</link>>
<</if>>
$totalpts<</liveblock>>
To take care to avoid the negatives, you can wrap the <- links with:
<<if $statvar gt 0>> <</if>>
The link will disappear if the stat reaches 0.
Hope this heelps~~
Because they are a custom macro (from Cycy, and iirc from the Twine server, it should be added to the next update??? Edit: it’s going to be something similar, oops). They essentially do a <<replace>> and update variable without changing pages/using the <<replace>> macro.