Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

[Answered] Item Uses Remaining with Scripting

18 years ago
OK, you know how you can set how many times you can use an item? (Like once for a potion or something).  Is there a script that allows you to add to that?

[Answered] Item Uses Remaining with Scripting

18 years ago
I think I get what you mean. No, but you don't need it. Just use the $ITEMUSED variable. Later if you want to make it able to have more uses, just at the start set it as in it's only got a few uses left. Like if at the start you want a maximum of 15 uses, but at the end you want a maximum of 30 uses, then make it $ITEMUSED?? set to 15 at the start, which means it has fifteen left.

[Answered] Item Uses Remaining with Scripting

18 years ago
Not following.  What is the itemused variable?

[Answered] Item Uses Remaining with Scripting

18 years ago

its exactly as it sounds, it stores the amount of uses in an item..

 

$ITEMUSED01 := 2

The item with id of 1 has a remaining number of uses of 2.

[Answered] Item Uses Remaining with Scripting

18 years ago

Can I put that exact script into a link script?

[Answered] Item Uses Remaining with Scripting

18 years ago
yeah, but changet he id number to the item you want...

[Answered] Item Uses Remaining with Scripting

18 years ago
Thank you so much! I need this badly for my new game Serennia

[Answered] Item Uses Remaining with Scripting

18 years ago
another fantasy adventure? or has the plot/outline thingy changed? i thought you said you wanted to see a political game, why not make one yourself, it would be awesome to see a political game that was good! (lol im thinking along the lines of man of the year and realworld debate)

[Answered] Item Uses Remaining with Scripting

18 years ago
I've posted a thraed in the Writing Workshop.  Not even I can confrim that I'll be able to finish this one.  Also can yo uset the Itemuse variable above 8?  Cuz thats the limit on the max uses when you first make it.

[Answered] Item Uses Remaining with Scripting

18 years ago
you should be able to...

[Answered] Item Uses Remaining with Scripting

18 years ago
But yeah if this story gets done, Id be hard pressed not to make it a length 9  :D