Code snippets
Quick snippets to build paragraph and contents quickly.
VSCode IDE code snippet prefix list
Code snippets & mock data
Paragraph
{
name: ``,
content: ``,
choices: [
{ id: 1, content: ``, nextName: `` },
],
},{
name: `start`,
content: `Hey that's ${player.playerName}, ${player.pronouns.is} here!`,
choices: [
{ id: 1, content: `Next!`, nextName: `next-paragraph` },
],
},
//prequisite: player's Name and Pornouns must be
//initialised before this paragraph appears{
name: ``,
content: ``,
item: [
{ itemName: ``, description: ``, itemQty: -1, itemCode: ``, }
],
choices: [
{ id: 1,
content: ``,
nextName: ``,
precondition:
{
item: [
{
itemName: ``,
description: ``,
itemQty: 1,
itemCode: ``,
},
],
stat: [{ statName: ``, value: 1,}],
},
consequence: {
item: [
{ itemName: ``, description: ``, itemQty: -1, itemCode: ``, }
],
stat: [
{ statName: ``, value: 1, style: statStyle.show },
{ statName: `hiddenValue`, value: 1, style: statStyle.hide }
],
},
},
],
},Choices
Last updated