Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Use an Item, Affect the Variable Directly?

10 years ago

Is there a way to just use an item from your inventory and directly affect the variable.
So far I've been just making the user "use" the item and then take them to a separate screen saying "You used this item". After clicking on the "Continue" button, the Continue button is the one that affects the variable. 

Is there an easier way around this? Thanks.

Use an Item, Affect the Variable Directly?

10 years ago

You can using item scripting to directly affect a variable.

Use an Item, Affect the Variable Directly?

10 years ago
You can put this into the item script. Replace %VARIABLE with the variable name, but leave the % or it will give an arror. %VARIABLE := %VARIABLE - 2