HI. I want to make a text game. NOT one-o-them things were you have different buttons to press. I want the cool games where its like: YOU SEE A FLASK. and you type in PICK UP THE FLASK. But I have NO Idea how to make a game like that! any tips?
One way of doing it is to make a textfield to type in to (obviously!) and make an event for every valid command. Like "if textfield equals "TAKE BOTTLE"" -> some actions. "if textfield equals "GO TO LAKE"" -> some actions etc. That will make a lot of events if the game is long. However it works.
It's next to impossible to do those type of games in MMF. Try using Adrift. It's a bit tough, but it's far better than using MMF.
Other than that, you can always make some interactive fiction. You know like those games where you get a choice of what to do like...
You see a flask. Do you:
1. Pick up the flask
2. Kick the flask
3. Break open the flask
4. Ignore the flask
I've never really like text-based adventure games anyway. So much to read and so little matters. Interactive fiction rules. (Note that there is a difference between the two genres)
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
I created a Text adventure base engine in Jamagic. It doesnt have inventory yet (although I have a system in the works) but it have multiple external rooms via an external file.
You could do the same probally.
Have an ini set up like this:
[main]
start=0
end=2
[R0]
text="Room One, a path leads to the north"
N=1
[R1]
text="Room Two, a path leads to the north or south"
N=2
S=0
[R2]
text="You win!"'
and you would have an engine to change what room you are in based on the ini file . The way I coded my Jamagic one, you could also have rooms that have no directions/werent the ending room soo thoose became rooms where you died . I did this by checking if all of the directions were undefined and if it wasnt the ending room.
Here is my Jamagic example incase you are intrested:
A game like that is very possible in MMF. You'll just have to do quite a lot of parsing. However, since a lot of the code will be variables/strings based, something like Jamagic would be better suited as an actual scripting language can handle all the variables better usually. Or something like CFISI would be ideal for the job, if it worked
If the left 4 characters equal "GOTO", get the next part with String Parser 2 and do the code for going to that room. Not too difficult... just might end up with messy coding if you have a lot of locations, actions and inventory items.
btw if you really want to create only a textadventure you could do it in QBasic-lol
i started making games in QBasic and for textadventures it's a really nice program and easy to use