CaptainPike Posted September 14, 2014 Share Posted September 14, 2014 I've seen it said several times by several people in many forums, here and elsewhere, that the OpenStore Markup/Markdown values set the Markup/Markdown percentage when the store is opened. It doesn't. The Markup/Markdown are actually bonuses; added to the values that are already set in the UTM file. Thus, a store has a 125% markup and a 25% markdown, the command: OpenStore(oStore, GetFirstPC(),-125,-25)); results in buying and selling at 0%; all items bought and sold at 0 cost (as adding a negative is subtracting). The command: OpenStore(oStore, GetFirstPC(),125,-25)); causes the store to sell at a whopping 250% and buy for zero; and the command OpenStore(oStore, GetFirstPC(),-25,0)); causes the store to sell at base value and buy at the 25% so stipulated in the UTM file. ALSO, it appears that both numbers run the same direction: Up! Thus, 25% markdown is misleading; as it's not "marked down" from 100%, but rather, sells at 25% of the 100% base value. Link to comment Share on other sites More sharing options...
Hassat Hunter Posted October 5, 2014 Share Posted October 5, 2014 Here's KOTOR2's file for Tienn's shop... notice the 10% boost... void main() { if ((!GetIsObjectValid(GetObjectByTag("TT32", 0)))) { DelayCommand(0.1, OpenStore(GetObjectByTag("TiennStore", 0), GetPCSpeaker(), 0, 0)); } else { if ((GetGlobalNumber("301NAR_Tienn_Discount") == 0)) { DelayCommand(0.1, OpenStore(GetObjectByTag("TiennStore", 0), GetPCSpeaker(), 0, 0)); } else { if ((GetGlobalNumber("301NAR_Tienn_Discount") >= 1)) { DelayCommand(0.1, OpenStore(GetObjectByTag("TiennStore", 0), GetPCSpeaker(), (-10), 10)); } } } } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.