In keeping with BFM's tradition of not answering your question...
Did you know that "Rouge" is "a cosmetic used to color the cheeks and emphasize the cheekbones"? You probably mean "Rogue" though.
Kidding aside, it's hard to say why your function is not printing or accepting input, without seeing the rest (or part of the rest) of your code.
Some questions do come to mind though...
Is Class$ declared as a global? If not, then all your IF/THEN tests will fail, as Class$ will always equal an empty string. That's where BFM's suggestion of using SELECT/CASE can be quite handy. A simple CASE DEFAULT would catch any value for Class$ that is not specifically tested.
Thus:
function easycombat()
select Class$
case "Fighter"
MonsterHp = 2
print "YourHp = ";Hp
print "MonsterHp = ";MonsterHp
print "What do you do?(1-3)"
print "1. Swing your sword at the monster"
print "2. Stab the monster"
print "3. Nothing"
Input Choice
If Choice = 1
MonsterHp = MonsterHp - 5
endif
If Choice = 2
MonsterHp = MonsterHp - 5
endif
If MonsterHp < 1
exitfunction
endif
print "The monster attacks you"
Hp = Hp-1
endcase
case "Barbarian"
MonsterHp = 2
print "YourHp = ";Hp
print "MonsterHp = ";MonsterHp
print "What do you do?(1-3)"
print "1. Swing your Ax at the monster"
print "2. Punch the monster"
print "3. Nothing"
Input Choice
If Choice = 1
MonsterHp = MonsterHp - 5
endif
If Choice = 2
MonsterHp = MonsterHp - 2
endif
If MonsterHp < 1
exitfunction
endif
print "The monster attacks you"
Hp = Hp-1
endcase
case "Rouge"
MonsterHp = 2
print "YourHp = ";Hp
print "MonsterHp = ";MonsterHp
print "What do you do?(1-3)"
print "1. Swing your shortsword at the monster"
print "2. Stab the monster with your Knife"
print "3. Nothing"
Input Choice
If Choice = 1
MonsterHp = MonsterHp - 5
endif
If Choice = 2
MonsterHp = MonsterHp - 2
endif
If MonsterHp < 1
exitfunction
endif
print "The monster attacks you"
Hp = Hp-1
endcase
case "Thief"
MonsterHp = 2
print "YourHp = ";Hp
print "MonsterHp = ";MonsterHp
print "What do you do?(1-3)"
print "1. Swing your Dagger at the monster"
print "2. Stab the monster with your Knife"
print "3. Nothing"
Input Choice
If Choice = 1
MonsterHp = MonsterHp - 5
endif
If Choice = 2
MonsterHp = MonsterHp - 2
endif
If MonsterHp < 1
exitfunction
endif
print "The monster attacks you"
Hp = Hp-1
endcase
case "Wizard"
MonsterHp = 2
print "YourHp = ";Hp
print "MonsterHp = ";MonsterHp
print "What do you do?(1-3)"
print "1. Cast a fireball at the monster"
print "2. Wack the monster with your staff"
print "3. Nothing"
Input Choice
If Choice = 1
MonsterHp = MonsterHp - 5
endif
If Choice = 2
MonsterHp = MonsterHp - 2
endif
If MonsterHp < 1
exitfunction
endif
print "The monster attacks you"
Hp = Hp-1
endcase
case "Cleric"
MonsterHp = 2
print "YourHp = ";Hp
print "MonsterHp = ";MonsterHp
print "What do you do?(1-3)"
print "1. Smite the monster with holy might"
print "2. Heal yourself"
print "3. Nothing"
Input Choice
If Choice = 1
MonsterHp = MonsterHp - 5
endif
If Choice = 2
Hp = Hp + 2
endif
If MonsterHp < 1
exitfunction
endif
print "The monster attacks you"
Hp = Hp-1
endcase
CASE DEFAULT
print "NO CORRECT CLASS FOUND"
ENDCASE
endselect
EndFunction
Also, the variable "HP" should be global, so that it persists through calling the easycombat() function.
Of course there could be some other problem. Are you using sync commands? Have you changed the ink color? And so on...