• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Need a help with a spell

Status
Not open for further replies.
Level 3
Joined
Nov 22, 2006
Messages
28
Need a help with a spell/trigger

Hello again....
I downloaded the spell Battle Mastery made by The_Avenger`s_Return, but when im doing it on my map, some strings are in light gray and i cant modify it, because it say that the value does not exist. like i dont know how to ost in trgger format iil put it in text format:
Battle Mastery
Events
Unit - A unit Dies
Conditions
((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
((Killing unit) is A Hero) Equal to True
(Level of Hex (Team Killer) for (Killing unit)) Equal to 1
Actions
Set NumberDeadUnits_Str = (NumberDeadUnits_Str + 1)
Set NumberDeadUnits_Agi = (NumberDeadUnits_Agi + 1)
Set NumberDeadUnits_Int = (NumberDeadUnits_Int + 1)

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
NumberDeadUnits_Str Equal to 8
Then - Actions
Hero - Modify Strength of (Killing unit): Add 1
Set NumberDeadUnits_Str = 0
Special Effect - Create a special effect attached to the origin of (Killing unit) using Abilities\Spells\Items\AIsm\AIsmTarget.mdl
Wait 0.10 seconds
Special Effect - Destroy (Last created special effect)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
NumberDeadUnits_Agi Equal to 10
Then - Actions
Hero - Modify Agility of (Killing unit): Add 1
Set NumberDeadUnits_Agi = 0
Special Effect - Create a special effect attached to the origin of (Killing unit) using Abilities\Spells\Items\AIam\AIamTarget.mdl
Wait 0.10 seconds
Special Effect - Destroy (Last created special effect)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
NumberDeadUnits_Int Equal to 12
Then - Actions
Hero - Modify Intelligence of (Killing unit): Add 1
Set NumberDeadUnits_Int = 0
Special Effect - Create a special
*end*


So please help me, say if i need a program or anything.the triggers that "doesnt exist" are in bold.
 
Last edited:
Level 7
Joined
Sep 5, 2006
Messages
333
Use the trigger tag, i think its because you don't have the variables, did you move the spell to your map? If so, did you move the variable and funtion?
 
Level 3
Joined
Nov 22, 2006
Messages
28
Thanks im gonna see the variables..+rep
PS: wheres the trigger tag??

Edit: basically it worked(at least on world editor), gonna see it ingame.
 
Status
Not open for further replies.
Top