|
Post by Simple Question on Jul 29, 2002 8:59:31 GMT
Im scripting a Text based RPG game to follow a story I wrote...and I been fooling around and I am doing quite fine, It's just I have a simple problem that makes things hard...
How can I use text as a variable? as in PRINT "Input your charictor name..." INPUT CharName PRINT CharName "Is this what you wanted?"
I know I sound like a moron, But Im only 14, Gimme a break. Please help if you have the time, If I could figure this out everything else would go smoothly...=/
|
|
Not waving drowning
Guest
|
Post by Not waving drowning on Jul 29, 2002 10:21:24 GMT
Put a dollar sign after your variable name. I.e:
PRINT "What is your name:" INPUT ; charname$ PRINT charname$ ; ", is this what you want?"
To clean up the code a bit you could try writing it like this:
INPUT "What is your Name" ; charname$ PRINT charname$ ; ", is this what you want?"
Hope this helps...
|
|
|
Post by Roofles Hunter Gah on Jul 30, 2002 3:52:08 GMT
Sorry for asking such a dumb question...Thanks for the help...
|
|