Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Variables and items and such

2 days ago

Can you make it so you can increase variable if you use an item?

Variables and items and such

2 days ago

Yes. Create an item, set it to a value. Then in the item script run the script ITEM : = ITEM + 1, and have using the item take you to a page, where you can use on page scripting to show the increase.

Variables and items and such

2 days ago

Forgot to show item script (Number is the variable obviously):

Variables and items and such

2 days ago

I don't have the script button that you have on yours?

Screenshot 2025-10-16 9.22.41 AM.png 

Variables and items and such

2 days ago

You need to turn your story to advanced editor mode.

Variables and items and such

2 days ago

I'm so confused

Isoconfused.jpeg

Variables and items and such

2 days ago
When you create a story, after you choose the name and enter a description and selection finish, you will come to a new page. At the bottom, you will see "Editor Options," and a blue link that says "change editor features." You need to go there and change both variable and scripting to Advanced.

After you do that, you can do as I have done in the previous posts: create a variable, create an item, and edit the item's script to change the variable. Then, to display the variable's number, you would use on-page scripting.

Variables and items and such

2 days ago

With ITEM : = ITEM + 1? Or do you change item based on the name of your item? 

Variables and items and such

2 days ago
What is the name of the variable you're increasing?

Variables and items and such

2 days ago
You know what, never mind, I'll just let Flux handle this as punishment for being so very gay.

But the key to everything is in reading the description of the Item Script option.

Variables and items and such

2 days ago

I'm trying to make it so your Health variable goes up if you eat a granola bar.

Variables and items and such

2 days ago
Make a one use item called a granola bar, set the effect the raise %HEALTH by 1.

I am unclear if you understand how to create and adjust variables at all, which would be the first step needed. (If you didn't have Flux just doing it for you!)

Variables and items and such

2 days ago
How about you make me a coauthor, I make an item that will go up if you click on it and take you to another page (as far as I know you MUST do that) that way you will have the script and be able to learn how to do it yourself? Note this would be the ONLY thing I would do, and after that it's all on you.

EDIT: You can start a new story and make me a coauthor, and then just copy this stuff over to your main story if you want.

Variables and items and such

2 days ago

Sure.

Variables and items and such

2 days ago
You will be able to change the name but you'll have to also change the name in all the script too.

Variables and items and such

2 days ago
Okay the first thing I have done is changed your editor and variable settings to advanced. Now you have access to scripting. EDIT: I'm taking this to PM because I don't think everyone wants the forums cluttered.

Variables and items and such

2 days ago
Aw no, I wanted to see the full disaster.

Variables and items and such

2 days ago
lol it was just going to be me creating a variable with a script and doing an on-page script showing the variable.

Variables and items and such

yesterday
I think Mizal was lamenting not being able to see the response to that example.

Variables and items and such

yesterday
Oh, yes. I did deprive the world of some potential entertainment. But it seems this actually went over pretty well. Cat Lady seems to understand it. Honestly it was just me making a change and explaining it and her utilizing it. Hate to disappoint.