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

Sugarcube 2 - Replacing placeholder text

$
0
0
Hello, everyone. I'm currently working on my first Twine project as part of my Master's thesis. Although things are progressing nicely, I seem to have run into a snag.
<<nobr>>
<<set $location = "Woods [South] - Shack">>
<<set $roomWidth = 10>>
<<set $roomLength = 10>><</nobr>>
<<display "header">>
You pass through the [[door|woods1_entrance][$playerMoves +=1]] of the shack and scan your surroundings. The shack is <<print $roomWidth>> feet by <<print $roomLength>> feet. On the east wall, a small rusty <span id="shovel"><<click "shovel">></span><<replace "#shovel">>shovel<</replace>><<replace "#output1">>You pick up the shovel and put it in your backpack.<</replace>><</click>> hangs on a nail.

On the north wall, there is a small wooden table. On it, sits a <span id="lamp"><<click "lamp">></span><<replace "#lamp">><span id="keyItem">lamp</span><</replace>><<replace "#output1">>You pick up the <span id="keyItem">lamp</span> and put it in your backpack.<</replace>><</click>>.

<span id="output1"></span>

I've read TheMadExiles' post on a similar question, but what I'm wondering is can what I'm wanting to do be done?

For what it's worth, I've declared outputs' 1-5 in my story's CSS as per F2Andy's advice. If I could have my way, I'm looking for a solution that's somewhat of a "melding" of what I'm already doing and what F2Andy is doing.

Thanks!

Viewing all articles
Browse latest Browse all 1844

Trending Articles