adding different text in passages and sections

caberg
for 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 :D

Silver
You 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.

caberg
pardon me but i think text processor doesn't fit for squiffy, because i have null in return, this is my test code

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 :D

caberg
good god, all this time i was blind.... it's already there http://docs.textadventures.co.uk/squiff ... sages.html LOL

Silver
I 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.

This topic is now closed. Topics are closed after 180 days of inactivity.

Support

Forums