Server Totals
Le'Or - (2)
Wilderness - (2)
Mikona - (1)
Ferrell - (0)
Elysia - (0)
M'Chek - (0)
Deglos - (0)
Visimontium - (0)
Underdark - (0)
Total players: 5
Gallery
  • Ferrell - DM Field Day
    Album name: DM Events
    Uploaded by: Hamlet
    Uploaded: Mon Aug 25, 2014 12:39 am

Links Menu

Conversation script, help needed

Moderators: Nighthawk4, Dungeon Masters

Conversation script, help needed

PostAuthor: 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
Morgoth
Prince of Bloated Discourse
 
Posts: 270
Joined: Fri Jan 16, 2004 4:46 pm
Location: Toronto Ont. Canada

PostAuthor: 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
Draegloth
Scholar of Fools
 
Posts: 381
Joined: Tue Aug 05, 2003 6:02 am
Location: Dundee, Oregon
Timezone: GMT -8

PostAuthor: 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
Mistcaller
Team Member; Retired with Honors
 
Posts: 5481
Joined: Sun Feb 09, 2003 3:42 pm
Location: Athens, Greece (GMT +2)

PostAuthor: Morgoth » Fri Jun 18, 2004 5:04 am

thanks i got it working
When the sun goes down the shadows come out to play.
User avatar
Morgoth
Prince of Bloated Discourse
 
Posts: 270
Joined: Fri Jan 16, 2004 4:46 pm
Location: Toronto Ont. Canada


Return to NWN Scripting

Who is online

Registered users: BeyondInfinity, Google [Bot], loki70