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.
One vendor two stores
Débuté par
shonuv
, nov. 27 2010 01:36
#1
Posté 27 novembre 2010 - 01:36
#2
Posté 27 novembre 2010 - 06:41
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.
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
Posté 28 novembre 2010 - 08:44
Thanks for the link. Thats perfect. I've been trying to do things the hard way.





Retour en haut






