Text formatting for items and rooms

This commit is contained in:
3wc
2024-02-23 11:48:33 -03:00
parent 624b538ad8
commit 035f69d9fc
4 changed files with 73 additions and 12 deletions

View File

@ -5,37 +5,38 @@ title: Room:quarters
<<declare $hangarKeyFound = false>>
<<declare $sleepingMatSetUp = false>>
<<if not $quartersIntroSeen>>
You: It's the crew quarters.
You: It's the [room]crew quarters[/room].
You: Well, it will be. Set-up hasn't started yet.
You: That was meant to be one of my first jobs after defrost...
You: ...but it doesn't exactly seem like a priority now.
<<set $quartersIntroSeen to true>>
<<endif>>
You: Maybe there's something useful here?
-> Search the lockers (perception) <<if not $hangarKeyFound>>
-> Search the lockers [ability](perception)[/ability] <<if not $hangarKeyFound>>
<<set $roll to dice(6)>>
<<if $roll > 0>>
You: Aha! A small piece of paper with the **hangar access code**.
You: Aha! A small piece of paper with the [item]access code[/item] for the [room]hangar[/room].
<<room hangar>>
<<set $hangarKeyFound to true>>
<<else>>
You: Just some dust bunnies. Guess they stowed away from Earth.
<<endif>>
-> Set up a sleeping mat (ingenuity) <<if not $sleepingMatSetUp>>
-> Set up a sleeping mat [ability](ingenuity)[/ability] <<if not $sleepingMatSetUp>>
<<set $roll to dice(6)>>
<<if $roll > 2>>
You: Nice, at least I have somewhere to crash now.
<<set $sleepingMatSetUp to true>>
<<else>>
You: Hmm, I was never good at this camping stuff. Maybe I can find somewhere else to rest.
You: [failure]Hmm, I was never good at this camping stuff. Maybe I can find somewhere else to rest.[/failure]
<<endif>>
-> Leave
===
title: Room:hangar
---
You: The **hangar** seems eerily deserted.
You: The [room]hangar[/room] seems eerily deserted.
===
title: Room not open
---
You: Hmm, that part of the ship is still inaccessible. I wonder how to get in?
<<room hangar>>
===