Jump to content

Home

my merchant script wont work


Canderis

Recommended Posts

my script wont work please tell me why

 

 

// ST: st_startstore.nss

void main() {
object oStore = GetObjectByTag("mandomerch001");
       object oSpeaker = GetPCSpeaker();

if (!GetIsObjectValid(oStore))
	oStore = CreateObject(OBJECT_TYPE_STORE, "mandomerch001", GetLocation(OBJECT_SELF));

if (GetIsObjectValid(oStore))
	DelayCommand(0.5, OpenStore(oStore, oSpeaker));
}

i followd the merchant tut

Link to comment
Share on other sites

{snip}

 

void main() {
object oStore = GetObjectByTag("SHOP_TAG_HERE");
       object oSpeaker = GetPCSpeaker();

if (!GetIsObjectValid(oStore))
	oStore = CreateObject(OBJECT_TYPE_STORE, "SHOP_TAG_HERE", GetLocation(OBJECT_SELF));

if (GetIsObjectValid(oStore))
	DelayCommand(0.5, OpenStore(oStore, oSpeaker));
}

 

That's the right script, it seems. I think that your tag must be wrong. If you're unsure what your tag is, post a screenshot of the file.

 

_EW_

Link to comment
Share on other sites

No, you didn't. But that's what the stoffe named her script, which is the script you are using.

 

And try putting it in a blank node (like make a new struct spoken by the NPC, leave it blank, and then put the script there.)

 

I'm not sure if that will work, but I know it's something that I always abide by.

 

_EW_

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...