Recommended Posts

I have some problems maybe you can resolve it. its a noob thing i think, i use this open store script:
 

void main() 
{
object oStore = GetObjectByTag("TAG_OF_STORE_HERE");
        object oSpeaker = GetPCSpeaker();
 
if (!GetIsObjectValid(oStore))
oStore = CreateObject(OBJECT_TYPE_STORE, "RESREF_OF_STORE_HERE", GetLocation(OBJECT_SELF));
 
if (GetIsObjectValid(oStore))
DelayCommand(0.5, OpenStore(oStore, oSpeaker));
}
 
Problem: If i open this store it works, but if i close it, it opens store again automatically unlimited times.. Can you help me a bit ?

Note: I tried to fire the script both on PC and NPC lines. 

Share this post


Link to post
Share on other sites

I'm wondering, maybe a line at script's end what does to return to dialogue when shop closes could fix it. Am I right?

Share this post


Link to post
Share on other sites

I think I can write dialogue. Scripts, not so much.

I have no any problems with dialogues.

 

Update Posted 15 June 2016 - 10:51 AM

 

Solved, But, I got another glitch or something with this script lines, when I close my store I can't click on objects, can't use anything even can't press escape to access menu. Why? Is there anything that I can do to resolve this?

Share this post


Link to post
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
Reply to this topic...

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