The problem is with this script:
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 problem is that the script only works when the spell name is a number, but I saw a map using the script to save the variable as a name ( see it here )
Can somebody help me?