Variables are a good thing

The first RPG I ever made was about Brian the young traveller. Apart from I wasn't quite sure about the objective of the game.

So there's Brian and friends wondering around the world doing nothing in-per-ticular when suddenly I decide Greg is the new main character name.

So off I went changing all the places that the name Brian came up to Greg and about two and ahalf hours later I had finished.

When if I had used a variable for my main character's name it would have took less than a minute.

E.G. changing:-

string MainCharacter;
MainCharacter = "Brian";

to:-

string MainCharacter;
MainCharacter = "Greg";

Big deal it could only really happen once though I thought.

But then I decided on reia instead of gold. (off I went again)

But then you can use variables all the time in a RPG.

E.G. is this door open?

int DoorOpen;

DoorOpen = 0;

If the door is open the variable DoorOpen is equal to 1.

Or maybe this example is easier for you?

string DoorOpen;

DoorOpen = "false";

Now when on the map you add an entity to the door:-

    void OurDoor()
    {
    	if (DoorOpen = "False")
    	{
    		DrawText(5, 10, "It's locked.");
    	}
    	else
    	{
    		DrawText(5, 10, "It's open.");
    	}
    }

It's easy and useful.

(esp. if you change your mind alot)

Remember:- It's your RPG so just make it so you like it, and therefore other people like-you will also like it.