Quick question on syntax...
Posted: Fri Nov 21, 2003 9:29 am
I want to use ActionSpeakString() to spit out the state of some variables in my script for debugging and informational purposes... It's been so damn long since I've messed with anything coding related though that I can't remember what I have to do to get output from a non-string variable included in a line... What I'm going for is this...
You have been given 2,000 gold coins.
Skeletal version of the string should look like:
You have been given vGoldAward gold coins.
What I tried, cause I couldn't remember any better:
ActionSpeakString("You have been given " vGoldAward " gold coins.")
Now, obviously ActionSpeakString() doesn't like the multiple strings sitting there, but if I put vGoldAward within the quotes then it will say "You have been given vGoldAward gold coins." which also doesn't do me much good. I know the answer is simple, but I'm getting old and my memory is failing
You have been given 2,000 gold coins.
Skeletal version of the string should look like:
You have been given vGoldAward gold coins.
What I tried, cause I couldn't remember any better:
ActionSpeakString("You have been given " vGoldAward " gold coins.")
Now, obviously ActionSpeakString() doesn't like the multiple strings sitting there, but if I put vGoldAward within the quotes then it will say "You have been given vGoldAward gold coins." which also doesn't do me much good. I know the answer is simple, but I'm getting old and my memory is failing
