From db158091afdc670f7e7b34fd1cc5fa0134f045c7 Mon Sep 17 00:00:00 2001 From: Rakeela Windrider Date: Sun, 21 Sep 2025 05:30:18 +0000 Subject: [PATCH] Skillbook command, more work on card houses I don't have a unified system for making skill checks, am I just going to scattershot all my skill checks according to whatever vibes I'm feeling at each point in the code? --- story.ni | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/story.ni b/story.ni index f45f45a..ad415bf 100644 --- a/story.ni +++ b/story.ni @@ -51,7 +51,29 @@ The list of veserus aquatic semblances is always {fish-like, orca-like, dolphin- An alloace spectrum is a kind of value. The alloace spectrums are allosexual, sex-positive asexual, and sex-repulsed asexual. A person has an alloace spectrum. The alloace spectrum of a person is usually sex-repulsed asexual. Displaying sheet is an action applying to nothing. Understand "sheet" as displaying sheet. Instead of displaying sheet: - say "This command has not yet been implemented." + say "This command has not yet been implemented."; + tabulate the skills of the player; + say "Your top three skills are: [line break][row 1 in Table of Extracted Skills][line break][row 2 in Table of Extracted Skills][line break][row 3 in Table of Extracted Skills]" + +Displaying skillbook is an action applying to nothing. Understand "skillbook" as displaying skillbook. Instead of displaying skillbook: + tabulate the skills of the player; + say "[row 1 in Table of Extracted Skills][line break][row 2 in Table of Extracted Skills][line break][row 3 in Table of Extracted Skills][line break][row 4 in Table of Extracted Skills][line break][row 5 in Table of Extracted Skills][line break][row 6 in Table of Extracted Skills][line break][row 7 in Table of Extracted Skills][line break][row 8 in Table of Extracted Skills][line break][row 9 in Table of Extracted Skills][line break][row 10 in Table of Extracted Skills][line break][row 11 in Table of Extracted Skills][line break][row 12 in Table of Extracted Skills][line break][row 13 in Table of Extracted Skills][line break][row 14 in Table of Extracted Skills][line break][row 15 in Table of Extracted Skills][line break][row 16 in Table of Extracted Skills][line break][row 17 in Table of Extracted Skills][line break][row 18 in Table of Extracted Skills][line break][row 19 in Table of Extracted Skills][line break][row 20 in Table of Extracted Skills][line break][row 21 in Table of Extracted Skills][line break][row 22 in Table of Extracted Skills][line break][row 23 in Table of Extracted Skills][line break][row 24 in Table of Extracted Skills][line break][row 25 in Table of Extracted Skills][line break][row 26 in Table of Extracted Skills][line break]" + +Table of Extracted Skills +Skill Skill Level Extra XP +a skill a number a number +with 30 blank rows + +To tabulate the skills of (P - a person): + blank out the whole of the Table of Extracted Skills; + repeat with X running through the list of XP counters tallying P: + choose a blank row in the Table of Extracted Skills; + now skill entry is the associated skill of X; + now skill level entry is the level of X; + now Extra XP entry is the XP of X; + sort the Table of Extracted Skills in skill order; + sort the Table of Extracted Skills in reverse Extra XP order; + sort the Table of Extracted Skills in reverse Skill Level order. A bathhouse is a kind of room. @@ -1750,11 +1772,12 @@ Personal Commands: [Personal Command Block in Ethriel]" Understand "visit cardhouse" or "visit a cardhouse" or "visit card house" or "visit a card house" as visiting a cardhouse. Visiting a cardhouse is an action applying to nothing. Instead of visiting a cardhouse while current city is Ethriel: - let card skill check be the mental games level of the player + 1; + let card skill check be the mental games level of the player + 2; If the cardhouseCooldown of the player is 0: If a random chance of 1 in 10 succeeds: say "You have a run of excellent luck at the cardhouse. Nobody's playing for stakes — that just provokes geomantic cheating — but you still get that rush of turning up the right cards at the right times to make your clever strategies work out. You're looking forward to your next session. (Cardhouse cooldown reset!)"; now entertainNum of the player is entertainNum of the player + 2; + now cardhouseCooldown of the player is 0; give 4 XP to the player in mental games; Otherwise: If a random chance of 1 in card skill check succeeds: @@ -1766,6 +1789,7 @@ Instead of visiting a cardhouse while current city is Ethriel: give 20 XP to the player in mental games; give 4 XP to the player in carousing; now entertainNum of the player is entertainNum of the player + 4; + now cardhouseCooldown of the player is 0; Otherwise: give 2 XP to the player in mental games; now cardhouseCooldown of the player is 20; @@ -1776,18 +1800,21 @@ Instead of visiting a cardhouse while current city is Ethriel: now entertainNum of the player is entertainNum of the player + 2; now securityNum of the player is securityNum of the player + 1; now cardhouseCooldown of the player is 12; + give 10 XP to the player in mental games; Otherwise: say "You play competent games with several decks at the cardhouse. You win some, you lose some, and the hours pass quickly. Since you're not here 'with' someone, you miss out on the personal connection with another dragon, but on the other hand nothing stops you from dropping in on whatever game is gathering. Cardhouses are a good time. They don't charge that much and they have decks for dozens of games."; now entertainNum of the player is entertainNum of the player + 1; now cardhouseCooldown of the player is 16; + give 4 XP to the player in mental games; follow the turnpass rule; Otherwise: say "You feel like your last visit to the cardhouse was pretty recent. Are you sure you want to go again already?"; if player consents: - if a random chance of card skill check in 40 succeeds: + if a random chance of card skill check in 30 succeeds: If a random chance of 1 in 10 succeeds: say "You have a run of excellent luck at the cardhouse. Nobody's playing for stakes — that just provokes geomantic cheating — but you still get that rush of turning up the right cards at the right times to make your clever strategies work out. You're looking forward to your next session. (Cardhouse cooldown reset!)"; now entertainNum of the player is entertainNum of the player + 2; + now cardhouseCooldown of the player is 0; give 4 XP to the player in mental games; Otherwise: If a random chance of 1 in card skill check succeeds: @@ -1798,32 +1825,38 @@ Instead of visiting a cardhouse while current city is Ethriel: say "You're GOOD at these games, so it's worth it to meet players who can show you the floor like this. The cardhouse isn't usually this hot. There's some real legends stopping by today. You're raring to get back into the scene. (Cardhouse cooldown reset!)"; give 20 XP to the player in mental games; give 4 XP to the player in carousing; + now cardhouseCooldown of the player is 0; now entertainNum of the player is entertainNum of the player + 4; Otherwise: give 2 XP to the player in mental games; now cardhouseCooldown of the player is 20; If the mental games level of the player is 0: - say "This is kind of what you have to expect when you don't know how to play the games. It'll take some tolerance for defeat to actually get good at cards."; + say "This is kind of what you have to expect when you don't know how to play the games. It'll take some tolerance for defeat to actually get good at cards. You might also consider buying a book on card strategies."; Otherwise if a random chance of card skill check in 150 succeeds: say "You're the star of the cardhouse. You know the decks, you know your strats, and your bets always land... Well, so to speak. You're not playing for stakes. Geomantic manipulation of the odds is too easy for dragons to play for stakes. Still, it's a ton of fun, and quite cheap. Cardhouses don't charge that much and they have decks for dozens of games."; now entertainNum of the player is entertainNum of the player + 2; now securityNum of the player is securityNum of the player + 1; now cardhouseCooldown of the player is 12; + give 10 XP to the player in mental games; Otherwise: say "You play competent games with several decks at the cardhouse. You win some, you lose some, and the hours pass quickly. Since you're not here 'with' someone, you miss out on the personal connection with another dragon, but on the other hand nothing stops you from dropping in on whatever game is gathering. Cardhouses are a good time. They don't charge that much and they have decks for dozens of games."; now entertainNum of the player is entertainNum of the player + 1; now cardhouseCooldown of the player is 16; + give 4 XP to the player in mental games; Otherwise: If a random chance of 1 in 10 succeeds: say "You have a run of excellent luck at the cardhouse. Nobody's playing for stakes — that just provokes geomantic cheating — but you still get that rush of turning up the right cards at the right times to make your clever strategies work out. You're looking forward to your next session. (Cardhouse cooldown reset!)"; now entertainNum of the player is entertainNum of the player + 2; give 4 XP to the player in mental games; + now cardhouseCooldown of the player is 0; Otherwise if a random chance of 1 in card skill check succeeds: say "The regulars at the cardhouse step all over you. You can't get anything right in the games you play. The other gamergons make sympathetic noises at you, but it doesn't help. You feel boredom with a tinge of despair as you push yourself through hopeless game after hopeless game."; now cardhouseCooldown of the player is 28; now securityNum of the player is securityNum of the player - 2; now entertainNum of the player is entertainNum of the player - 2; give 2 XP to the player in mental games; + if the mental games level of the player < 2: + say "Even if you want to learn the games, maybe you should wait a week before you come back in, just to recover emotionally and be ready to lose. You might also consider buying a book on card strategies."; Otherwise if a random chance of card skill check in 120 succeeds: say "You do well. Really well. You pick familiar strategies in familiar games, and find your opponents falling into predictable, exploitable patterns. The other gamergons acknowledge your skill graciously and you bask in a bit of praise. Still, it's all a little too familiar. It passes the hours tolerably well — and rather cheaply, given the cost structure at a cardhouse."; now securityNum of the player is securityNum of the player + 1;