NextEraGaming Posted May 15, 2011 Author Share Posted May 15, 2011 Hey I wanted to know how I would go about making an event that happens if you click an NPC.Skimmed through modDirectDraw7 and saw a couple of references…I think.Any Pointers? Link to comment Share on other sites More sharing options...
Grimnnak Posted May 16, 2011 Share Posted May 16, 2011 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 More sharing options...
erkro1 Posted May 16, 2011 Share Posted May 16, 2011 @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.htmlHe 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 More sharing options...
NextEraGaming Posted May 16, 2011 Author Share Posted May 16, 2011 > 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.htmlIn 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 More sharing options...
elementaldisaster Posted May 16, 2011 Share Posted May 16, 2011 …. how else are you going to do it? Link to comment Share on other sites More sharing options...
NextEraGaming Posted May 16, 2011 Author Share Posted May 16, 2011 @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 More sharing options...
Greendude120 Posted May 16, 2011 Share Posted May 16, 2011 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= thenthis 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 More sharing options...
NextEraGaming Posted May 16, 2011 Author Share Posted May 16, 2011 Thanks a bunch, Greendude! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now