HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unable to cast custom spell

02-03-2003, 03:28 AM#1
Protecyon
I have been trying to learn how to create custom spells. I have read the tutorials and am very close to being able to create a custom spell but now I have run into a roadblock. I decided to begin with a very simple custom spell. All it does is replace the Archmages blizzard spell graphic with the one from the rain of fire spell. I followed the tutorials to create the spell and then insert them into the map. I then run the map and I build an archmage. I see that he has my new custom spell and so I click to pick it as his first ability. When I do that I then look to cast the spell but the icon is not showing there. What could be the problem. Included here is my new custom spell. Please help me find out what is wrong.

// FireBliz
[AHb7]
Art=ReplaceableTextures\CommandButtons\BTNFire.blp
Researchart=ReplaceableTextures\CommandButtons\BTNFire.blp
Buttonpos=0,2
Researchbuttonpos=0,0
Casterart=
Order=blizzard

// FireBliz
[AHb7]
Name=FireBliz
Tip=FireBliz"
Hotkey=B
Researchtip="Learn FireBliz"
Researchubertip="FireBliz"
Researchhotkey=B
02-03-2003, 03:46 AM#2
DaKaN
check case in the abilitydata file and ALL text files you edited for that spell.

to the game

abcd

is different than

Abcd

I had a problem like this before, and noticed i had a lower case letter where there should have been a uppercase
02-03-2003, 03:59 AM#3
Protecyon
The case sensitivity doesn't seem to be the problem. I double checked it and even copied and pasted the name from the ability file. The problem still persists. Tommorow I'll upload the map file to my server and maybe that will better explain my problem. But if anyone thinks they know what could be wrong please post.

Here is the link to download the map. To find the the edited code just search for firebliz in the undeadabilityfunc.txt, undeadabilitystrings.txt and abilitydata.slk.

Dowload Map Here
02-03-2003, 08:08 PM#4
nicoli_s
check to see if the spell is based of a logic of an already existing spell. by that i mean, when it says code, alias and uber alias, code must be the same as the spell it is based on
02-03-2003, 08:23 PM#5
DaKaN
Also check to make sure the hero does not have 2 spells that use the same base code. Even though the 2 spells do different things, if they are both based off the same code, 1 will not work
02-03-2003, 08:43 PM#6
Guest
ok, i look at it at the moment

1.pls copy the spell AT THE END of the txt, it took my quite a while finding the entries...

2.you didnt replace Effectart=Abilities\Spells\Human\Blizzard\BlizzardTarget.mdl with the firethingy animation, so it will look like normal blizzard

3.ubertip in string.txt is missing

4.everything seems to be fine >_<

5. wierd, i started the map, saw that it was a melee map and i had random-undead... restarted as human... speedbuild altar.. got AM... selected the firerain skill and used it to kill my peons.
- Everything worked fine -
02-03-2003, 08:44 PM#7
Guest
oh well! i forgot, dakan is right.. your guy had firething AND blizz. so i was lucky with a 50% chance to get firerain working.. remove blizz for that guy and everything is fine
02-03-2003, 09:48 PM#8
Protecyon
Thank you everyone for your help.