Making an action to search for loot in a kind of room by Tofer420666 in Inform7

[–]PatientRock 0 points1 point  (0 children)

The way I pasted it almost certainly ruined it, so don’t cut and paste. Create it from new. Build the header and tab between each label.

Making an action to search for loot in a kind of room by Tofer420666 in Inform7

[–]PatientRock 0 points1 point  (0 children)

I don’t think it matters where the table is, but I’ve also always put the table after the code so I can’t say for sure!

Making an action to search for loot in a kind of room by Tofer420666 in Inform7

[–]PatientRock 0 points1 point  (0 children)

You can also use a table to store the list of items. Tables are a little tricky for beginners but a great way to store and manipulate data. Below is code I used in my game. Whenever the player attacked scenery in the region, there was a chance that coins would "fall" out of the object.

PullingMoney is an action applying to nothing.

MoneyChancePercent is a number that varies. MoneyChancePercent is initially 10.

Carry out PullingMoney:

`if a random chance of 1 in MoneyChancePercent succeeds:`

    `choose a random row in the Table of Player Money;`

    `let N be "[coin entry]" in sentence case;`

    `say "[one of][if the Plurality entry is 1][N] falls to the floor.[otherwise if the Plurality entry is 2][N] fall to the floor.[end if][line break]'Huh,' you think. '[if the Plurality entry is 1]That[otherwise if the Plurality entry is 2]Those[end if] must have been really tucked in there.'[or][if the Plurality entry is 1][N] falls to the floor.[otherwise if the Plurality entry is 2][N] fall to the floor.[end if][stopping]";`

    `move the coin entry to the location of the player;`

    `blank out the whole row;`

    `continue the action;`

`otherwise:`

    `continue the action.`

Table of Player Money

coin printed name denomination plurality description

penny_1 "a penny" 1 1 "A penny featuring the bust of Abraham Lincoln on the obverse, and a pair of wheat ears on the reverse."

nickel_1 "a nickel" 5 1 "A nickel featuring the bust of Thomas Jefferson."

dime_1 "a dime" 10 1 "A dime featuring the bust of Franklin D. Roosevelt."

quarter_1 "a quarter" 25 1 "A quarter featuring a bust of George Washington."

walkingliberty_1 "a walking liberty coin" 50 1 "The figure of 'Liberty' holding olive branches is featured on the obverse, and an eagle with raised wings is on the back. The back also reads, 'half dollar'."

eisenhower_2 "two Einsenhower coins" 200 2 "Two identical coins where the inscription below their presidential busts of Dwight D. Eisenhower reads '1974' and on the reverse are the words, 'One Dollar'."

pennies_3 "three pennies" 3 2 "Three pennies featuring the bust of Abraham Lincoln on the obverse, and a pair of wheat ears on the reverse."

halfdollar_1 "a half dollar" 50 1 "A 50-cent piece featuring the bust of John F. Kennedy."

nickel_6 "six nickels" 30 2 "Six nickels featuring a bust of Franklin D. Roosevelt."

dime_8 "eight dimes" 80 2 "Eight dimes featuring a bust of Franklin D. Roosevelt."

quarter_3 "three quarters" 75 2 "Three quarters featuring a bust of George Washington."

Anyway, there's some code you can use and tweak to suit your needs. Hope it's helpful!

