Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Testing Using Variables: How To Change?

10 years ago

I have discovered how to change variables using the "plus/minus sign" once you make a link, though, I ask is that how do you change the variable score if you use a item? Let's say you dodge an ogre's blow, but get nicked on the head so you lose 12 health. And then you use a sword against him. He dies. And his skeleton companion shoots an arrow at you.

Can I automatically change it as the page comes up? Like, if you use the item, the arrow hits you, there is no link, and the variable changes for health. How can I do that if the only option to change the page is to use an item?

Testing Using Variables: How To Change?

10 years ago

Have you tried an item script?

Testing Using Variables: How To Change?

10 years ago

Not yet, I'm still new to scripting.

Testing Using Variables: How To Change?

10 years ago
You should check out the Help & Info section on scripting, I think that will do exactly what you want (though I'm not quite clear exactly what that is).

Testing Using Variables: How To Change?

10 years ago

Using an item will bring you to a new page. So, I think you should make new links in that page, and make those links to affect the variables.

Testing Using Variables: How To Change?

10 years ago

You can use the 'Edit Script' on an Item to run a Script when the Item is used.

IF %VAR1 = 10 THEN %VAR2 := 100

^That sort of thing.

Testing Using Variables: How To Change?

10 years ago

Still waiting on your PM reply.