画廊回想室
你可以把画廊放在固定位置比如卧室大厅之类的片段,或者侧边栏放一个随时可以观看的,你的游戏就此有了集卡功能
思路是判断变量绝对等于1,每张画廊相片建一个变量并预设为0,从画廊跳转到相片页面,文字颜色b1n3之类的用css样式表写,可用可不用,在游戏过程中在进入你所设定的剧情时给出照片,并将这照片对应的变量设为1,然后就可以在后续画廊重复看了,照着示例片段重复写代码就好了,设定变量方法参照StoryInit片段
【Twine画廊图集功能,twine入门编程代码,跟着up一起做html文字游戏】 https://www.bilibili.com/video/BV19m421G7r2/?share_source=copy_web&vd_source=897a2a60bf36162780637a40c443fdcd
/*画廊片段*/
🖼️画廊
<b><n3><i>剩余照片 : $photoRemain </i></n3></b>
 
<<if $halloween ===1>>\
[[🎃 万圣节特别画廊|🎃halloween-gallery]]
<</if>>\
 
<b><b1>人名A:</b1></b>
<<if $photo1 === 1 >> [[ 扑倒在楼梯的老友|Bphoto1]]<</if>>
<<if $photo2 === 1 >> [[ 俱乐部|Bphoto2]]<</if>>
<<if $photo5 === 1 >> [[ 描述1|Bphoto3]]<</if>>
<<if $photo8 === 1 >> [[ 描述2|Bphoto4]]<</if>>
<<if $photo10 === 1 >> [[描述3|Bphoto5]]<</if>>
<<if $photo14 === 1 >> [[ 描述|Bphoto6]]<</if>>
<<if $photo19 === 1 >> [[ 描述|Bphoto7]]<</if>>
<<if $photo22 === 1 >> [[ 描述|Bphoto8]]<</if>>
<<if $photo28 === 1 >> [[ 描述|Bphoto9]]<</if>>
 
<b><hi1>人名B:</hi1></b>
<<if $photo4 === 1 >> [[ 描述|Hphoto1]]<</if>>
<<if $photo7 === 1 >> [[ 描述|Hphoto2]]<</if>>
<<if $photo11 === 1 >> [[ 描述|Hphoto3]]<</if>>
<<if $photo13 === 1 >> [[ 描述|Hphoto4]]<</if>>
<<if $photo18 === 1 >> [[描述|Hphoto5]]<</if>>
<<if $photo24 === 1 >> [[ 描述|Hphoto6]]<</if>>
<<if $photo27 === 1 >> [[ 描述|Hphoto7]]<</if>>
 
<b><mi1>人名C:</mi1></b>
<<if $photo3 === 1 >> [[ 描述|Mphoto1]]<</if>>
<<if $photo6 === 1 >> [[ 描述|Mphoto2]]<</if>>
<<if $photo9 === 1 >> [[描述|Mphoto3]]<</if>>
<<if $photo15 === 1 >> [[ 描述|Mphoto4]]<</if>>
<<if $photo17 === 1 >> [[ 描述|Mphoto5]]<</if>>
<<if $photo20 === 1 >> [[ 描述|Mphoto6]]<</if>>
<<if $photo23 === 1 >> [[描述|Mphoto7]]<</if>>
<<if $photo26 === 1 >> [[ 描述|Mphoto8]]<</if>>
<<if $photo29 === 1 >> [[ 描述|Mphoto9]]<</if>>
 
<b><l1>人名D:</l1></b>
<<if $photo12 === 1 >> [[ 描述|Lphoto1]]<</if>>
<<if $photo16 === 1 >> [[ 描述|Lphoto2]]<</if>>
<<if $photo21 === 1 >> [[ 描述|Lphoto3]]<</if>>
<<if $photo25 === 1 >> [[ 描述|Lphoto4]]<</if>>
<<if $photo30 === 1 >> [[ 描述|Lphoto5]]<</if>>
 
<b><summer1> 夏天: </summer1></b>
<<if $photo18 === 1 >> [[ Friendly Looking Summer|Sphoto1]]<</if>>
 
[[返回|家族城堡大厅]]
/*第一张画廊相片Bphoto1*/
[[🖼️画廊]]
[[🚪返回|家族城堡大厅]]
 
<n3>你老友的照片,她扑倒在楼梯上</n3>
 
<img src="img/GM6IjNtbMAAdpBC.jpg" class=center >
[[🖼️画廊]]
[[🚪返回|家族城堡大厅]]
/*StoryInit片段里*/
/*Photos画廊*/
/*Photos*/
<<set $photoRemain to 21>>
<<set $photo1 to 1>>
<<set $photo2 to 0>>
<<set $photo3 to 0>>
<<set $photo4 to 0>>
<<set $photo5 to 0>>
<<set $photo6 to 0>>
<<set $photo7 to 0>>
<<set $photo8 to 0>>
<<set $photo9 to 0>>
<<set $photo10 to 0>>
<<set $photo11 to 0>>
<<set $photo12 to 0>>
<<set $photo13 to 0>>
<<set $photo14 to 0>>
<<set $photo15 to 0>>
/*区分1*/
<<set $photo16 to 0>>
<<set $photo17 to 0>>
<<set $photo18 to 0>>
<<set $halloween to 0>>
/*区分2*/
<<set $photo18 to 0>>
<<set $photo19 to 0>>
<<set $photo20 to 0>>
<<set $photo21 to 0>>
/*区分3*/
/*dormroom*/
<<set $photo22 to 0>>
<<set $photo23 to 0>>
<<set $photo24 to 0>>
/*区分4*/
<<set $photo25 to 0>>
<<set $photo26 to 0>>
<<set $photo27 to 0>>
/*区分5*/
<<set $photo28 to 0>>
<<set $photo29 to 0>>
<<set $photo30 to 0>>
 
2024-07-30
浏览428
方糖
登录后评论
评论
分享