Scripting, Code & Interaction: Difference between revisions

*>Ashen
*>Ashen
Line 180: Line 180:


Confused? First, we declare a String and name it '''my_name'''. Next, we use '''Game.GlobalString''' to store the string in slot #17 into the String we created. Next, '''Character.Say''' will be used and the '''%s''' is replaced with the string '''my_name'''. Got it?
Confused? First, we declare a String and name it '''my_name'''. Next, we use '''Game.GlobalString''' to store the string in slot #17 into the String we created. Next, '''Character.Say''' will be used and the '''%s''' is replaced with the string '''my_name'''. Got it?
You can also do this with int variables, e.g. to display numbers on GUI Labels:
You can also do this with int variables, e.g.:


   int my_int = 3;
   int my_int = 3;
Anonymous user