If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I dont understand whats going on with this variable.

The name variable in my text game acts funny.When I run the stats or help functions which are triggered by typing in those words, it changes the name variable to either stats or help. Why?
Here is the game:

function Help(go) {
$("header").append("<p>-= Help =-<p>");
$("header").append("<p>The TALK command can be used to talk to a quest npc if one is present. Quest NPCs appear in certain places depending on your level. Completing quests will earn you rewards.</p>");
$("header").append("<p>The ATTACK command can be used to attack a Quest NPC if is part of a quest.</p>");
$("header").append("<p>The STATS command can be used to check you stats such as armor rating and strength. As your level increases your stats will increase.</p>");
$("header").append("<p>The EQUIP command can be used to equip different items.</p>");