Hi, Twine Masters!
I'd like to populate my Sets with multiple items. Currently, here's how I'm doing it:
<<set
$npc.memberOf to new Set(),
$npc.memberOf.add("marsh family"),
$npc.memberOf.add("esoteric order of dagon")
>>
This works fine, but I wonder if there's a way to code it more efficiently. I tried this:
<<set $npc.memberOf to new Set("marsh family", "esoteric order of dagon")>>
And this:
<<set
$npc.memberOf to new Set(),
$npc.memberOf.add("marsh family", "esoteric order of dagon")
>>
But neither method worked. Is there a better way?