Conversation script, help needed

Moderator: Event DM

Post Reply
User avatar
Morgoth
Prince of Bloated Discourse
Posts: 270
Joined: Fri Jan 16, 2004 4:46 pm
Location: Toronto Ont. Canada
Contact:

Conversation script, help needed

Post by Morgoth » 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
When the sun goes down the shadows come out to play.
User avatar
Draegloth
Scholar of Fools
Posts: 378
Joined: Tue Aug 05, 2003 6:02 am
Timezone: GMT -8
Location: Dundee, Oregon

Post by Draegloth » Sun Jun 13, 2004 4:14 am

Would help if you could place your script up here. What you wrote is confusing to me.
User avatar
Mistcaller
Team Member; Retired with Honors
Posts: 5477
Joined: Sun Feb 09, 2003 3:42 pm
Location: Athens, Greece (GMT +2)

Post by Mistcaller » Sun Jun 13, 2004 10:32 am

the NPC should be OBJECT_SELF while the PC speaker (any of them) should be GetPCSpeaker.
User avatar
Morgoth
Prince of Bloated Discourse
Posts: 270
Joined: Fri Jan 16, 2004 4:46 pm
Location: Toronto Ont. Canada
Contact:

Post by Morgoth » Fri Jun 18, 2004 5:04 am

thanks i got it working
When the sun goes down the shadows come out to play.
Post Reply