NeoBlade said:
this may be a stupid question, but in rmxp, how can you make variables?? the only thing i can do now is change there names...
depends if it's a script or an event variable.
events:
for events it's all in the event command:
"variable operation."
event variables are objects for storing numbers.
like:
variable [001::variable_name] = 1
coding can be done like this:
Code:
var [001::variable_name] = 5
var [001::variable_name] *= 5
would output 25
scripts:
script variables are easier,
any word or text can be a variable
like:
there are a few variables:
my_var : can be used in 1 single method
@my_var : instance variable, can be used in methods inside 1 class
$my_var : global variable, can be accessed in any method, any class
and any call script. it still stays the same object.
any calculations would be:
Code:
@my_var = 5
$my_var = 6
my_var = (@my_var + $my_var)
outputs 11
or:
@my_var = 7
@my_var % 4
would be 3.
hopes this helpes you out