I was wondering if it would be possible to do a full text-based game in MMF. You know, where you'd type things like "take ye flask", and the computer would pop up a message saying "thou cannot pick up ye flask".
The main problem would be because MMF's event-based system makes it impossible to read several dozens, much less the hundreds of text-based responses one would put in the MMF event editor, while it's pretty damn easy in text-based stuff like C++. I think the alternative would be loading it externally, but I think arrays have a char limit and I haven't figured out how to do a programming language for MMF. Any ideas?
Another major problem would be reading the inputs. The token object could read the words, but making the computer understand everything the player could possibly type is tough.
Thanks..
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 don't see any other way to do it, other then a bunch of pre-set answers. You could give them some choices to make it easier for them to get a reply that the PC understands, this might take away from the actual puzzle solving in a way, if that's what you're going for.
Yeah, that's what I want, pre-set answers. But I want to preset it in a way that won't require 20 clicks to do a question with just 3 answers.
"You could try using Lua."
What's Lua?
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.
That's why as good as MMF is, it seems limited to me in a lot of ways too. Sometimes there's no substituting for a game that could be made with another language.
Maybe use the message tree object? (Or whatever it's called)
P.S: I think the limit of a string array is 255 characters, unless it's more now.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
I've seen a few people post 'programming languages' in MMF around here. If I could do something like that in say INI or something, it'll not only save me time, but it'll also help script things easier and make the game moddable (eg. player chooses "Beg for money option", NPC says something, $50 added to player's cash variable).
Too bad all the people who made those programming language engines don't reply to my emails or are too lazy to explain it but won't give me the engine .
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 think it's definitely possible to do this in MMF - all you need is a sufficiently large store of locations, objects, flags, and so on. A string parser should be able to do most things that you would be able to do using a procedural language.
The more important question is why you would ever want to. I think the huge advantage of MMF is that it handles the visual side of things - the collisions and graphics routines that are often very awkward in other languages. Making a purely text based game seems to defeat the purpose of that a bit.