adding different text in passages and sections
caberg
26 Mar 2015, 09:53for now both passage and section text are same as the snippet such as
[this passage] the output will be "this passage"
[[new section]] the output will be "new section"
my question is how to add different text for passage or section ? it'll be good to add different text if the game author have passage or section which use same words over and over again, such as Door, House, Room, Bag etc
i think like this
[passage_chapter3c {new passage}] the output will be "new passage"
[[section_last_chapter3a {last section}]] the output will be "last section"
sorry for my bad english, not my mother language, thx before![Very Happy :D](/phpbb-smilies/icon_biggrin.gif)
[this passage] the output will be "this passage"
[[new section]] the output will be "new section"
my question is how to add different text for passage or section ? it'll be good to add different text if the game author have passage or section which use same words over and over again, such as Door, House, Room, Bag etc
i think like this
[passage_chapter3c {new passage}] the output will be "new passage"
[[section_last_chapter3a {last section}]] the output will be "last section"
sorry for my bad english, not my mother language, thx before
![Very Happy :D](/phpbb-smilies/icon_biggrin.gif)
Silver
26 Mar 2015, 09:56You need to learn how to use the text processor.
http://docs.textadventures.co.uk/quest/ ... essor.html
If I've understood your question. Although I see its for a gamebook so you might mean something else.
http://docs.textadventures.co.uk/quest/ ... essor.html
If I've understood your question. Although I see its for a gamebook so you might mean something else.
caberg
26 Mar 2015, 10:32pardon me but i think text processor doesn't fit for squiffy, because i have null in return, this is my test code
maybe there's some mistake in my code, please take a look
and thx for the quick reply![Very Happy :D](/phpbb-smilies/icon_biggrin.gif)
using text processor, click this link will go to section1 {page:section1:go to section1}
using squiffy snippet, click this link will show passage1 [passage1]
using squiffy snippet, click this link will go to section1 [[section1]]
[passage1]:
passage1 faucibus sit amet urna a
[[section1]]:
section1 Praesent eget eros dolor. Nam at ex vel lorem luctus rhoncus condimentum eu elit. Nullam lacinia tincidunt justo a facilisis.
maybe there's some mistake in my code, please take a look
and thx for the quick reply
![Very Happy :D](/phpbb-smilies/icon_biggrin.gif)
caberg
26 Mar 2015, 10:39good god, all this time i was blind.... it's already there http://docs.textadventures.co.uk/squiff ... sages.html LOL
Silver
26 Mar 2015, 12:43I didn't see this was the squiffy forum because I use new posts. Whoopsie. I think there is something similar for it though. Pleased you found your answer anyway.