rkknott Posted August 10, 2009 Author Share Posted August 10, 2009 I know how to setup shops, and placing the attribute on your chosen tile so that it opens upon walking onto that tile..But is it possible to open a shop via pressing CTRL/ENTER on a shop keeper? Link to comment Share on other sites More sharing options...
emplay Posted August 10, 2009 Share Posted August 10, 2009 you can script the npc to call a shop when you talk to him. Link to comment Share on other sites More sharing options...
Diskmaster Posted August 11, 2009 Share Posted August 11, 2009 If u know anything about scripting, then this will be easy. Ok, open up your MAIN.txt, and search Sub ScriptedNPC(index)and put this under it:```Case 1 Call Letsgoshoping(index, SHOP#)```Change the Shop# to whatever shop # u want to open up.Now create a new NPC under the SCRIPTED behavior and move the scroll bar to 1Reload your scripts and go up to the NPC and press ctrl on him/her, it should work although, this isn't very detailed… Link to comment Share on other sites More sharing options...
Admiral Refuge Posted August 11, 2009 Share Posted August 11, 2009 @Diskmaster:> If u know anything about scripting, then this will be easy. Ok, open up your MAIN.txt, and search Sub ScriptedNPC(index)> and put this under it:> ```> Case 1> Call Letsgoshoping(index, SHOP#)> > ```Change the Shop# to whatever shop # u want to open up.> Now create a new NPC under the SCRIPTED behavior and move the scroll bar to 1> Reload your scripts and go up to the NPC and press ctrl on him/her, it should work although, this isn't very detailed…It'sCall GoShopping, not Call LetsGoShopping… Link to comment Share on other sites More sharing options...
rkknott Posted August 11, 2009 Author Share Posted August 11, 2009 Thanks, all i needed was a call command, wasn't sure if there was one though :) 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