BLAH
char_hp=input("how much hp do you want?")as null|text
if(char_hp<"4")
usr<<"sorry thats too much, small, or is not a number! it will be set to 12!"
char_hp=12
BLAH
char_hp=input("how much hp do you want?")as null|text
if(char_hp<"4")
usr<<"sorry thats too much, small, or is not a number! it will be set to 12!"
char_hp=12//<---line76 in LOGIN.dm
if(char_hp>"15")
usr<<"sorry thats too much, small, or is not a number! it will be set to 12!"
char_hp=12
but whenever i try that it gives me this runtime error:
runtime error: type mismatch
proc name: CreateCharacter (/mob/creating_character/proc/CreateCharacter)
source file: LOGIN.dm,76
usr: Redslash (/mob/creating_character)
src: Redslash (/mob/creating_character)
call stack:
Redslash (/mob/creating_character): CreateCharacter()
Redslash (/mob/creating_character): Login()
and i don't know what it means, plz help
Well, first off, why are you using text input for an HP var? You should set it as num|null or null|num. How can you use > and < comparing a text input?
Second off, Im sorry, but I don't know what the run-time error means. It says type mismatch, maybe it's because your using text.
Airjoe