HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with spell. Won't work

02-04-2003, 02:48 AM#1
Guest
I can't get this spell to work. I followed the spell tutorial to the letter. It just shows that face icon and won't let me click it. It's based on the death knight ultimate Animate Dead. It's been changed to a 3 level spell and has been made to work on living units. It's called Dark Conversion now. I'll copy the elements of the spell onto this post:

EDIT: Ok it wasn't implanting cause I had the map open in world editor. I implanted it and it lets me pick it but it won't let me level it up. Also it doesn't seem to work with the target settings I gave it. Maybe it will only work on corpses no matter the settings?

UndeadAbilityStrings.txt:

// Dark Conversion
[Aft0]
Name=Dark Conversion
Tip=Dark |cffffcc00C|ronversion - [|cffffcc00Level 1|r],Dark |cffffcc00C|ronversion - [|cffffcc00Level 2|r].Dark |cffffcc00C|ronversion - [|cffffcc00Level 3|r]
Ubertip="Converts <Aft0,Data11> enemy units in an area to fight for the Necromancer Lord for <Aft0,Dur1> seconds.","Converts <Aft0,Data21> enemy units in an area to fight for the Necromancer Lord for <Aft0,Dur2> seconds.","Converts <Aft0,Data31> enemy units in an area to fight for the Necromancer Lord for <Aft0,Dur3> seconds."
Hotkey=D
Researchtip="Learn Dark |cffffcc00C|ronversion"
Researchubertip="Converts enemy units in an area to fight for the Necromancer Lord for <Aft0,Dur1> seconds. |n|n|cffffcc00Level 1|r - Converts <Aft0,Data11> enemy units. |n|cffffcc00Level 2|r - Converts <Aft0,Data21> enemy units. |n|cffffcc00Level 3|r - Converts <Aft0,Data31> enemy units."
Researchhotkey=D
Globalmessage=
Globalsound=

UndeadAbilityFunc.txt:

// Dark Conversion
[Aft0]
Art=ReplaceableTextures\CommandButtons\BTNAnimateDead.blp
Researchart=ReplaceableTextures\CommandButtons\BTNAnimateDead.blp
Buttonpos=0,2
Researchbuttonpos=0,0
Specialart=Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Order=animatedead

AbilityData.slk:

0)Alias (code for spell data: "Aft0"
1)Code (cannot be made up: "AUan"
2)Uberalias (tooltip+art: "Aft0"
3)Commen: "Necromancer Lord - Dark Conversion"
4)Use in the editor (1=yes,0=no: 1
5)Is a hero spell (1=yes,0=no: 1
6)Is an item spell (1=yes,0=no: 0
7)Sort (display in editor: "hero"
8)Check dependency (1=player,0=creep: 1
9)Level: 1
10)Required leve: 1
11)Target: "air,ground,organic,notself,invu,vuln,nonancient,enemy,neutral"
12)Cast time lvl : 0
13)Duration lvl : 120
14)Hero duration lvl : 120
15)Cooldown time lvl : 100
16)Mana cost lvl : 100
17)Area of Effect lvl : 900
18)Range lvl : 400
19)Data11 (unique to spell: 2
20)Data12 (unique to spell: "-"
21)Data13 (unique to spell: "-"
22)Data14 (unique to spell: "-"

it repeats this:

12)Cast time lvl : 0
13)Duration lvl : 120
14)Hero duration lvl : 120
15)Cooldown time lvl : 100
16)Mana cost lvl : 100
17)Area of Effect lvl : 900
18)Range lvl : 400
19)Data11 (unique to spell: 2
20)Data12 (unique to spell: "-"
21)Data13 (unique to spell: "-"
22)Data14 (unique to spell: "-"

3 times with only unique to spell changing to 3 then 4.

at the end I packed all 3 files into the map with winmpq with the prefix Units\
02-04-2003, 03:29 AM#2
Guest
That was a good idea. Unfortunately the resurrection spells (raise dead / resurrection) have their targets hard coded. That field in the slk file, atleast in the case of these two spells, is just basically a reminder.
02-04-2003, 04:10 AM#3
Guest
Ah damn. Thanks for clarifying. I guess it's just a matter of trial and error till you get experience eh?
02-04-2003, 07:02 AM#4
Hakujin
It won't level up? You mean you can pour points into it but it stays at level 1? That means something is wrong with your TXT. Did you modify the [Bxxx] setting? If it only gives you one level, then check the SLK "levels" field and make it 3.
02-04-2003, 05:56 PM#5
wei
that's probably because you can't have it based on the animate dead skill...

why not base it on the "sceptre of mastery" skill ? i've read somewhere in this forum or another that someone had actually made an RPG with that skill named "soul domination"... and the skill can control a single enemy unit for a period of time...

btw your "dark conversion" is too powerful for a 3 level skill isn't it ? how would you play against an opponent with such uber-powerful skill ?
02-04-2003, 11:56 PM#6
Guest
Well I changed it so it just brings dead units back in his service. It wouldn't be that powerful because it's only as strong as the units it brings back. If there are strong units to bringback there will be strong units to fight them.
02-05-2003, 12:31 AM#7
wei
Quote:
Originally posted by Blo0d-Angel
It's been changed to a 3 level spell and has been made to work on living units.

this is way too powerful :D
since u've changed it back to only the dead corpses then it's less powerful...
i think there's some spells which targets can't be changed even you edit the slk... i've tried changing mass-teleport target to air, but it still can't target air units...

so it's hard-coded like Lockdown said