How to make a general variable?

Started by , Mon 26/06/2006 16:13:52

Previous topic - Next topic

Mounty

Question: I'm trying to make my own adventure game, however, i would like to make a string that keeps counting in all rooms and to which i can add or subtract points from (eg. with ++). where should i put this string and how can i acces it inside every room.

thanks,
Mounty

Ashen

#1
BFAQ: Working with variables, the basics

What you actually want is an int - strings are for words, not numbers. Also, if you're using version 2.7 or earlier, note that strings can't be made global, use the Get/SetGlobalString commands instead. (In v27.1 there's the Game.GlobalStrings property, but Strings can also be imported/exported.)
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk