MasterAub Posted September 12, 2018 Share Posted September 12, 2018 Hi every one I want to check the number of time a player has purchase something with a given merchantSo I need to implement a counter in order to trigger the right topic Here is how I want to doThe player has 5 choices of purchase meaning 5 topic will appear and the player can choose randomly to purchase 1, 2, 3, 4, or 5, all or a combination of the 5 items by clicking on the related topic (hope it's clear)Each Topic disappear once the purchase is effective (because he can only purchase a given item once. So every time a topic is clicked au purchase is made. I need to keep track of what has been purchased. here how I am planing to do: I will place this script on each purchasable item Short DOFIVE; declared variableif DOFIVE < 5 Set DOFIVE == DOFIVE+1if DOFIVE == 5Setstage "MyTopic" to 60; whatever number Am I doing this the right way or how would you do this? Thanks for your help mate Link to comment Share on other sites More sharing options...
Moktah Posted September 13, 2018 Share Posted September 13, 2018 wish I could help more, but I haven't touched upon shop keepers and such.I did find this article that may of assistance though. https://cs.elderscrolls.com/index.php?title=My_First_Shop looks like they dropped the items the shop owner has into a chest thatnobody can see(merchant container)maybe in your case, leave Respawns turned offso when those items are sold, they don't respawn in the chest.Just thinking outloud. I'd have to do some experimenting with it myselfand of course, it totally depends on what you are trying to do anyways. Good luck friend!! Link to comment Share on other sites More sharing options...
MasterAub Posted September 14, 2018 Author Share Posted September 14, 2018 (edited) Thank you mate I'm looking into that and will come back to you.Just know that I am working on a Mounts Shop. In fact the items I am speaking about are Mounts. So it has to be dialog base type of Merchant, not you classical one. Stable in Cyrodiil sale only one type of horse. I would like my merchant to sale 5 type of Mounts at 5 different price tag, hence my problem.I'm thinking of the simpler system possible for tracking the purchase. I am almost there just need to do some thinking. I'll let you know once I am done. Thanks a lot Edited September 14, 2018 by MasterAub Link to comment Share on other sites More sharing options...
Recommended Posts