• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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:
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?
 
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.
Back
Top