Aller au contenu

Photo

One vendor two stores


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
shonuv

shonuv
  • Members
  • 6 messages
I'm trying to make one vendor that has multiple stores, like the Quartermaster in Ostagar. Taking cues from the Quartermaster has lead me to a script "prept_generic_actions.nss", which opens whichever store based on whichever plot flag is called from the conversation. This script file also does a bunch of other stuff related to Ostagar that I don't need. Since I am a scripting noob, I don't know what to strip from that script, and what to leave in for my own merchant. I tried hacking at the script, but my version doesn't compile.
Any scripting advice (preferably noob friendly) would be appreciated.

#2
0x30A88

0x30A88
  • Members
  • 1 081 messages
This article shows a script that has the same effect as the one you trigger by setting that plot floag: http://social.biowar...ex.php/Merchant

In that script there's a line like this:
object oStore = GetObjectByTag("store_" + GetTag(oMerchantOwner));

Change the "store_" to "otherstore_" and save the script as something. Then make a merchant called otherstore_CREATURETAG and add it to your area. Trigger that script when the other store shall open instead of the plot flag.

Modifié par Gisle Aune, 27 novembre 2010 - 06:42 .


#3
shonuv

shonuv
  • Members
  • 6 messages
Thanks for the link. Thats perfect. I've been trying to do things the hard way.