Aller au contenu

Photo

NPC remember a player from a previous conversation


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Skunkeen

Skunkeen
  • Members
  • 19 messages
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?

#2
Fester Pot

Fester Pot
  • Members
  • 1 391 messages
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!

#3
Skunkeen

Skunkeen
  • Members
  • 19 messages
Worked, Thank you Fester Pot

#4
ffbj

ffbj
  • Members
  • 593 messages
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.

#5
Skunkeen

Skunkeen
  • Members
  • 19 messages
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 .