Jump to content
  • 0

Open shop during NPC script?


Question

Posted

Hey guys,

 

Let's say I have an NPC that talks to the player, and after a brief discussion, I want it to open a shop window just like a regular tool dealer. Is this possible? Is there any way I can set a shop as a function to be called upon? Or, is this entirely impossible and shops can never be open from an NPC window? Thanks for your input.

 

 

8 answers to this question

Recommended Posts

  • 0
Posted (edited)

Well, that was simple /oops

 

I have a question however. How do you choose which shop the script will call upon? If I just put: callshop "Tool Dealer",0;, then wouldn't that cause an error by calling on any NPC named Tool Dealer?

sec_in02,137,162,5	script	Test Dealer	828,{

mes "Would you like to access the shop?";
menu "Yes.",A_1,"No.",A_2;

A_1:
callshop "Tool Dealer",0;
close;

A_2:
close;

}

For example, I tried this script, and it mostly works but once I get to the sell/buy window, once I click on an option the box simply disappears and no window comes up. Am I missing something?

Edited by greenmagic469
  • 0
Posted (edited)

I think so. btw I just tried changing the shop name to "sss" and it works (included that thing I posted above in the same file). using "Tool Dealer" didn't work.

Edited by Varyss
  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...