Search the Community
Showing results for tags 'set'.
Found 2 results
-
Hello, I want to set a permanent character variable that calls from an array. For example, my variable set up: setarray(variable$[0], "value_1", "value_2", "value_3" ); And then call array to set the variable: variable$[2] = 1; It seems to work okay...but when scripts reload, values are cleared. Any help? Thanks.
-
Hello again Hercules, I want to set a variable so when it is 1, it can appear in a message box next to writing in a 'mes' box. But I can't figure out how to make it work. E.g. I set my variable to 1. set @color, 1; And then whenever if (.color == 1) { ^00ff00; } else { ^ff0000; } It will appear in a message box like so: if color is set to 1, mes "" + @color + "This text is bright green^000000."; This text is bright green. if color is set to 0 (or anything else), mes "" + @color + "This text is bright green^000000."; This text is bright green. Hope I explained it well enough. Any suggestions appreciated. Thank you.