HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Spells with [Bxxx] and [Xxxx] codes?

11-26-2002, 12:12 AM#1
Guest
okay, for some reason when I try to make a copy of a spell that contains an information field such as [BUfa] or [XHbz] I can not make a copy of the spell that works. Is it possible for me to make a new spell based on one with these fields?

I want to create a spell called "Protect" based on the Lich's Frost Armor skill....only It won't have the cold effect, just add armor. I copied the Frost Armor (Autocast) sections from the Undead.txt files and changed the pictures/words around but my new spell won't show up in the editor....

How can I get this to work??? Here's the stuff I have on it:

// Priest - Protect (Autocast)
[APpr]
Art=ReplaceableTextures\CommandButtons\BTNBarkSkinOn.blp
Unart=ReplaceableTextures\CommandButtons\BTNBarkSkinOff.blp
Buttonpos=1,2
Unbuttonpos=1,2
Researchart=ReplaceableTextures\CommandButtons\BTNBarkskin.blp
Researchbuttonpos=1,0
Order=protect
Orderon=protecton
Orderoff=protectoff

[BUfa]
Buffart=ReplaceableTextures\CommandButtons\BTNBarkSkin.blp
Targetart=Abilities\Spells\Undead\FrostArmor\FrostArmorTarget.mdl
Targetattach=chest
Specialart=Abilities\Spells\Undead\FrostArmor\FrostArmorDamage.mdl
Specialartattach=chest


// Priest - Protect (Autocast)
[APpr]
Name=Protect
EditorSuffix= (Autocast)
Tip=P|cffffcc00r|rotect - [|cffffcc00Level 1|r],P|cffffcc00r|rotect - [|cffffcc00Level 2|r],P|cffffcc00r|rotect - [|cffffcc00Level 3|r]
Ubertip="Creates a protective shield around a target friendly unit. The shield adds <APpr,Data12> armor. |nLasts <APpr,Data11> seconds.","Creates a protective shield around a target friendly unit. The shield adds <AUfa,Data22> armor. |nLasts <APpr,Data21> seconds.","Creates a protective shield around a target friendly unit. The shield adds <APpr,Data32> armor. |nLasts <APpr,Data31> seconds."
Untip="|cffc3dbffRight-click to activate auto-casting."
Unubertip="|cffc3dbffRight-click to deactivate auto-casting."
Hotkey=R
Unhotkey=R
Researchtip="Learn P|cffffcc00r|rotect - [|cffffcc00Level %d|r]"
Researchubertip="Creates a protective shield around a target friendly unit which increases their armor. |n|n|cffffcc00Level 1|r - Adds <APpr,Data12> armor. |n|cffffcc00Level 2|r - Adds <APpr,Data22> armor. |n|cffffcc00Level 3|r - Adds <APpr,Data32> armor."
Researchhotkey=R

[BUfa]
Bufftip=Protect
11-26-2002, 01:36 AM#2
Guest
You also have to edit Worldeditstrings.txt and place it in the appropriate locations. Best idea is to place it in the same category as the spell it is based off of. I know this will get the spell to show up in the editor. However, I am yet to have success with making new spells. My only success is in editing the existing ones. I think it has something to do with the spells must have unique "codes" so the game knows what spell you are executing. Therefore if the code doesn't already exist, and you order that unit to cast the spell, nothing happens because the game doesn't recognize the command. For example, if you give the code "AEsf" to a spell, then it should work, because the game sees it as starfall. But I don't know for sure if 2 different spells can possess the same code and execute with the different spell data such as amount of damage and duration. But if you assign the code "AEaf", then the game won't execute the spell because it doesn't recognize the code. This is all what I have experienced thus far. I could be wrong about the NEW spells. If someone else knows differently please post here and correct me.
11-26-2002, 02:01 AM#3
nicoli_s
all i gotta say is this, if u dont know what yer doing dont edit X or B spells.but, u can create new spells, jut make u put an existing code under "code"
11-26-2002, 02:29 AM#4
Scio
from what i can tell bliz used A for abilities and B for buffs makes sense to me!:D
11-27-2002, 09:39 PM#5
BlacKDicK
yes, but custom aliased spells (the onés that are using "fake" entries") will not work OK with BUFFS (ie: it will use the buff of the original spell even though you've created it's entry.
11-28-2002, 03:37 PM#6
ph33rb0
Only thing I could say is you might wanna just stick to a non-leveling skill and have it based off inner fire.
11-28-2002, 08:40 PM#7
Scio
yes i know black, i simply was saying where blizzard got theri name scheme from:////