Jump to content

implementing a counter


Recommended Posts

Hi every one I want to check the number of time a player has purchase something with a given merchant

So I need to implement a counter in order to trigger the right topic

 

Here is how I want to do

The 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 variable

if DOFIVE < 5

Set DOFIVE == DOFIVE+1

if DOFIVE == 5

Setstage "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

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 that

nobody can see(merchant container)

maybe in your case, leave Respawns turned off

so when those items are sold, they don't respawn in the chest.

Just thinking outloud. I'd have to do some experimenting with it myself

and of course, it totally depends on what you are trying to do anyways.

 

Good luck friend!!

Link to comment
Share on other sites

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 by MasterAub
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...