A few dumb questions

Aarca
30 Jul 2016, 21:05I need help with a few things...
First off is, my exits doesn't seem to be working properly. I set it as a non-directional exit. The name of the rooms I want to go to are "kitchen" and "yard" but when I type "go to kitchen" or "go to yard" my game says "you can't go there." I don't want the player to have to type go north or go in because that doesn't make any sense. I checked, and the exits are visible, not locked, and they're not a look direction.
Secondly, is there any way to make it so the player can only do a specific amount of things each day? My game is set in an apocalyptic world so I want the player to be able to to three things each day like scout around or raid a store. Then it turns night and they can't to anything outside their house. But I don't want things like eating or reading to count towards that.
I'm a noob so any help is appreciated. :)
Marzipan
30 Jul 2016, 22:21Keep in mind that in games, things like familiarity and convenience often have to trump 'making sense'. Moving from room to room is the most common repeated action in most games, and I think as a player I'd find being forced to repeatedly type 'go to the kitchen' and 'go to the yard' to get tedious and tiresome fast. IF has been around a long time and compass directions are the standard for a reason - reflexively tapping a single letter is far simpler than typing an entire sentence, especially when you're doing it dozens or hundreds of times throughout the course of a game.
That said, if you're dead set on the idea....I know this 'Is it plugged in?' level of tech support, but first, do you have a script set up moving the player to the right room? And if so, can we get a look at it? It's not a complex command so the problem may just be a typo or something similar.
As for limiting actions, all you need is a variable that only specific actions raise. When it gets to a certain point, don't let the player do any more of those actions until they sleep to reset it.
Jay Nabonne
30 Jul 2016, 22:25For the first one, if you give the exit the alias for the room (e.g. "kitchen"), then you will be able to go there with that name. It also makes it say things like:
You are in a room.
You can go kitchen.
but you just have to work with that. :)
For the second, you need to identify which things bump the count and then bump the count only for those things. Then check (either after each bump or on a turn script) whether the count has been reached, switch to night, and reset the count.
hegemonkhan
31 Jul 2016, 01:58here's a guide for helping with the basics of programming/game making: Attribute and 'If' Script usage:
http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk
learning Attribute and the 'if' Script usage is the first big thing that a noob needs to learn as quick as possible, as it opens up being able to do 90% of everything that you want to do in a game.
thus I call these two Scripts:
- (run as script) -> add new script -> 'variables' section/category -> 'set a variable or attribute' Script
- (run as script) -> add new script -> 'scripts' section/category -> 'if' Script
the two "SUPER SCRIPTS", hehe.