View Single Post
Old 04-17-2011, 10:54 PM   #7
Dak Drexl
Senior Member
 
Dak Drexl's Avatar
 
Join Date: Jan 2010
Posts: 1,079
Helpful! 
Thanks a lot for this tut, but I just want to point out that in the script there is a problem:

Code:
// ST: st_startstore.nss

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));
}
That exclamation point needs to come out if you want the script to work. It will still compile with it in, but it won't work unless you take it out; just a future warning to anyone!

But thanks again for this very helpful.

Dak Drexl is offline   you may: quote & reply,