• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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
334
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