Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

If Click NPC Then…?


NextEraGaming
 Share

Recommended Posts

By Click im guessing you mean by hitting CRTL on them, if you do then, you should add Scripted NPC's to your project. It will let you make your own commands for an NPC. http://www.touchofdeathforums.com/smf/index.php/topic,68426.0.html
Link to comment
Share on other sites

@Grimnnak:

> By Click im guessing you mean by hitting CRTL on them, if you do then, you should add Scripted NPC's to your project. It will let you make your own commands for an NPC. http://www.touchofdeathforums.com/smf/index.php/topic,68426.0.html

He don't mean attacking but clicking, else he would say that. ;)
And I'm also looking for that for NPC Profiles
Link to comment
Share on other sites

> By Click im guessing you mean by hitting CRTL on them, if you do then, you should add Scripted NPC's to your project. It will let you make your own commands for an NPC. http://www.touchofdeathforums.com/smf/index.php/topic,68426.0.html

In order to script the NPC I would have to know how to code the actual event. Thanks for the suggestion though!
Link to comment
Share on other sites

@elementaldisaster:

> …. how else are you going to do it?

By using the NPC Speech system dude. I have some intermediate knowledge of VB…just don't know how robin coded his engine to handle such an event. No real need for Scripted NPCs if I can utilize the Speech systems way of making a window pop up. Would be pretty inefficient if I had to code each and every NPC to react when I click it.

Make sense?
Link to comment
Share on other sites

If the NPC does not move, find ur npcs coordinate. then, go to your client and in picscreen_mousedown (thats basicly when you click anything on the picscreen (which is like the map). You then just do If x=, y= then
this means that if the npc clicks a certain tile, the script will launch. so if u have an npc on that tile, the script will launch by clicking the npc.

i wont post the code out since ur an intermediate vb coder u should be able to do the rest urself.

hope this helps :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...