Jump to content
  • 0

OnTouch questions...


nakano15

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  102
  • Reputation:   8
  • Joined:  01/26/15
  • Last Seen:  

I have some questions about the OnTouch: parameter on the npc scripting.

  1. Is there any way of avoiding monsters of triggering it?
  2. If the npc moves location by using either walk to or teleport, the areas of ontouch will change aswell?

These questions are troubling me.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   597
  • Joined:  11/25/11
  • Last Seen:  

1. Usually NPCs do not trigger it.
2. Yes.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  102
  • Reputation:   8
  • Joined:  01/26/15
  • Last Seen:  

Thanks, that helped, I just wish there were a way of making so the touch area is a square around the npc...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

Thanks, that helped, I just wish there were a way of making so the touch area is a square around the npc...

 

It is a square? Do you mean OnTouch to merely occupy the cell the npc is on, or? What area are you looking to cover?

Regards,

~AzuraSkyy

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  102
  • Reputation:   8
  • Joined:  01/26/15
  • Last Seen:  

For my npc to work as intended, I would need to make so the npc touch area is an square around the npc.

like squared dimensions -3,-3,3,3.

Edited by nakano15
Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   597
  • Joined:  11/25/11
  • Last Seen:  

It IS a square, if you set it to ,3,3 it will be 3 cells in any direction.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  102
  • Reputation:   8
  • Joined:  01/26/15
  • Last Seen:  

Hum, good to know. I thought it would make a line in front of the npc direction instead.

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...