Conversation script, help needed
Posted: Sun Jun 13, 2004 1:46 am
Ok I have gone through all the tutorials for conversations scripting but still have a problem. As the tutorials are only set up for single player games.
the intention is to have one PC tell an NPC what to say to other PCs. a sample follows below.
What would have me tell them //display when keyholder
Tell them I am out
ok // take action> set variable> getlastspeaker message ,1
Tell then i am in
ok//take action> set variable> getlastspeaker message ,2
hello he is out //display when variable message==1
hello he is in //display when variable message==2
hello he is out
Right now it works with one player testing it and dropping the key to test for the other player but if you have a third party to talk with the NPC it only shows the default line "hello he is out". Which seems to tell me that the variable is being set to the original speaker even if you use the getlastspeaker vs. getpcspeaker.
Could anyone fill in where and what scripts I should use to have the intended results
the intention is to have one PC tell an NPC what to say to other PCs. a sample follows below.
What would have me tell them //display when keyholder
Tell them I am out
ok // take action> set variable> getlastspeaker message ,1
Tell then i am in
ok//take action> set variable> getlastspeaker message ,2
hello he is out //display when variable message==1
hello he is in //display when variable message==2
hello he is out
Right now it works with one player testing it and dropping the key to test for the other player but if you have a third party to talk with the NPC it only shows the default line "hello he is out". Which seems to tell me that the variable is being set to the original speaker even if you use the getlastspeaker vs. getpcspeaker.
Could anyone fill in where and what scripts I should use to have the intended results