▲ 5 r/twinegames
I'm having trouble getting this to work. I've tried so many different ways to get it to work and ARGGH. I wrote this six months ago and gave up when I couldn't figure it out and now I'm back wasting too much time on it AGAIN.
Basically what I want to happen is on the 4th tug, the $brokenlock is set to true (that works when tested) and the option to open the door pops up (that DOESN'T friggin' work).
ISTG if its a simple solution I'm gonna freak. Out. I'm new to coding and understand barely anything. Maybe I'm doing this in a convoluted way. I just wanna be over and done with this and move on...
(set:_tug to 0)
You're bones creak when you sit up to look at the lock.
Like the rest of the room, it looks worn. It's rusted and seems weak enough that you could probably open it with enough blunt force.
[|Tug1)[Nothing happened.] |Tug2)[The rust stains the bandages of your palm red but the lock remains firm.] |Tug3)[The lock creaks in your tight hold.] |Tug4)[The lock breaks with a crack and crumbles to bits in your hands.]]
(if: $rustedlockkey is true)[
[[Break the lock with the... lock.|Antag Entrance]]]
[[Great.|Wakey, wakey.]]
{
(link-repeat: "Tug on it.")[
(set:_tug to it +1)
(if:_tug is 1)[(show: ?Tug1)(hide: ?Tug0)]
(if:_tug is 2)[(show: ?Tug2)(hide: ?Tug1)]
(if:_tug is 3)[(show: ?Tug3)(hide: ?Tug2)]
(if:_tug is 4)[(show: ?Tug4)(hide: ?Tug3)(set: $brokenlock to true)]
]
}
(if: $brokenlock is true)[
[[Open the cage door.|Antag Entrance]]]
u/ASinForASin — 8 days ago