Page 1 of 1

Conversation script, help needed

Posted: Sun Jun 13, 2004 1:46 am
by Morgoth
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

Posted: Sun Jun 13, 2004 4:14 am
by Draegloth
Would help if you could place your script up here. What you wrote is confusing to me.

Posted: Sun Jun 13, 2004 10:32 am
by Mistcaller
the NPC should be OBJECT_SELF while the PC speaker (any of them) should be GetPCSpeaker.

Posted: Fri Jun 18, 2004 5:04 am
by Morgoth
thanks i got it working