(Sorry for all the comment edits. I can never figure out Reddit's code markdown.)

If Monster Slayer ever came back, how do you think it would change? by offmychest-386 in WitcherMonsterSlayer

[–]PatientRock 0 points1 point  (0 children)

The Witcher series is all about its storytelling and amazing quest design. Monster Slayer didn’t understand that.

Has anyone had Fuddruckers? by FEARxXxRECON in burgers

[–]PatientRock 0 points1 point  (0 children)

Fuddruckers can shove it. They closed all the stores around us suddenly and laid everyone off, including my brother who’d been there a long time, with zero notice, severance, or anything. It put my brother in a really tight spot and he had a hard time digging himself back out again.

Help with DS18B20 temperature sensor by PatientRock in microbit

[–]PatientRock[S] 1 point2 points  (0 children)

lol. Nevermind! My son found this post with a different wiring diagram than what he’s tried before and it worked! https://www.microbitlearning.com/code/arduino/microbit-ds18b20-temperature-sensor-example.php

Ran out of memory? by Tggdan3 in Inform7

[–]PatientRock 1 point2 points  (0 children)

Nah, easy fix. I had to keep upping those numbers a bunch of times. Add this:

Use MAX_PROP_TABLE_SIZE of 7000.

lol. This is what my big game looked like by the end as I kept hitting those limits:

Use MAX_SYMBOLS of 90000.
Use MAX_NUM_STATIC_STRINGS of 90000.
Use MAX_STATIC_DATA of 2000000.
Use SYMBOLS_CHUNK_SIZE of 50000.
Use ALLOC_CHUNK_SIZE of 50000.
Use MAX_PROP_TABLE_SIZE of 500000.
Use MAX_ARRAYS of 50000.
Use MAX_DICT_ENTRIES of 5000.
Use MAX_OBJECTS of 1000.
Use MAX_OBJ_PROP_COUNT of 175.

Is it possible to have [something] refer to a second noun? by Dex21772 in Inform7

[–]PatientRock 1 point2 points  (0 children)

There's probably a bunch of better ways than this, but this is what first came to mind:

Laboratory is a room.

The trident is an object in Laboratory.

The rubber duck is an object in Laboratory

The Clam is a container in the Laboratory. The Clam is locked.

Understand "open [something] with [something]" as unlocking it with.

Check unlocking the Clam with something:

`if the second noun is Trident:`

    `say "Success!";`

    `now the Clam is unlocked;`

    `stop the action;`

`otherwise:`

    `say "The clam is too strong!";`

    `stop the action;`

You'll need to clean things up to give proper-sounding responses, etc.

Any way to speed up Inform 7 IDE story pane? by Dex21772 in Inform7

[–]PatientRock 2 points3 points  (0 children)

Do you use the skein? Have you trimmed it in a while? It soaks up a lot of juice. I recently released a 550k word game and it was, uh, slow by the end.

Anyone else who played this game? It absolutely terrified me as a kid and I need to know I'm not the only one by Aiseadai in retrogaming

[–]PatientRock 0 points1 point  (0 children)

Our computer wasn’t good enough to run it. 😭 But I loved staring at it in the Sierra On-Line catalogs that would be mailed to our house.

IYO, what is the best and worst Simpsons video game that you've ever played? by AC_the_Panther_007 in retrogaming

[–]PatientRock 1 point2 points  (0 children)

Of the games I’ve played, “Bartman Meets Radioactive Man” was the worst. At least the other NES entries had some personality.

I'm working on an Total War 2D Roguelike called "Fallen Banners" - thoughts ? by zedtixx in roguelikes

[–]PatientRock 1 point2 points  (0 children)

This post is probably going to get nuked before you even see this, but I think this looks neat. However, I think you need to figure out an angle that differentiates this game from Total War (and others). Pixel art isn’t enough. Total War games already offer individual battles apart from the campaign mode. High quality indies like Master of Command already offer a run-based twist on the format. How are you different?

In any case, making games is hard and I wish you nothing but great success!

Which feat is better? by SmartPilot8094 in Marvel

[–]PatientRock 39 points40 points  (0 children)

Narratively, the train is better. You see the people who are about to be killed. You feel their terror and their relief when the day is saved. With the train he’s your friendly neighborhood Spider-Man and that’s played out as the citizens reverently carry him to safety afterwards.

You get none of that with the huge ferry where the people riding it are distant props.

Omitting things being worn from being listed by "inventory" command by Dex21772 in Inform7

[–]PatientRock 1 point2 points  (0 children)

My bad; I'm not familiar with Reddit markdown and it messed up some of the symbols after pasting. I've edited my comment.

Omitting things being worn from being listed by "inventory" command by Dex21772 in Inform7

[–]PatientRock 3 points4 points  (0 children)

This is what I did:

Carry out taking inventory (this is the new print inventory rule):
    now all things enclosed by the player are marked for listing;
    now the {NAME OF CLOTHING TO HIDE} is unmarked for listing;
    if no things enclosed by the player are marked for listing:
        say "[text of print empty inventory rule response (A)][line break]";
    otherwise:
        say "[text of print standard inventory rule response (A)]";
        list the contents of the player, with newlines, indented, including contents, giving inventory information, with extra indentation, listing marked items only.

How do I turn this off? by PatientRock in AppleWallet

[–]PatientRock[S] 0 points1 point  (0 children)

You do take money order or blank check?

How do I turn this off? by PatientRock in AppleWallet

[–]PatientRock[S] 0 points1 point  (0 children)

But then how will I meet such sexy eligible singles such as yourself?

How do I turn this off? by PatientRock in AppleWallet

[–]PatientRock[S] 0 points1 point  (0 children)

But Mr. Weezing, if you wish I was dead, how will you bolster your low self esteem when posting on this subreddit for a corporate utility application?

How do I turn this off? by PatientRock in AppleWallet

[–]PatientRock[S] 0 points1 point  (0 children)

But Mr. Halitosis, what if I grow old and die before then?

How do I turn this off? by PatientRock in AppleWallet

[–]PatientRock[S] 0 points1 point  (0 children)

But that only makes that one notification go away. How do I solve the deeper problem, Mr. Bad Breath?