HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Getting the comp to learn a custom spell via triggers?

12-04-2002, 11:55 AM#1
Guest
Anyone knows how I can get the WE to list my new spell in his list of spells for the "learn spell" action?
It's stupid, I can give my hero my new spell in the Units Editor simply by adding the slk file to the patch file, but it does not work for triggers :bgrun:

Anyone can help?

TIA,

Kinniken
12-04-2002, 05:40 PM#2
Guest
Hmmm, there are one of two possible ways. The first I'm not too sure about.

You should be able to select the spell if you have a reference to it in some <Race>AbilityFunc.txt AND <Race>AbilityStrings.txt, AND they are in C:\Program Files\Warcraft III\Units. However, I do know that WE keeps a spell list in the WorldEditStrings.txt, and I am not sure if that applies here. It might.

In that case, you would either need to edit WorldEditStrings.txt or convert yourself to custom text. I believe the "learn skill" functions take in the ability ID.
12-04-2002, 10:03 PM#3
nicoli_s
you need to edit world edit strings and and trigger steings and maybe trigger data