Jump to content
  • 0

Question about talking NPC's


TrueNoir

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   19
  • Joined:  11/14/11
  • Last Seen:  

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?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  660
  • Reputation:   664
  • Joined:  11/12/12
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  660
  • Reputation:   664
  • Joined:  11/12/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  660
  • Reputation:   664
  • Joined:  11/12/12
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

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 .

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  308
  • Reputation:   24
  • Joined:  11/26/12
  • Last Seen:  

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? :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   19
  • Joined:  11/14/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   19
  • Joined:  11/14/11
  • Last Seen:  

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...