Topic:   Variable Text?   (Read 15884 times)


0 Members and 2 Guests are viewing this topic.

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Variable Text?
« on: December 11, 2010, 06:15:48 PM »
Er... how do I make a variable = text?
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Variable Text?
« Reply #1 on: December 11, 2010, 06:43:52 PM »
Are you having a laugh?
I survived the spammage of 2007

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: Variable Text?
« Reply #2 on: December 11, 2010, 06:45:20 PM »
Unfortunately no, I can't believe I forgot this.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Variable Text?
« Reply #3 on: December 11, 2010, 06:54:32 PM »
Maybe I'm just in denial, or maybe I'm tired from the 14 our shift I've just finished, but whatever the case, I'm not laughing either. Gadzooks man, what have you been up to that's wiped clean your memory?

Code: [Select]
integer = x
string$ = "x"
« Last Edit: December 11, 2010, 06:55:40 PM by Silverwind »
I survived the spammage of 2007

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: Variable Text?
« Reply #4 on: December 11, 2010, 07:09:15 PM »
so If I wanted to have a name in a text then it would be
name$ = "Geoff Gnomely"
PRINT = Oh hello $name$

?
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Gnome


  • GMG Extraordinaire

  • ***


  • Posts: 1073
Re: Variable Text?
« Reply #5 on: December 11, 2010, 07:26:02 PM »
Nevermind, it was my code.
This Cannot be, NOOOOOOOO!!!!

-Gnomes Cry when the McRib was discontinued again.

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Variable Text?
« Reply #6 on: December 11, 2010, 07:26:27 PM »
L...O...L... How Gnome? How? You were the capable and aspiring youth; you were said to bring balance to GM, not destroy it!

In GM syntax, incasing a variable with dallar marks references its value, like so:
Code: [Select]
playerName$ = "Gnome the Absent Minded"

playerGold = 50

PRINT $playerName$$ has $playerGold$ gold!

http://alstaffieri.com/gmguide.html

http://www.screencast.com/users/Silverwind/folders/Jing/media/2c532398-02a8-4303-849d-73a2684d90c5

http://www.screencast.com/users/Silverwind/folders/Jing/media/56d45d28-0b27-4f73-8c0a-b8c4cbdf7634
I survived the spammage of 2007