Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

"display" question

$
0
0
Hi,

I work with Twine 2.1.1 and sugarcube 2.14

To make some passage lighter, I made a "display passage".

The purpose of this "display passage" is to show some image depending of a rand.
Here is the code :
<<if $Woman>><<if $WS2==1>>[img[Pics/NPC/Random/NW1.jpg]]<<set $Woman to false>><<elseif $WS2==2>>[img[Pics/NPC/Random/NW2.jpg]]<<set $Woman to false>><<elseif $WS2==3>>[img[Pics/NPC/Random/NW3.jpg]]<<set $Woman to false>><</if>><<else>>[img[Pics/Town/Streets/Main Street.jpg]]<</if>>

<<if $Schoolgirl>><<if $SG2==1>>[img[Pics/NPC/Random/NSG1.jpg][$Schoolgirl to false]]<<elseif $SG2==2>>[img[Pics/NPC/Random/NSG2.jpg][$Schoolgirl to false]]<<elseif $SG2==3>>[img[Pics/NPC/Random/NSG3.jpg][$Schoolgirl to false]]<</if>><<else>>[img[Pics/Town/Streets/School street.jpg]]<</if>>

The fact is that "$Woman" is in a different passage than "Schoolgirl". So if I call the "display passage", I see two pics.

So my question is : Is there a way to call only a part of a "display passage"?
I look in the sugarcube documentation, and I don't find it.

Thanks.

Viewing all articles
Browse latest Browse all 1844

Trending Articles