Anonymous user
Scripting, Code & Interaction: Difference between revisions
Scripting, Code & Interaction (view source)
Revision as of 13:44, 19 September 2007
, 19 September 2007→Inserting variables into speech/messages
*>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. | You can also do this with int variables, e.g.: | ||
int my_int = 3; | int my_int = 3; |