Author Topic: NPC remember a player from a previous conversation  (Read 1611 times)

Legacy_Skunkeen

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
NPC remember a player from a previous conversation
« on: August 13, 2010, 07:06:36 pm »


               Ive been through two guides on how to do this and they both did not work for me.
Following the TBP guide book
(5.8.1 have a NPC remember a player from a previous conversation)
and Maximus's tutorial for conversations
http://nwvault.ign.c...s.Detail&id=226

I can not get this to work following these guides. Would someone please teach me how to do this?
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
NPC remember a player from a previous conversation
« Reply #1 on: August 13, 2010, 07:29:00 pm »


               Your conversation treeview should be the the highest response to the lowest. Meaning, the first time the NPC talks to the PC should be the last conversation in the tree.



+ Good to see you again. (variable is equal to 1) [TEXT APPEARS SCRIPT]

+ Well look what we have here. Someone new in town I see. (variable is equal to 0) [ACTIONS TAKEN SCRIPT]




+ Good to see you again



This requires a TEXT APPEARS script.



+ Well look what we have here. Someone new in town I see.



This requires an ACTIONS TAKEN script.



The ACTIONS TAKEN script would look along the lines of:



void main()

{

   // Set the variables

       // We set the "metnpcabc" variable to equal 1 so we know the PC has spoken to the NPC

   SetLocalInt(GetPCSpeaker(), "metnpcabc", 1);

}




The TEXT APPEARS script would look along the lines of:



int StartingConditional()

{



   // Inspect local variables

       // We check the "metnpcabc" variable to see if it equals 1 so we know if the PC has spoken to the NPC

   if(!(GetLocalInt(GetPCSpeaker(), "metnpcabc") == 1))

      return FALSE;



   return TRUE;

}




FP!
               
               

               
            

Legacy_Skunkeen

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
NPC remember a player from a previous conversation
« Reply #2 on: August 13, 2010, 10:15:59 pm »


               Worked, Thank you Fester Pot
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
NPC remember a player from a previous conversation
« Reply #3 on: August 14, 2010, 04:57:57 pm »


               So I asume this is for a sp module, since for a PW it won't work.  If in that situation you can use Vendalus PRR or an item with the npc's name and a variable set on that item to indicate they have talked before.  Oh and saw your post in the old guild.
               
               

               
            

Legacy_Skunkeen

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
NPC remember a player from a previous conversation
« Reply #4 on: August 14, 2010, 10:13:46 pm »


               yes I had SP/MP in mind. no pw,  checking out Vendalus's PPR system . thanks FFBJ

http://nwvault.ign.c....Detail&id=2400
               
               

               


                     Modifié par Skunkeen, 14 août 2010 - 09:16 .