Automatically generate Actors, Variables, items from Twine.Json? (Harlowe 3.2.3 | Twison 0.0.1)
Posted: Tue Jan 18, 2022 3:03 pm
Hello all
Just figuring how to code in Twine and working with the Dialogue system
Are any more Twine snippets around? I'm new to it, it's quite confusing with so many variations, which is why I would prefer to ask here since I know they are examples that will work with the editor...
A few questions
Question 1: Is it possible to auto-generate Actors, Variables, items from Twine.Json to the Database ? (In the Database>Dialogue editor)
Are int vars if statements possible? I get a Debug error "This Twine macro is not supported yet: (if: $bravery <= 1)" True also is my fist day of Twine/Dialogue- so it all looks like greek to me
I was hoping to be able to initialise player vars/stats and have the twine Json update the Variables field, adding the variables dynamically in the fields. rather than doing it all in the inspector.
(set: $bravery to 1)
(set: $lawful to 1)
(set: $neutral to 1)
(set: $altruism to 1)
(set: $chaos to 1)
Here I was hoping to present options based on character bravery intVar.
//later in game showing only text if player has reached certain level ...im a bit iffy on this...and wonder too if there is a way to have an int with range from 0 to 10, from 11 to 20, from 21 to 25 etc
increment bravery on reaching new passage
(set: $bravery to it + 1)
{
(if: $bravery is 1)[
[[game text here!|Passage C]]
]
(else-if: $bravery is 2)[
[[game text here!|Passage A]]
]
(else-if: $bravery <= 3)[
[[game text here!|Passage B]]
]
(else:)[
[[game text here!|Passage M]]
]
}
Any hints, corrections, links to example code that works with dialogue editor would be most appreciated.
it's also true I may be trying to do something with twine/dialogue editor that its not designed to do ... so if there are other ways to do the same - then I will learn that! point me there instead
With thanks
PS this plugin is amazing <3
N
Just figuring how to code in Twine and working with the Dialogue system
Are any more Twine snippets around? I'm new to it, it's quite confusing with so many variations, which is why I would prefer to ask here since I know they are examples that will work with the editor...
A few questions
Question 1: Is it possible to auto-generate Actors, Variables, items from Twine.Json to the Database ? (In the Database>Dialogue editor)
Are int vars if statements possible? I get a Debug error "This Twine macro is not supported yet: (if: $bravery <= 1)" True also is my fist day of Twine/Dialogue- so it all looks like greek to me
I was hoping to be able to initialise player vars/stats and have the twine Json update the Variables field, adding the variables dynamically in the fields. rather than doing it all in the inspector.
(set: $bravery to 1)
(set: $lawful to 1)
(set: $neutral to 1)
(set: $altruism to 1)
(set: $chaos to 1)
Here I was hoping to present options based on character bravery intVar.
//later in game showing only text if player has reached certain level ...im a bit iffy on this...and wonder too if there is a way to have an int with range from 0 to 10, from 11 to 20, from 21 to 25 etc
increment bravery on reaching new passage
(set: $bravery to it + 1)
{
(if: $bravery is 1)[
[[game text here!|Passage C]]
]
(else-if: $bravery is 2)[
[[game text here!|Passage A]]
]
(else-if: $bravery <= 3)[
[[game text here!|Passage B]]
]
(else:)[
[[game text here!|Passage M]]
]
}
Any hints, corrections, links to example code that works with dialogue editor would be most appreciated.
it's also true I may be trying to do something with twine/dialogue editor that its not designed to do ... so if there are other ways to do the same - then I will learn that! point me there instead
With thanks
PS this plugin is amazing <3
N