Sound and text conversation between player and pawn
Posted: Tue Oct 24, 2006 8:34 am
What do i have to add to this conversation script(or somewhere else) so that the players replies would be played too as a sound file?
The other problem i'm having is that the players old text reply doesn't vanish and mixes with the new reply so it is impossible to read what it says in the reply text.
Then i'd like the game to continue normally while having the conversation, and forexample if player says something like "okay, show me the way", then the nonplayercharacter would start walking to a certain destination, play some animation, and then the conversation would continue there.
Any advices are highly appreciated:)
{
jhi[ ()
{
Speak("jhi","hi.wav");
Reply(1,"thiwhoareyou","hiwhoareyou.wav");
switch(Conversation(0))
{
case 1
{
NewConversation("jiamjasmin",true);
}
}
} ]
jiamjasmin[ ()
{
Speak("jiamjasmin","jiamjasmin.wav");
Reply(1,"nicetomeetjasmin");
switch(Conversation(0))
{
case 1
{
NewConversation("jsoyouneedtoknowtheroad",true);
}
}
} ]
jsoyouneedtoknowtheroad[ ()
{
Speak("jsoyouneedtoknowtheroad","soyouneedtoknowtheroad.wav");
Reply(1,"tyeahcanyouhelpme");
switch(Conversation(0))
{
case 1
{
NewConversation("jsure",true);
}
}
} ]
jsure[ ()
{
Speak("jsure","sure.wav");
Reply(1,"tthanksalot");
switch(Conversation(0))
{
case 1
{
NewConversation("",true);
}
}
} ]
}
The other problem i'm having is that the players old text reply doesn't vanish and mixes with the new reply so it is impossible to read what it says in the reply text.
Then i'd like the game to continue normally while having the conversation, and forexample if player says something like "okay, show me the way", then the nonplayercharacter would start walking to a certain destination, play some animation, and then the conversation would continue there.
Any advices are highly appreciated:)
{
jhi[ ()
{
Speak("jhi","hi.wav");
Reply(1,"thiwhoareyou","hiwhoareyou.wav");
switch(Conversation(0))
{
case 1
{
NewConversation("jiamjasmin",true);
}
}
} ]
jiamjasmin[ ()
{
Speak("jiamjasmin","jiamjasmin.wav");
Reply(1,"nicetomeetjasmin");
switch(Conversation(0))
{
case 1
{
NewConversation("jsoyouneedtoknowtheroad",true);
}
}
} ]
jsoyouneedtoknowtheroad[ ()
{
Speak("jsoyouneedtoknowtheroad","soyouneedtoknowtheroad.wav");
Reply(1,"tyeahcanyouhelpme");
switch(Conversation(0))
{
case 1
{
NewConversation("jsure",true);
}
}
} ]
jsure[ ()
{
Speak("jsure","sure.wav");
Reply(1,"tthanksalot");
switch(Conversation(0))
{
case 1
{
NewConversation("",true);
}
}
} ]
}