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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Customized Hero Spells System.w3x
Variables
Only for test Don't copy this
Inizialition
Reset
Triggerassolutamenteinutile
System
Set Variables
AbilitaRicevuta
AbilitaRimossa
POSTHERETHESPELLS
Inserisci il codice dello script personalizzato per la mappa nello spazio sottostante. Il testo verrà incluso nello script della mappa dopo che le variabili sono state dichiarate e prima di qualsiasi codice trigger.
Name
Type
is_array
initial_value
Ability
abilcode
No
AbilityCode
integer
No
AbilityLevel
integer
Yes
AbilityMaxLevel
integer
No
AbilityNum
integer
No
REMOVE
boolean
No
TempItem
item
No
TempUnit
unit
No
TempUnit2
unit
No
Inizialition
Events
Map initialization
Conditions
Actions
Game - Display to (All players) for 10.00 seconds the text: This map is created by PippoKiller. For information check the quest log.
Quest - Create a Required quest titled Informations with the description This map is made by PippoKiller.If you use this system please give credits to the creator. If you find any bug or have any advice, let's send me an e-mail at the email adress: [email protected] items with the hero for add spellsLeave item with the other strange unit to lose spellsThanks for testing , using icon path ReplaceableTextures\CommandButtons\BTNPolymorph.blp
Game - Set time of day speed to 0.00 % of the default speed
Reset
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Actions)
Loop - Actions
Unit - Reset ability cooldowns for (Picked unit) .
Unit - Set life of (Picked unit) to 100 %
Unit - Set mana of (Picked unit) to 100 %
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\Heal\HealTarget.mdl
Special Effect - Destroy (Last created special effect)
Triggerassolutamenteinutile
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Special Effect - Create a special effect at (Position of Your spells 0003 <gen>) using Abilities\Spells\Items\AIsm\AIsmTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variables
Events
Map initialization
Conditions
Actions
Set Variable Set TempUnit = Paladin 0000 <gen>
Set Variable Set TempUnit2 = Your spells 0003 <gen>
Set Variable Set AbilityMaxLevel = "2"
AbilitaRicevuta
Events
Unit - A unit Acquires an item
Conditions
(Hero manipulating item) Equal to TempUnit
Actions
Set Variable Set TempItem = (Item being manipulated)
Set Variable Set REMOVE = "false"
Trigger - Run POSTHERETHESPELLS <gen> (checking conditions)
AbilitaRimossa
Events
Unit - A unit Loses an item
Conditions
(Hero manipulating item) Equal to TempUnit2
Actions
Set Variable Set TempItem = (Item being manipulated)
Set Variable Set REMOVE = "true"
Trigger - Run POSTHERETHESPELLS <gen> (checking conditions)
POSTHERETHESPELLS
Events
Conditions
Actions
Trigger - Turn off AbilitaRimossa <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to Blink
Then - Actions
Set Variable Set Ability = "AEbl"
Set Variable Set AbilityCode = "1"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
Hero - Drop TempItem from TempUnit .
Else - Actions
Set Variable Set AbilityNum = (AbilityNum - 1)
Unit - Remove Ability from TempUnit
Item - Remove TempItem
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to Blizzard
Then - Actions
Set Variable Set Ability = "AHbz"
Set Variable Set AbilityCode = "2"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
Hero - Drop TempItem from TempUnit .
Else - Actions
Set Variable Set AbilityNum = (AbilityNum - 1)
Unit - Remove Ability from TempUnit
Item - Remove TempItem
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to Divine Shield
Then - Actions
Set Variable Set Ability = "AHds"
Set Variable Set AbilityCode = "3"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
Hero - Drop TempItem from TempUnit .
Else - Actions
Set Variable Set AbilityNum = (AbilityNum - 1)
Unit - Remove Ability from TempUnit
Item - Remove TempItem
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to Frost Nova
Then - Actions
Set Variable Set Ability = "AUfn"
Set Variable Set AbilityCode = "4"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
Hero - Drop TempItem from TempUnit .
Else - Actions
Set Variable Set AbilityNum = (AbilityNum - 1)
Unit - Remove Ability from TempUnit
Item - Remove TempItem
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to Impale
Then - Actions
Set Variable Set Ability = "AUim"
Set Variable Set AbilityCode = "5"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
Hero - Drop TempItem from TempUnit .
Else - Actions
Set Variable Set AbilityNum = (AbilityNum - 1)
Unit - Remove Ability from TempUnit
Item - Remove TempItem
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to Mirror Image
Then - Actions
Set Variable Set Ability = "AOmi"
Set Variable Set AbilityCode = "6"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
Hero - Drop TempItem from TempUnit .
Else - Actions
Set Variable Set AbilityNum = (AbilityNum - 1)
Unit - Remove Ability from TempUnit
Item - Remove TempItem
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to StarFall
Then - Actions
Set Variable Set Ability = "AEsf"
Set Variable Set AbilityCode = "7"
Set Variable Set AbilityMaxLevel = "0"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
Hero - Drop TempItem from TempUnit .
Else - Actions
Set Variable Set AbilityNum = (AbilityNum - 1)
Unit - Remove Ability from TempUnit
Item - Remove TempItem
Set Variable Set AbilityMaxLevel = "2"
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem) Equal to Wind Walk
Then - Actions
Set Variable Set Ability = "AOwk"
Set Variable Set AbilityCode = "8"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
REMOVE Equal to False
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit2 has an item of type (Item-type of TempItem)) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityLevel[AbilityCode] Less than AbilityMaxLevel
Then - Actions
Set Variable Set AbilityLevel[AbilityCode] = (AbilityLevel[AbilityCode] + 1)
Unit - Increase level of Ability for TempUnit
If (AbilityLevel[AbilityCode] Equal to AbilityMaxLevel) then do (Display to (All players) for 5.00 seconds the text: (|cffF4F400You reached the max level of the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400"!|r))) else do (Do nothing)
Item - Remove TempItem
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: (|cffF4F400Can't level up the spell "|r|cffFF0000 + ((Name of TempItem) + |r|cffF4F400" anymore!|r))
Hero - Drop TempItem from TempUnit .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AbilityNum Less than 6
Then - Actions
Unit - Add Ability to TempUnit
Hero - Give TempItem to TempUnit2
Set Variable Set AbilityNum = (AbilityNum + 1)
Else - Actions
Game - Display to (All players) for 5.00 seconds the text: |cffF4F400You can have a max of 6 spells. Try to remove another spell for add this one.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.