HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making a passive unit cast a custom spell

12-12-2002, 05:43 AM#1
Lochen
Looking through some files and after some help from nicoli ive got this to happen

Create some invisible looking guy with this spell berzerk

Order (Last created unit) to Berzerker - Cast Berzerk) on (triggering unit)

The unit casts a modified spell slam call Berzerk (to work like the old berzerk from the beta did)

That works all fine and well, it even summons the unit through the triggers, but it wont cast the spell..

To even get the option of it casting the spell i edited
TriggerData.txt and
WorldEditStrings.txt

Ill post the changes I added to these

TriggerData.txt:
UnitOrderArmorredux=unitorderutarg,`armorredux`,WESTRING_UNITORDERUTARG_ArmorRedux

HeroSkillArmorRedux=heroskillcode,'Afar',WESTRING_UNITORDERUTARG_ArmorRedux

WorldEditStrings.txt
WESTRING_UNITORDERUTARG_ArmorRedux="Berzerker - Cast Berzerk"

WESTRING_UNITORDERUTARG_ArmorRedux="Bezerk armor reduction"


It shows up, but doesnt cast... Ive tried putting the ghost thing on passive or your own side, making the first 2 have the same start (UnitOrderArmorredux vr HeroSkillArmorRedux) etc etc.. anyone have any experience with kinda thing?.. its really confusing

Thanx in advance
The not quite a n00b mapper :D
12-12-2002, 06:55 PM#2
Lochen
I reviewed it a bit more and realized some stuff that doesnt fit in...



HeroSkillArmorRedux=heroskillcode,'Afar',WESTRING_
UNITORDERUTARG_ArmorRedux

this is for hero skills that dont have orders, but since it has an order this shouldnt be here

WESTRING_UNITORDERUTARG_ArmorRedux="Bezerk armor reduction"

and this is for hero skill or something.. whatever its useless

but still nothing works right... anyone know anything on this stuff? its really confusing
12-12-2002, 07:53 PM#3
BoddoZerg
I wouldn't bother editing TriggerData and WorldEditorStrings if I were you - they are confusing and easy to mess up. Custom text (JASS) is extremely easy in comparison.
12-12-2002, 08:50 PM#4
Lochen
go on :D
Making a passive unit cast a custom spell - Wc3C.net