Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Tell player how times they have used an item

10 years ago

I hope this isn't one of those super easy things that I just so happen to missed but I can't figure out how to make it so that when a player checks a specific item, it tells them how times they have used it. I tried writing this down:

You have used %%$ITEMUSED2%% servings.

But I have a feeling I'm doing it wrong.

Tell player how many times they have used an item

10 years ago

I'm fairly certain that only works with user variables. For $ITEMUSED, you're gonna need to use a page script.

Tell player how times they have used an item

10 years ago

So there's no way to actually put the amount within the item description?

Tell player how times they have used an item

10 years ago

Yes, you can do this with on-page variable in the Item Description.

Set up a %VARIABLE to track it alongside the Item Use and then in the Description, put:
You have used %%VARIABLE%% servings.

Tell player how times they have used an item

10 years ago

That worked! Made a seperate variable and had that being displayed instead. Thanks BerkaZerka.

Tell player how times they have used an item

10 years ago

Disregard.

Tell player how times they have used an item

10 years ago

^You are correct though. Sys Variables don't work with On-Page.  :)