Page 1 of 1
Npc Help
Posted: March 23rd, 2010, 12:37 am
by Recbhunk
Ok So i need help working on A Conversation With a npc
Like For Example
Citizen: Hello
Respone: Hi Can i Get Some Direction's
i Did The tutorial
viewtopic.php?f=24&t=681&p=5564&hilit=npc#p5564
But It Dident Work so i was Wondering If Any One Else Can Help With That like Show The The Script or How the script Works
Also I Did The Tutorial
viewtopic.php?f=24&t=22
But He Only Talked To me Once unless I Restarted The map so can anyone tell me how to make it That Every Time I Came Near He Would Talk
Re: Npc Help
Posted: March 23rd, 2010, 8:39 am
by arcones
Re: Npc Help
Posted: March 24th, 2010, 6:05 am
by Leo_V117
here:
Code: Select all
spawn_Civillian = [
r_model "rpg/characters/npcman"
r_name "Civillian"
r_interact [
r_select $rpginterract
r_talk $rpgself 0
]
r_say "Hello there friend. How may I be of assistance to you?." [ //0
r_response "Can I ask you a few questions?" 1
r_response "Shall we trade?" -2
r_response "Nothing at present, Farewell" -1
]
r_say "Certainly, I'll do my best to answer." [ //1
r_response "Where are you from?" 2
r_response "Do you know how to get to the reactor?" 6
r_response "Shall we trade?" -2
r_response "Farewell" -1
]
r_say "I am from the Island of Hope, I moved here to get a better job." [ //2
r_response "I see, perhaps you'd allow me a few more questions." 1
r_response "Farewell." -1
]
r_say "Not at all. If you stick together and help each other, you'll be fine." [ //3
r_response "Oh, thats a releif. But what about the mansion? Won't we need a key?" 4
r_response "I see, perhaps you'd allow me a few more questions." 1
r_response "Farewell." -1
]
r_say "Yes, the key is deep inside the crypt inside a black tomb." [ //4
r_response "Crypt? Black Tomb? This will be easy." 5
]
r_say "It may seem easy, but within the crypt are the remains of those who were buried there. They will protect the Key at all costs. Take caution with every stride, the owner set traps to protect his wife's tomb." [ //5
r_response "Sounds scary, but I'm up for it?" 7
r_response "Oh no, ill find another way in. Farewell" -1
]
r_say "Yes, Head through the mines and towards the mansion. The entrance to the labs is under the mansion." [ //6
r_response "Into the Mines? Isnt that a little dangerous?" 3
r_response "Thank you, Could I ask you a few more questions?." 1
r_response "Thank you and Farewell." -1
]
r_say "Make sure you have everything you need before you leave. Talk to the merchant over there and see what he has, or talk to the blacksmith at the Armory to see if you can buy anymore armor." [ //7
r_response "Thank you, I'll be on my way." -1
r_response "Have you got anything interesting that I can trade for?" - 2
r_response "Thank you, Can I ask you a few more questions?" 1
]
]
Use that. Paste it over "Talky" in "game_rpg"
Re: Npc Help
Posted: March 24th, 2010, 8:07 am
by arcones
actually Malk realized that he forgot the triggers on the mapmodel! So it's fixed.

Re: Npc Help
Posted: March 24th, 2010, 11:45 am
by Leo_V117
oh. Okay. Better safe than sorry.
Re: Npc Help
Posted: March 24th, 2010, 7:49 pm
by Obsidian
Reason: Moved to support as this is a support related question
Re: Npc Help
Posted: March 25th, 2010, 3:04 pm
by Recbhunk
Thank all of you it Work

Re: Npc Help
Posted: March 25th, 2010, 3:16 pm
by Leo_V117
No problem. Were all here to help.