Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Dependant Variables?

11 years ago

So, I was wondering if there was a way to make variables dependant on each other. Like, if Variable A increases to a specified number, then Variable B would increase as a result of it. I'm trying to make it so that increasing a variable will trigger another variable to increase along with it, thus triggering the event of the second variable without having to place the event on the first variable. Is this possible, or would I have to just make them increase seperately?

Dependant Variables?

11 years ago

Check out here to learn how to Script -

Advanced Scripting

Intermediate Scripting

The Basics of Scripting

And yes, doing what you asked about is easy with Scripting. For Example:

IF %VARIABLE1 > 100 THEN
%VARIABLE2 := %VARIABLE2 + 2000

Dependant Variables?

11 years ago

Thanks!