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

Audio only mistake (sugarcube 2.11.0)

$
0
0
I've made a bit of a mistake at one of my passages, where I'm wrongly relying on the audio to tell the player what's going on.

All this works as it should, but I need to trigger two lines of text - one for when the car starts, another for when it fails, but I have real problems with (if) nesting and don't know how to insert them into all this.
\ <<if visited() is 1>>The car's been ransacked, no doubt several times and a thorough search reveals nothing of value.
\ <<if $hasGas and $hasPlug>><<link "Two wires">><<audio "out_side" volume 0.1>><<audio "car_start" volume 100 fadeoverto 11 0.0>><<timed 10s>><<goto "village">><</timed>><</link>> hang from the broken plastic under the steering wheel.
\ <<else>>
\ <<link "Two wires">><<audio "car_fail" play>><</link>> hang from the broken plastic under the steering wheel. 

The road continues [[north.]]<</if>>
<<else>>
\The car's still here.
\ <<if $hasGas and $hasPlug>><<link "Two wires">><<audio "out_side" volume 0.1>><<audio "car_start" volume 100 fadeoverto 11 0.0>><<timed 10s>><<goto "village">><</timed>><</link>> hang from the broken plastic under the steering wheel.
\ <<else>>
\ <<link "two wires">><<audio "car_fail" play>><</link>> hang from the broken plastic under the steering wheel. 

The road continues [[north.]]<</if>>
<</if>>
As is stands, the player won't know what's going on if he has his speakers off or has disabled the sound from my options.

Viewing all articles
Browse latest Browse all 1844

Trending Articles