r/Inform7•
Tofer420666

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

Help!

I'm still pretty new to inform, I've been working on a game for about four months now but I've come to a problem that I'm just totally stumped on. I have multiple rooms that are streets, and i have a street defined as a kind of room. I want to make it so that when a player searches a street, (I have 'search the street' defined as looking with a check for if the room isn't a street.) they have a random chance of finding one of many different objects, and I would like for there to be multiple of each object since there are a lot of street rooms.

I've been googling for days with no luck, I've tried so many combinations that I don't totally even understand. I've only gotten it to /sort of/ work once when I with an instead of searching and a random chance, and I'm not even sure what else i had in there to make it work at this point but it would only work for one object and I couldn't even make it multiple of that one object. I don't know if any of this is even going to make sense but I'm desperate. I just want to be able to search the street and have a random chance of finding various objects, but only one at a time.

Posted Jun 4, 2026, 12:55 AM UTC

24
Loading comments…