GreenMagic793 Posted December 21, 2015 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 157 Reputation: 18 Joined: 08/18/15 Last Seen: April 5, 2023 Share Posted December 21, 2015 (edited) Hey guys, How do I set a variable as a word? I know that, for example, I can set a variable as a string with something like this: set #bankpoints,"" + strcharinfo(2) + ""; But, what if I just want to make that variable equivelant to a word? So, for example, what if I just wanted to have it be like this: set #bankpoints,"You are rich!"; I've tried doing it by simply using quotes and other things, but it doesn't seem to work, am I missing something? Thanks. Edited December 21, 2015 by greenmagic469 Quote Link to comment Share on other sites More sharing options...
0 Haziel Posted December 21, 2015 Group: Content Moderator Topic Count: 22 Topics Per Day: 0.00 Content Count: 639 Reputation: 597 Joined: 11/25/11 Last Seen: December 30, 2023 Share Posted December 21, 2015 (edited) Every string variable should end with $.Like: #bankpoints$ Examples: name - permanent character integer variable name$ - permanent character string variable @name - temporary character integer variable @name$ - temporary character string variable $name - permanent global integer variable $name$ - permanent global string variable $@name - temporary global integer variable $@name$ - temporary global string variable .name - NPC integer variable .name$ - NPC string variable .@name - scope integer variable .@name$ - scope string variable #name - permanent local account integer variable #name$ - permanent local account string variable ##name - permanent global account integer variable ##name$ - permanent global account string variable Edited December 21, 2015 by Haziel 1 Quote Link to comment Share on other sites More sharing options...
0 GreenMagic793 Posted December 21, 2015 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 157 Reputation: 18 Joined: 08/18/15 Last Seen: April 5, 2023 Author Share Posted December 21, 2015 That's a hugely helpful chart, thanks. Quote Link to comment Share on other sites More sharing options...
Question
GreenMagic793
Hey guys,
How do I set a variable as a word? I know that, for example, I can set a variable as a string with something like this:
set #bankpoints,"" + strcharinfo(2) + "";
But, what if I just want to make that variable equivelant to a word? So, for example, what if I just wanted to have it be like this:
set #bankpoints,"You are rich!";
I've tried doing it by simply using quotes and other things, but it doesn't seem to work, am I missing something? Thanks.
Edited by greenmagic469Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.