Advertisement

RPG story lines etc

Started by June 18, 2000 04:45 PM
4 comments, last by Jrz 24 years, 6 months ago
Hi there, I was wondering, how to manage things like story line, multiple endings, the dialogs etc. If you talk to someone, you can do this and that, and if you have this item and talk to him this and that. How to manage this. To me, it seems an almost impossible task, though squaresoft did it. Regards
I think you would give the character a function that test like

test()
{
if(player.specialitem!=NULL)
{
talk(hey you bastard give me back my money);
...
}
Advertisement
Ah! another person from Holland has arrived (3-0 against Denmark was a pretty good scrore huh?).
Read the FF7 messages thread. It explains all things like dialogues, tiles etc.

Sludge Software
www.sludgesoft.com
Developing a secret of mana style role-playing-game
Sludge Softwarewww.sludgesoft.comDeveloping a secret of mana style role-playing-game
oommoo, well, that''s a pretty simple implementation you give. Actually I was talking about having multiple storylines through eachother, and how to manage all that.

Say you start the game, everything is reset.
You talk to someone, after that if you talk again, it should say something else
If you decide to kill him, go with story A
if you decide to let him live, go with story B

I know it is fairly easy to do thing the way you did, but that\s not the way I''d like to do something with a big story, it would make me loose my hairs

you basically just build on OoMMMoO's idea. Just have variables that contain whether you talked to someone before etc.

Like have a variable called talk_to_npc1
then when you talk to that npc increment it like...

talk_to_npc1++;

Then later, you can do something like

        if (talk_to_npc1==1) {//whatever}if (talk_to_npc1==2) {//whatever}            



You just have to use a bunch of flags basically. There may be a fancier way, but this is one way.



Edited by - Nazrix on June 19, 2000 12:44:37 PM
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi
Did you read the FF7 messages thread? that has A LOT of info on this subject, all about how to do this stuff. I got a lot of info from this thread.

This topic is closed to new replies.

Advertisement