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
MB.w3x
Variables
Инициализация
Иниц. сражения
Player Colors
MB
List
Killing
Lvl Up MB
HeroAbil
Прочеее
AI
Revive
Введите ниже нестандартный код для указанной карты. Этот текст будет включен в код карты после объявления переменных и до кода любого триггера.
Name
Type
is_array
initial_value
AI
unit
Yes
Deaths
integer
Yes
Heroes
unit
Yes
Kills
integer
Yes
List
integer
No
0
Player_Colors
string
Yes
PlayerNames
string
Yes
Random
integer
No
TempInt
integer
No
Инициализация стандартного режима сражения для всех игроков
Иниц. сражения
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Set Variable Set List = "1"
Trigger - Run Player_Colors <gen> (ignoring conditions)
For each (Integer A) from 1 to 8 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Variable Set List = (List + 1)
-------- это можно удалить,,, создание AI светлячков --------
Unit - Create 1 . Wisp for (Player((Integer A))) at (Center of _______________001 <gen>) facing Default building facing degrees
Set Variable Set AI[(Integer A)] = (Last created unit)
Else - Actions
Player Colors
Events
Conditions
Actions
Set Variable Set Player_Colors[1] = "|c00ff0303"
Set Variable Set Player_Colors[2] = "|c000042ff"
Set Variable Set Player_Colors[3] = "|c001ce6b9"
Set Variable Set Player_Colors[4] = "|c00540081"
Set Variable Set Player_Colors[5] = "|c00ff8000"
Set Variable Set Player_Colors[6] = "|c0020c000"
Set Variable Set Player_Colors[7] = "|c00e55bb0"
Set Variable Set Player_Colors[8] = "|c00959697"
For each (Integer A) from 1 to 10 , do (Actions)
Loop - Actions
Set Variable Set PlayerNames[(Integer A)] = ((Player_Colors[(Integer A)] + (Name of (Player((Integer A))))) + |r)
MB
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Multiboard - Create a multiboard with 4 columns and List rows, titled Multiboard .
Multiboard - Set the text for (Last created multiboard) item in column 1 , row 1 to Имя игрока
Multiboard - Set the text for (Last created multiboard) item in column 2 , row 1 to |cFFBFBFBFL|r
Multiboard - Set the text for (Last created multiboard) item in column 3 , row 1 to |c0003C1CFK|r
Multiboard - Set the text for (Last created multiboard) item in column 4 , row 1 to |c0000FF00D|r
Multiboard - Set the display style for (Last created multiboard) item in column 1 , row 1 to Show text and Hide icons
For each (Integer A) from 1 to 8 , do (Actions)
Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column 2 , row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3 , row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 4 , row (Integer A) to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column 1 , row (Integer A) to 8.00 % of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2 , row (Integer A) to 3.75 % of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3 , row (Integer A) to 2.75 % of the total screen width
Set Variable Set List = "1"
For each (Integer A) from 1 to 8 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Variable Set List = (List + 1)
Multiboard - Set the text for (Last created multiboard) item in column 1 , row List to (Player_Colors[(Player number of (Player((Integer A))))] + (Name of (Player((Integer A)))))
Multiboard - Set the text for (Last created multiboard) item in column 2 , row List to |cFFBFBFBF0|r
Multiboard - Set the text for (Last created multiboard) item in column 3 , row List to |c0003C1CF0|r
Multiboard - Set the text for (Last created multiboard) item in column 4 , row List to |c0000FF000|r
Else - Actions
Multiboard - Show (Last created multiboard)
List
Events
Conditions
Actions
Set Variable Set List = "1"
For each (Integer A) from 1 to TempInt , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Variable Set List = (List + 1)
Else - Actions
Killing
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Not equal to Neutral Hostile
Actions
Set Variable Set TempInt = (Player number of (Owner of (Killing unit)))
Set Variable Set Kills[TempInt] = (Kills[TempInt] + 1)
Trigger - Run List <gen> (ignoring conditions)
Multiboard - Set the text for (Last created multiboard) item in column 3 , row List to (|c0003C1CF + ((String(Kills[TempInt])) + |r))
Set Variable Set TempInt = (Player number of (Owner of (Dying unit)))
Trigger - Run List <gen> (ignoring conditions)
Set Variable Set Deaths[TempInt] = (Deaths[TempInt] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 4 , row List to (|c0000FF00 + ((String(Deaths[TempInt])) + |r))
Lvl Up MB
Events
Unit - A unit Gains a level
Conditions
(Owner of (Leveling Hero)) Not equal to Neutral Hostile
Actions
Set Variable Set TempInt = (Player number of (Owner of (Leveling Hero)))
Trigger - Run List <gen> (ignoring conditions)
Multiboard - Set the text for (Last created multiboard) item in column 2 , row List to (|cFFBFBFBF + (String((Hero level of (Leveling Hero)))))
HeroAbil
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Выбор героя
Actions
Set Variable Set TempInt = (Player number of (Owner of (Triggering unit)))
Trigger - Run List <gen> (ignoring conditions)
-------- Устанавливаем иконки для героев --------
Multiboard - Set the text for (Last created multiboard) item in column 2 , row List to |cFFBFBFBF1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Mountain King
Then - Actions
Multiboard - Set the icon for (Last created multiboard) item in column 1 , row List to ReplaceableTextures\CommandButtons\BTNHeroMountainKing.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Archmage
Then - Actions
Multiboard - Set the icon for (Last created multiboard) item in column 1 , row List to ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Blood Mage
Then - Actions
Multiboard - Set the icon for (Last created multiboard) item in column 1 , row List to ReplaceableTextures\CommandButtons\BTNHeroBloodElfPrince.blp
Else - Actions
-------- Дать героя владельцу --------
Unit - Create 1 . (Unit-type of (Target unit of ability being cast)) for (Owner of (Triggering unit)) at (Center of _______________003 <gen>) facing Default building facing degrees
-------- Убрать светличка --------
Unit - Remove (Triggering unit) from the game
AI
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
For each (Integer A) from 1 to 10 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) controller) Equal to Computer
Then - Actions
Set Variable Set Random = (Random integer number between 0 and 2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Random Equal to 0
Then - Actions
Unit - Order AI[(Integer A)] to Human Mountain King - Storm Bolt . Mountain King 0015 <gen>
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Random Equal to 1
Then - Actions
Unit - Order AI[(Integer A)] to Human Mountain King - Storm Bolt . Archmage 0008 <gen>
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Random Equal to 2
Then - Actions
Unit - Order AI[(Integer A)] to Human Mountain King - Storm Bolt . Blood Mage 0014 <gen>
Else - Actions
Else - Actions
Revive
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Wait 2 seconds
Hero - Instantly revive (Triggering unit) at (Position of (Triggering unit)) , Show revival graphics
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.