1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
on:use {
	$spell=inputwin("Write your spell",1,"Cancel","Cast the Spell");
	if ($spell=="spell name") {
				 addstate "unit",1,17;
				 msg "Imortal spell casted",4;
				 play "magic.wav";
	}else{
	msg "What you wrote isn't a spell",3;
	speech "negative";
	}
}
The big problem is: The script only works when the spell name is a number, can someone help me with this script?
edited 3×, last 27.02.12 08:53:49 pm
Conditions with letters
1 
Offline