Archived

This topic is now archived and is closed to further replies.

RPG story lines etc

This topic is 6390 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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);
...
}

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites