-
Interactive Fiction
Hello guys...
I´m having a hard time writing a interactive fiction game like this example:
The guy looked at you and talked: How are you?
Answers:
1. I´m Fine (press 1)
2. I´m Sick (press 2)
How can I do this?
I created a Global Variable that determines the text showed:
Global Variable 1 Display Text Paragraph 1 Display Answers Paragraph 1
Global Variable 1
+ Upon Pressing 1 Set Global Variable 2
Global Variable 2 Display Text Paragraph 2 Display Answers Paragraph 2
But it´s not working very well...after I press (1) the Global Variable always goes to the highest number possible in the event editor.
Global Variable = 2 is not the same of If Global Variable = 2 ?
Thanks for the help.
-
I'll make you a simple example to get you started.
-
Many Thanks! I use MMF2 since it was Klik and Play (many many years ago) and never understood fully how I can reflect or adapt a IF condition.
-
In case you are wondering, it's taking a while because I'm writing a short interactive fiction to go with the example (as I write the code in the example itself).
-
1 Attachment(s)
Okay, I've finished the example. Enjoy!
Note to nivram: If you want, you can put this example on your website.
-
I shall and thank you a lot. May be a while.
Marv
-
-
Wonderful example!!
Many thanks!
-
1 Attachment(s)
Hello frog, I loved your example, but now I´m curious.
Do you know why my program didn´t work?
Here is the file
-
1 Attachment(s)
I'll look at it. I don't have much time to look, though, so I might have to look again tomorrow.
EDIT: Oh, it's the event order! You see, events run in order, from top to bottom. That means that when it runs the third event, the fifth event will also trigger. I'll fix it up for you in a moment.
EDIT 2: Here is the fixed example. One more thing, you might just want to use a modified version of my engine, since Global Values are meant for transferring/keeping track of data from one frame to another (E.G Custom life system, custom score system, health system, etc.). However, if you prefer your engine, you can use it.
-
Thank you very much again!
:)
-
You're welcome! If you have any more problems, let me know.