The Daily Click ::. Forums ::. Klik Coding Help ::. MMF (2?) text engine
 

Post Reply  Post Oekaki 
 

Posted By Message

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
25th July, 2006 at 03:20:16 -

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.

Image

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
25th July, 2006 at 12:35:49 -

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.

 
http://www.facebook.com/truediamondgame

Joshtek

Administrator
The Archivist

Registered
  02/01/2002
Points
  3723

Game of the Week WinnerHas Donated, Thank You!Mr BallPicture Me This Round 50 Winner!
25th July, 2006 at 14:46:55 -

You could try using Lua.

 
:: Joshtek ::


Oreos? GO! OREOS!

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
31st July, 2006 at 07:52:21 -

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.

Image

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
31st July, 2006 at 12:15:58 -

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!

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
31st July, 2006 at 12:29:08 -

Lua is a scripting language type thing I think?
You can create stuff with it and use the LUA object in MMF2 to display/play it.


 
This is a signature. Have this one on me.

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
1st August, 2006 at 00:24:55 -

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.

Image

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
1st August, 2006 at 01:34:14 -

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.

 
http://www.davidn.co.nr - Games, music, living in America

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
1st August, 2006 at 02:37:52 -

The main problem is displaying the text. My computer lags if you have a full-frame string, and then have this simple code:

Always: string = string + " Hello"

It starts to lag when the text gets about halfway down my screen.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click