You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to add text for objects which will no longer show up after the object is taken (when revisiting the same passage).
Below are the relevant parts of my code -
<obj id="Keys" inventoryName="A Set of Keys">
<action id="Get">
<when>!story.isInInventory('Keys')</when>
You take the Set of Keys.
{{ story.putInInventory('Keys'); }}
{{ story.disable('findKeys'); }}
</action>
</obj>
<page id="tree_top">
<img width="480" src="images/Cyprus_Tree_Top.png"></img>
You're in the top of a tall cypress <show paragraph="seeKeys" id="findKeys">tree</show>.
Exists: <turn to="dismal_swamp">Down</turn>
</page>
<paragraph id="seeKeys">You see a Set of <interact with="Keys">Keys</interact> here.</paragraph>
This may be an issue of me not understanding Dedalus properly, but it has kept me from using it. My full code is here.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi there! I know your post is super old, but in case you're still interested, or if there's someone else is just diving into Dedalus (like I am), here's how I've performed an inventory check that's influenced the text that appears on a page.
<paragraphid="lookAround"><p>You're standing along the docks.</p>
{{? story.isInInventory('cellphone') }}
<p>You slide your cellphone out of your pocket and check your signal - nothing.</p>
{{?}}
</paragraph>
If the item is consumable or something that the player can lose, I'd instead create a variable that you toggle when the item is consumed/lost/missed that you use as the condition instead.
I can't seem to add text for objects which will no longer show up after the object is taken (when revisiting the same passage).
Below are the relevant parts of my code -
This may be an issue of me not understanding Dedalus properly, but it has kept me from using it. My full code is here.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: