[TUTORIAL] Multiboard e -Kills XXX
5 participantes
TeaM KingS :: Games: :: Warcraft: World Editor :: Tutoriais: Gui, Jass, Spells, Terrain, Modelagem, Textura :: Triggers(GUI)
Página 1 de 1
[TUTORIAL] Multiboard e -Kills XXX
Olá pessoal!
Estou trazendo-lhes mais um ótimo tutorial , que concerteza ajudará muitos de vocês! é um sistema de Mortes X
ou melhor dizendo -kills (Número de Kills para ganhar a partida por um determinado time) , que aliás é um sistema muito
utilizado por editores de mapas do estilo Arena.
O Sistema consiste em utilizar algumas variavéis , porém é bem simples de importar , utilizar e até mesmo entender!
TRIGGERS :
TRIGGER NÚMERO 1 : MULTIBOARD
EVENTS = Time - Elapsed game time is 1.00 seconds
CONDITIONS =
ACTIONS = Actions
Multiboard - Create a multiboard with 3 columns and 1 rows, titled Arena da Floresta E...
Set Multiboard = (Last created multiboard)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in TimeA) Greater than 0
Then - Actions
Set i = (i + 1)
Set RowA = i
Multiboard - Set the text for Multiboard item in column 1, row RowA to |c00ff0303Time Verm...
Multiboard - Set the icon for Multiboard item in column 2, row RowA to ReplaceableTextures\CommandButtons\BTNSteelMelee.blp
Multiboard - Set the icon for Multiboard item in column 3, row RowA to ReplaceableTextures\CommandButtons\BTNAnimateDead.blp
Player Group - Pick every player in TimeA and do (Actions)
Loop - Actions
Set i = (i + 1)
Set PlayerIndex[(Player number of (Picked player))] = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row i to (Name of (Picked player))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in TimeB) Greater than 0
Then - Actions
Set i = (i + 1)
Set RowB = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row RowB to |c000000ffTime Azul...
Multiboard - Set the icon for Multiboard item in column 2, row RowB to ReplaceableTextures\CommandButtons\BTNSteelMelee.blp
Multiboard - Set the icon for Multiboard item in column 3, row RowB to ReplaceableTextures\CommandButtons\BTNAnimateDead.blp
Player Group - Pick every player in TimeB and do (Actions)
Loop - Actions
Set i = (i + 1)
Set PlayerIndex[(Player number of (Picked player))] = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row i to (Name of (Picked player))
Else - Actions
Set i = (i + 1)
Set RowK = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row i to (Matem + ((String(k)) + para vencer!))
-------- --------
Multiboard - Set the width for Multiboard item in column 0, row 0 to 3.20% of the total screen width
Multiboard - Set the width for Multiboard item in column 1, row 0 to 10.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 0, row RowK to 0.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 1, row RowK to 16.40% of the total screen width
-------- --------
Multiboard - Set the text for Multiboard item in column 2, row 0 to 0
Multiboard - Set the text for Multiboard item in column 3, row 0 to 0
-------- --------
Multiboard - Set the display style for Multiboard item in column 0, row 0 to Show text and Hide icons
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RowA Not equal to 0
Then - Actions
Multiboard - Set the display style for Multiboard item in column 2, row RowA to Show text and Show icons
Multiboard - Set the display style for Multiboard item in column 3, row RowA to Show text and Show icons
Multiboard - Set the color for Multiboard item in column 0, row RowA to (100.00%, 80.00%, 20.00%) with 0.00% transparency
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RowB Not equal to 0
Then - Actions
Multiboard - Set the display style for Multiboard item in column 2, row RowB to Show text and Show icons
Multiboard - Set the display style for Multiboard item in column 3, row RowB to Show text and Show icons
Multiboard - Set the color for Multiboard item in column 0, row RowB to (100.00%, 80.00%, 20.00%) with 0.00% transparency
Else - Actions
-------- --------
Multiboard - Set the color for Multiboard item in column 0, row RowK to (100.00%, 100.00%, 0.00%) with 0.00% transparency
-------- --------
Multiboard - Minimize Multiboard
Multiboard - Maximize Multiboard
TRIGGER NÚMERO 2 : PLAYERS GROUPS BR
EVENTS = Map initialization
CONDITIONS =
ACTIONS = Actions
Set k = 1
For each (Integer A) from 1 to 5, 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
Player Group - Add (Player((Integer A))) to TimeA
Else - Actions
For each (Integer A) from 6 to 10, 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
Player Group - Add (Player((Integer A))) to TimeB
Else - Actions
TRIGGER NÚMERO 3 : KILLS
EVENTS = Player - Player 1 (Red) types a chat message containing -kills as A substring
CONDITIONS =
ACTIONS = Actions
Set k = (Integer((Substring((Entered chat string), 8, 3))))
Trigger - Turn off (This trigger)
Game - Display to (All players) the text: (|cffffcc00Kills :|c008080FF + (String(k)))
Multiboard - Set the text for Multiboard item in column 1, row RowK to (Matem + ((String(k)) + para vencer!))
TRIGGER NÚMERO 4 = KILLS 2
EVENTS = Unit - A unit Dies
CONDITIONS = ((Triggering unit) is A Hero) Equal to True
ACTIONS = Actions
Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Set Deaths[(Player number of (Owner of (Triggering unit)))] = (Deaths[(Player number of (Owner of (Triggering unit)))] + 1)
Multiboard - Set the text for Multiboard item in column 2, row PlayerIndex[(Player number of (Owner of (Killing unit)))] to (String(Kills[(Player number of (Owner of (Killing unit)))]))
Multiboard - Set the text for Multiboard item in column 3, row PlayerIndex[(Player number of (Owner of (Triggering unit)))] to (String(Deaths[(Player number of (Owner of (Triggering unit)))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) is in TimeA) Equal to True
Then - Actions
Set KillsA = (KillsA + 1)
Set DeathsB = (DeathsB + 1)
Multiboard - Set the text for Multiboard item in column 2, row RowA to (String(KillsA))
Multiboard - Set the text for Multiboard item in column 3, row RowB to (String(DeathsB))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) is in TimeB) Equal to True
Then - Actions
Set KillsB = (KillsB + 1)
Set DeathsA = (DeathsA + 1)
Multiboard - Set the text for Multiboard item in column 2, row RowB to (String(KillsB))
Multiboard - Set the text for Multiboard item in column 3, row RowA to (String(DeathsA))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
KillsA Greater than or equal to k
Then - Actions
Player Group - Pick every player in TimeA and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
KillsB Greater than or equal to k
Then - Actions
Player Group - Pick every player in TimeB and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
Qualquer dúvida peço-lhes que perguntem e qualquer crítica é bem recebida
Espero ajudar muitos de vocês!
Link do MAPA DEMO : http://www.4shared.com/file/7w8BKPVl/Sistema_Kills_X_e_Multiboard.html?
Gostaria de pedir para quem usufruir deste benefício dê os devidos créditos
e +rep! Obrigado , Atenciosamente .Itap!
Estou trazendo-lhes mais um ótimo tutorial , que concerteza ajudará muitos de vocês! é um sistema de Mortes X
ou melhor dizendo -kills (Número de Kills para ganhar a partida por um determinado time) , que aliás é um sistema muito
utilizado por editores de mapas do estilo Arena.
O Sistema consiste em utilizar algumas variavéis , porém é bem simples de importar , utilizar e até mesmo entender!
TRIGGERS :
TRIGGER NÚMERO 1 : MULTIBOARD
EVENTS = Time - Elapsed game time is 1.00 seconds
CONDITIONS =
ACTIONS = Actions
Multiboard - Create a multiboard with 3 columns and 1 rows, titled Arena da Floresta E...
Set Multiboard = (Last created multiboard)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in TimeA) Greater than 0
Then - Actions
Set i = (i + 1)
Set RowA = i
Multiboard - Set the text for Multiboard item in column 1, row RowA to |c00ff0303Time Verm...
Multiboard - Set the icon for Multiboard item in column 2, row RowA to ReplaceableTextures\CommandButtons\BTNSteelMelee.blp
Multiboard - Set the icon for Multiboard item in column 3, row RowA to ReplaceableTextures\CommandButtons\BTNAnimateDead.blp
Player Group - Pick every player in TimeA and do (Actions)
Loop - Actions
Set i = (i + 1)
Set PlayerIndex[(Player number of (Picked player))] = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row i to (Name of (Picked player))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of players in TimeB) Greater than 0
Then - Actions
Set i = (i + 1)
Set RowB = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row RowB to |c000000ffTime Azul...
Multiboard - Set the icon for Multiboard item in column 2, row RowB to ReplaceableTextures\CommandButtons\BTNSteelMelee.blp
Multiboard - Set the icon for Multiboard item in column 3, row RowB to ReplaceableTextures\CommandButtons\BTNAnimateDead.blp
Player Group - Pick every player in TimeB and do (Actions)
Loop - Actions
Set i = (i + 1)
Set PlayerIndex[(Player number of (Picked player))] = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row i to (Name of (Picked player))
Else - Actions
Set i = (i + 1)
Set RowK = i
Multiboard - Change the number of rows for Multiboard to i
Multiboard - Set the text for Multiboard item in column 1, row i to (Matem + ((String(k)) + para vencer!))
-------- --------
Multiboard - Set the width for Multiboard item in column 0, row 0 to 3.20% of the total screen width
Multiboard - Set the width for Multiboard item in column 1, row 0 to 10.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 0, row RowK to 0.00% of the total screen width
Multiboard - Set the width for Multiboard item in column 1, row RowK to 16.40% of the total screen width
-------- --------
Multiboard - Set the text for Multiboard item in column 2, row 0 to 0
Multiboard - Set the text for Multiboard item in column 3, row 0 to 0
-------- --------
Multiboard - Set the display style for Multiboard item in column 0, row 0 to Show text and Hide icons
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RowA Not equal to 0
Then - Actions
Multiboard - Set the display style for Multiboard item in column 2, row RowA to Show text and Show icons
Multiboard - Set the display style for Multiboard item in column 3, row RowA to Show text and Show icons
Multiboard - Set the color for Multiboard item in column 0, row RowA to (100.00%, 80.00%, 20.00%) with 0.00% transparency
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RowB Not equal to 0
Then - Actions
Multiboard - Set the display style for Multiboard item in column 2, row RowB to Show text and Show icons
Multiboard - Set the display style for Multiboard item in column 3, row RowB to Show text and Show icons
Multiboard - Set the color for Multiboard item in column 0, row RowB to (100.00%, 80.00%, 20.00%) with 0.00% transparency
Else - Actions
-------- --------
Multiboard - Set the color for Multiboard item in column 0, row RowK to (100.00%, 100.00%, 0.00%) with 0.00% transparency
-------- --------
Multiboard - Minimize Multiboard
Multiboard - Maximize Multiboard
TRIGGER NÚMERO 2 : PLAYERS GROUPS BR
EVENTS = Map initialization
CONDITIONS =
ACTIONS = Actions
Set k = 1
For each (Integer A) from 1 to 5, 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
Player Group - Add (Player((Integer A))) to TimeA
Else - Actions
For each (Integer A) from 6 to 10, 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
Player Group - Add (Player((Integer A))) to TimeB
Else - Actions
TRIGGER NÚMERO 3 : KILLS
EVENTS = Player - Player 1 (Red) types a chat message containing -kills as A substring
CONDITIONS =
ACTIONS = Actions
Set k = (Integer((Substring((Entered chat string), 8, 3))))
Trigger - Turn off (This trigger)
Game - Display to (All players) the text: (|cffffcc00Kills :|c008080FF + (String(k)))
Multiboard - Set the text for Multiboard item in column 1, row RowK to (Matem + ((String(k)) + para vencer!))
TRIGGER NÚMERO 4 = KILLS 2
EVENTS = Unit - A unit Dies
CONDITIONS = ((Triggering unit) is A Hero) Equal to True
ACTIONS = Actions
Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Set Deaths[(Player number of (Owner of (Triggering unit)))] = (Deaths[(Player number of (Owner of (Triggering unit)))] + 1)
Multiboard - Set the text for Multiboard item in column 2, row PlayerIndex[(Player number of (Owner of (Killing unit)))] to (String(Kills[(Player number of (Owner of (Killing unit)))]))
Multiboard - Set the text for Multiboard item in column 3, row PlayerIndex[(Player number of (Owner of (Triggering unit)))] to (String(Deaths[(Player number of (Owner of (Triggering unit)))]))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) is in TimeA) Equal to True
Then - Actions
Set KillsA = (KillsA + 1)
Set DeathsB = (DeathsB + 1)
Multiboard - Set the text for Multiboard item in column 2, row RowA to (String(KillsA))
Multiboard - Set the text for Multiboard item in column 3, row RowB to (String(DeathsB))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Killing unit)) is in TimeB) Equal to True
Then - Actions
Set KillsB = (KillsB + 1)
Set DeathsA = (DeathsA + 1)
Multiboard - Set the text for Multiboard item in column 2, row RowB to (String(KillsB))
Multiboard - Set the text for Multiboard item in column 3, row RowA to (String(DeathsA))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
KillsA Greater than or equal to k
Then - Actions
Player Group - Pick every player in TimeA and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
KillsB Greater than or equal to k
Then - Actions
Player Group - Pick every player in TimeB and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Else - Actions
Qualquer dúvida peço-lhes que perguntem e qualquer crítica é bem recebida
Espero ajudar muitos de vocês!
Link do MAPA DEMO : http://www.4shared.com/file/7w8BKPVl/Sistema_Kills_X_e_Multiboard.html?
Gostaria de pedir para quem usufruir deste benefício dê os devidos créditos
e +rep! Obrigado , Atenciosamente .Itap!
Última edição por .Itap em 2011-11-06, 14:13, editado 1 vez(es)
.Itap- Número de Posts : 1351
Data de inscrição : 09/11/2009
Reputação : 78 Pontos : 28069
Re: [TUTORIAL] Multiboard e -Kills XXX
vc feis isso tudo sósinho pow muito bem feito levei 20 minutos pra ler e 3 foras pra intender SUhSUhSUha manda um mapa feito pra fikar mais claro
pow cai entre nois vc participo na criaçao do dota all star XD
pow cai entre nois vc participo na criaçao do dota all star XD
Convidad- Convidado
Re: [TUTORIAL] Multiboard e -Kills XXX
ta pagando pau pro cara? o_O' , calma, tem gente mais foda ou igualmente foda a itap aqui no tek, sumio hein itap?
Re: [TUTORIAL] Multiboard e -Kills XXX
@EliseuEmo66
Tem um Mapa DEMO no final do tópico para download :
Link do MAPA DEMO : 4shared.com /file/7w8BKPVl/Sistema_Kills_X_e_Multiboard.html?
@Iky
Hehe , sumi mesmo , tava com saudade neh safadão?
Tem um Mapa DEMO no final do tópico para download :
Link do MAPA DEMO : 4shared.com /file/7w8BKPVl/Sistema_Kills_X_e_Multiboard.html?
@Iky
Hehe , sumi mesmo , tava com saudade neh safadão?
.Itap- Número de Posts : 1351
Data de inscrição : 09/11/2009
Reputação : 78 Pontos : 28069
Re: [TUTORIAL] Multiboard e -Kills XXX
Cara infelizmente não lembro de você na época , mas você parece ser um cara legal
.Itap- Número de Posts : 1351
Data de inscrição : 09/11/2009
Reputação : 78 Pontos : 28069
Re: [TUTORIAL] Multiboard e -Kills XXX
Não foi por mal! você parece ser legal! Abraço , .Itap
.Itap- Número de Posts : 1351
Data de inscrição : 09/11/2009
Reputação : 78 Pontos : 28069
Re: [TUTORIAL] Multiboard e -Kills XXX
.Itap escreveu:Cara infelizmente não lembro de você na época , mas você parece ser um cara legal
KKKKKKKKKKKKKKKKKKKKKK, coitado do iky velho AEPOAKEOPAKEPOAEK.
VicToR- Número de Posts : 2002
Data de inscrição : 19/12/2010
Reputação : 243 Pontos : 26655
miguelbad- Número de Posts : 205
Data de inscrição : 04/07/2011
Reputação : 8 Pontos : 23529
Re: [TUTORIAL] Multiboard e -Kills XXX
puxa,muito legal o tuto véi.não vo usa no meu mapa mas é bom aprender '-'
kratos- Número de Posts : 90
Data de inscrição : 19/03/2011
Reputação : 1 Pontos : 24047
Re: [TUTORIAL] Multiboard e -Kills XXX
ta bugado man se vc matar vc ganha 1 Kill e 1 Dead msm vc nao morrendo
miguelbad- Número de Posts : 205
Data de inscrição : 04/07/2011
Reputação : 8 Pontos : 23529
Re: [TUTORIAL] Multiboard e -Kills XXX
iai pode resolver ?
miguelbad- Número de Posts : 205
Data de inscrição : 04/07/2011
Reputação : 8 Pontos : 23529
Re: [TUTORIAL] Multiboard e -Kills XXX
Posso , mas , pra ir pro pc demora , vou ver aqui.
EDIT---------------
Seguinte , a Multiboard e o sistema funciona perfeitamente , apenas quando é no single player ele faz errado , mas se você quiser testar no single player , coloca um jogador dos números 6 ao 10 como computer e mata um herói pra você ver como funciona.
EDIT---------------
Seguinte , a Multiboard e o sistema funciona perfeitamente , apenas quando é no single player ele faz errado , mas se você quiser testar no single player , coloca um jogador dos números 6 ao 10 como computer e mata um herói pra você ver como funciona.
.Itap- Número de Posts : 1351
Data de inscrição : 09/11/2009
Reputação : 78 Pontos : 28069
Tópicos semelhantes
» [Tutorial] Sistema De Seleção De Kills
» (tutorial) Qual é a diferença de MultiBoard e LeaderBoard?
» *** kills ganha o jogo
» [Duvida] Painel de kills
» First Blood, Double e Triple Kills
» (tutorial) Qual é a diferença de MultiBoard e LeaderBoard?
» *** kills ganha o jogo
» [Duvida] Painel de kills
» First Blood, Double e Triple Kills
TeaM KingS :: Games: :: Warcraft: World Editor :: Tutoriais: Gui, Jass, Spells, Terrain, Modelagem, Textura :: Triggers(GUI)
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos