TrueNoir Posted April 2, 2017 Posted April 2, 2017 So in lasa_fild01 there's npc's that do npctalk when you walk close enough to them. Its not really an ontouch type of deal and I'm trying to code some of the npc's trying to figure out what I could do to imitate it. Does anyone have any suggestions? Quote
1 Tokei Posted April 5, 2017 Posted April 5, 2017 Well, these look regular ontouch areas. lasa_fild01,132,374,3 script Sloth#doram 10167,5,5,{ end; OnTouch: npctalk "Hey, there! Get over here for a minute!"; end; } Quote
1 Tokei Posted April 6, 2017 Posted April 6, 2017 The OnTouch event triggers if you walk into the NPC's zone (not when clicking the NPC). You're describing exactly what OnTouch is meant and used for. Quote
0 Tokei Posted April 2, 2017 Posted April 2, 2017 Can you describe what you're trying to do? It's almost impossible to help you based on that alone. What's special about the NPC? Quote
0 Poring King Posted April 2, 2017 Posted April 2, 2017 5 hours ago, Tokei said: Can you describe what you're trying to do? It's almost impossible to help you based on that alone. What's special about the NPC? i also agree with this . i can't help you too with this way how you discuss your problem . Quote
0 chatterboy Posted April 3, 2017 Posted April 3, 2017 On 4/2/2017 at 11:44 AM, TrueNoir said: So in lasa_fild01 there's npc's that do npctalk when you walk close enough to them. Its not really an ontouch type of deal and I'm trying to code some of the npc's trying to figure out what I could do to imitate it. Does anyone have any suggestions? You mean NPC that talk on its own? Quote
0 TrueNoir Posted April 5, 2017 Author Posted April 5, 2017 On 4/2/2017 at 7:11 AM, Tokei said: Can you describe what you're trying to do? It's almost impossible to help you based on that alone. What's special about the NPC? I put the project on hold but what I'm talking about is if you notice from this video i made https://www.twitch.tv/videos/133547893 the npc's talk when you walk near them. So I was wondering if we have some kind of map flag that can be used when a character walks through a certain group of cells to trigger the npctalk command? I'm trying to make it as close to iro as possible which is why I don't really care to do a ontouch when they click on it. Quote
0 TrueNoir Posted April 6, 2017 Author Posted April 6, 2017 Yeah but does ontouch trigger without clicking on the npc? I thought its only when you touch them. They seem to be working in iro more like if you walk within a certain distance of the npc like around it. Quote
Question
TrueNoir
So in lasa_fild01 there's npc's that do npctalk when you walk close enough to them. Its not really an ontouch type of deal and I'm trying to code some of the npc's trying to figure out what I could do to imitate it. Does anyone have any suggestions?
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.