Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Using items with fixed amount of uses

13 years ago

I'm currently making a story where you can only use an item two times. But there are some pages where the reader uses the item but goes to a page where it says to go back. When I do this though, I see that I have used up all my chances for said item and it is gone, even though they didn't really get to use it. 

How do I stop this?

I don't want the item to be used infinitely but I also don't want people to miss out on the item.

Using items with fixed amount of uses

13 years ago

You can use scripting to get around this.

http://chooseyourstory.com/help/articles/article.aspx?ArticleId=66

This articles shows how you can edit the amount of times an item has said it was used. So if it goes to the wrong page, you can use scripting to reduce the times it was used.

Alternatively, you can use a variable and scripting to keep track of how many times an item has been used instead, and then remove the item (again using scripting) once it has been used the max amount of times.