Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

So I've been playing around with sugarcube some more and I'll admit the format of the game I'm trying to make copies from yours a decent amount (imitation is the sincerest form of flattery). I'm trying to do the exploration type stuff you do when finding the legends (like WING, SURFBOARD that stuff) but have no idea how to do it while closing the other options. It seems to me you made a complex type of <<linkreplace>> macro so I'm curious what you did to make those work. Trying to find stuff on forums has been a headache. 

Getting that system to work was kind of a pain, luckily once it's running you can just copy and paste it each time you need it.
This is the basic system I use for the exploration, it's the first part of Mewtwo's section, there's three of these on each exploration page, the page links back to itself until the player picks the right option on the last choice and moves onto the next page.

<<if $dungeon is 1>>Even though you're near the entrance of the cave, it's already getting pretty dark in here, you can hear Pokemon scurrying around in the murky blackness, there must be something you can do to help yourself here.
Use your
<span id="machete">\
    <<click "MACHETE">>\
        <<replace "#machete">>MACHETE<</replace>>\
        <<replace "#wings">>WINGS<</replace>>\
        <<replace "#surfboard">>SURFBOARD<</replace>>\
        <<replace "#climbing">>CLIMBING GEAR<</replace>>\
        <<replace "#flashlight">>FLASHLIGHT<</replace>>\
        <<replace "#output">>
        You grab your machete and swing wildly at the darkness, you hear a loud clang and are suddenly surrounded by light as a Magneton violently electrocutes you!
The light doesn't last long enough to help you see though...
[[You go nowhere->1 Mewtwo Cave 1]]<</replace>>\
    <</click>> \
</span>\
, \
<span id="wings">\
    <<click "WINGS ">>\
        <<replace "#machete">>MACHETE<</replace>>\
        <<replace "#wings">>WINGS<</replace>>\
        <<replace "#surfboard">>SURFBOARD<</replace>>\
        <<replace "#climbing">>CLIMBING GEAR<</replace>>\
        <<replace "#flashlight">>FLASHLIGHT<</replace>>\
        <<replace "#output">>
        You pull the Wings onto your arms and flap madly, they completely fail to lift you off of the ground and only attract the attention of a nearby Venomoth, she blows some dust at you before fluttering away.
[[You go nowhere->1 Mewtwo Cave 1]]<</replace>>\
    <</click>> \
</span>\
, \
<span id="surfboard">\
    <<click "SURFBOARD ">>\
        <<replace "#machete">>MACHETE<</replace>>\
        <<replace "#wings">>WINGS<</replace>>\
        <<replace "#surfboard">>SURFBOARD<</replace>>\
        <<replace "#climbing">>CLIMBING GEAR<</replace>>\
        <<replace "#flashlight">>FLASHLIGHT<</replace>>\
        <<replace "#output">>
        You drop your surfboard on the floor and balance carefully on it... you're not on any water though so it does nothing, a watching Raichu seems interested though!
[[You go nowhere->1 Mewtwo Cave 1]]<</replace>>\
    <</click>> \
</span>\
, \
<span id="climbing">\
    <<click "CLIMBING GEAR ">>\
        <<replace "#machete">>MACHETE<</replace>>\
        <<replace "#wings">>WINGS<</replace>>\
        <<replace "#surfboard">>SURFBOARD<</replace>>\
        <<replace "#climbing">>CLIMBING GEAR<</replace>>\
        <<replace "#flashlight">>FLASHLIGHT<</replace>>\
        <<replace "#output">>
        You put your Climbing Gear to good use and start scaling a nearby wall, you can't really go anywhere since you can't see, you see even less when a Golbat lands her big butt on your face!
[[You go nowhere->1 Mewtwo Cave 1]]<</replace>>\
    <</click>> \
</span>\
 or \
<span id="flashlight">\
    <<click "FLASHLIGHT">>\
        <<replace "#machete">>MACHETE<</replace>>\
        <<replace "#wings">>WINGS<</replace>>\
        <<replace "#surfboard">>SURFBOARD<</replace>>\
        <<replace "#climbing">>CLIMBING GEAR<</replace>>\
        <<replace "#flashlight">>FLASHLIGHT<</replace>>\
        <<replace "#output">>
        Your Flashlight flickers to life and illuminates the Cave, it should be a lot easier to get around now! Pokemon scurry away from the light as you make your way deeper into the cave, you eventually find a way deeper down.
<<set $dungeon += 1>>
[[You descend into the depths->1 Mewtwo Cave 1]]<</replace>>\
    <</click>> \
</span>.\
<span id="output"></span>\
\<</if>>

One thing you can do if you want, is import my game into Twine and look through the code to see how it all works, doing that with other games is part of how I learned in the first place!

That's mighty kind of you to offer I'll take a look. Thank you :)