Z
zendraw
Guest
so i have this problem.
i have 2 scripts which do lets say 100 checks to see if a condition is true, and if it is true, set "variable"=1;
now in both scripts, the checks are exactly the same, but the variable that i am setting is diffrent. how do i cut this short and not use 2 scripts.
example:
script 1:
x100
script 2:
x100
ofcorse i run the scripts for diffrent situations, but still its the same checks, just diffrent variables.
i have 2 scripts which do lets say 100 checks to see if a condition is true, and if it is true, set "variable"=1;
now in both scripts, the checks are exactly the same, but the variable that i am setting is diffrent. how do i cut this short and not use 2 scripts.
example:
script 1:
GML:
if (walking on street) {sunny=1};
script 2:
GML:
if (walking on street) {nighty=1};
ofcorse i run the scripts for diffrent situations, but still its the same checks, just diffrent variables.