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

  • Recently Browsing   0 members

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