Hi! Probably basic question incoming, but I’m stuck…
I’m trying to track whether the player is wearing a cloak to display certain widgets or to send them to a specific card. I’ve created a checkbox for this, and when manually clicked on/off, the conditionals are tracked properly.
The issue I’m running into is that I can’t seem to change the value of that checkbox via Lil directly. As in, if the player click the Start button, the checkbox is enabled (because they wear the cloak at the start of the game), and if the player clicks the button “Hang Cloak”, the checkbox is disabled. Or it should be.
~~So far, I’ve tried:
Cloakroom.widgets.WearCloak.value:true
and
Cloakroom.widgets.WearCloak.value:true
Cloakroom.widgets.WearCloak.event["change" Cloakroom.widgets.WearCloak.value]
~~
I feel like I’m missing something but I don’t know what/how…
EDIT: I FOUND THE ISSUE! I wrote true
instead of 0/1
….
Also, follow up question: if the display of the checkbox is “Invisible”, is the value of the Checkbox still accessible? (If not, I’ll just hide it behind some text :P )
Thanks in advance!