Kimblee88 wrote:First of all, I should say that I new to this. REALLY new to this. If most Newbies are preschoolers, I'm still in the NICU.
I'm trying to make the player able to examine things, using passages for the examined objects/people. So far so good.
@start start
[[SkippyDesc]]:
Skippy is about 6 ft. tall, and is dressed in blue and green.
[[start]]:
Your companion, [Skippy](@replace Skip=SkippyDesc), is here.
{label:Skip=He's observing the painting.}
[[continue . . . ]](Sec2)
[[Sec2]]:
[Skippy](@replace Skip2=SkippyDesc) agrees you should exit the building.
{label:Skip2=He's looking afraid.}
[[continue . . . ]](Sec3)
[[Sec3]]:
End it.
Dennis Carlyle wrote:It's hard to know exactly what you're trying to do without seeing your code. But maybe this will be some help. The following uses the {label}/(@replace) function (see the docs here:)
http://docs.textadventures.co.uk/squiffy/replace.html
If you want links in different sections to go to the same block of text, then this method will only work by having the text you want repeated in its own section.
Note: You can have a {label:labelName=} without any content after the "=" if you want, so the description can appear where there was no text to start with.
(CODE)
TyCamden wrote:
How would you make it so that if you click on Skippy in any section, it would no longer give you the choice in any following section (but if you did not, it still would) ?
[[Sec3]]:
{if SkipSeen= 1:{NoSkipLink}}{else:{SkipLink}}
[NoSkipLink]:
Skippy is standing by the fountain.
[SkipLink]:
[Skippy](@replace Skip3=SkippyDesc) is standing by the fountain.
{label:Skip3=}
Dennis Carlyle wrote:"Kimblee88"
First of all, I should say that I new to this. REALLY new to this. If most Newbies are preschoolers, I'm still in the NICU.
I'm trying to make the player able to examine things, using passages for the examined objects/people. So far so good.
It's hard to know exactly what you're trying to do without seeing your code. But maybe this will be some help. The following uses the {label}/(@replace) function (see the docs here:)
http://docs.textadventures.co.uk/squiffy/replace.html
If you want links in different sections to go to the same block of text, then this method will only work by having the text you want repeated in its own section.
Note: You can have a {label:labelName=} without any content after the "=" if you want, so the description can appear where there was no text to start with.
@start start
[[SkippyDesc]]:
Skippy is about 6 ft. tall, and is dressed in blue and green.
[[start]]:
Your companion, [Skippy](@replace Skip=SkippyDesc), is here.
{label:Skip=He's observing the painting.}
[[continue . . . ]](Sec2)
[[Sec2]]:
[Skippy](@replace Skip2=SkippyDesc) agrees you should exit the building.
{label:Skip2=He's looking afraid.}
[[continue . . . ]](Sec3)
[[Sec3]]:
End it.
But its a perfect plan. No way it could go badly. At least you got the door open.
[[Enter]](Begin Enter)
Take a better look:
[Sora] x [House](Slade house)
[Sora]:
In a long ivory duster coat, black tank top, and pleated gray skirt, Sora is not dressed for an adventure. Her handbag may contain something useful, but maybe not useful to anyone besides her. Her lips are a dark wine red and her blue eyes rimmed with a thick line of black liner, which makes her colorless skin almost glow in its sheer whiteness.
The door pops open with a creak. You probably should have thought about oiling the hinges, yeah? Sora follows behind you, her hands shoved up into her sleeves. Her breathing is occasionally inturrupted by a snort at your 'plan' to take on a known mercenary in his own home. But she is your family, so she won't say she told you so.
She did tell you so though.
The front door opens into a small foyer, to your left is a flight of stairs with soft speaking voices audible above your head. Ahead of you is a living room with cream colored carpet and a beige leather sectional set. A bookcase with many hardback and paperback books, as well as small souvineers from the owner's travels is beside a sliding glass door with a closed set of blinds. Through a small gap, a group is visible outside.
On the other side of the glass door is an archway into a kitchen. A powder room is set under the stairs.
Look at:
[Sora] x [Stairs] x [Living Room] x [Bookcase]
Action:
[[Go outside]](end)
[Sora]:
In a long ivory duster coat, black tank top, and pleated gray skirt, Sora is not dressed for an adventure. Her handbag may contain something useful, but maybe not useful to anyone besides her. Her lips are a dark wine red and her blue eyes rimmed with a thick line of black liner, which makes her colorless skin almost glow in its sheer whiteness.
Being an albino, she is functionally blind, although she sees well enough to mock almost everything around her. She thinks you might be an idiot. You haven't proved her wrong yet.
But its a perfect plan. No way it could go badly. At least you got the door open.
[[Enter]](Begin Enter)
Take a better look:
[Sora] x [House](Slade house)
[Sora]:
{SoraDesc_1}
{SoraDesc_2}
[[SoraDesc_1]]:
In a long ivory duster coat, black tank top, and pleated gray skirt, Sora is not dressed for an adventure. Her handbag may contain something useful, but maybe not useful to anyone besides her. Her lips are a dark wine red and her blue eyes rimmed with a thick line of black liner, which makes her colorless skin almost glow in its sheer whiteness.
[[SoraDesc_2]]:
Being an albino, she is functionally blind, although she sees well enough to mock almost everything around her. She thinks you might be an idiot. You haven't proved her wrong yet.