[Tutorial] -Switch (DOTA)
4 participantes
TeaM KingS :: Games: :: Warcraft: World Editor :: Tutoriais: Gui, Jass, Spells, Terrain, Modelagem, Textura :: Triggers(GUI)
Página 1 de 1
[Tutorial] -Switch (DOTA)
Tutorial
Bom, pra começarmos, precisaremos de criar as variaveis (variable):
Name: Circles
Type: Unit Array (1)
(Clique na imagem para amplia-la)
Name: Hardened_Skin_Group
Type: Unit Group
(Clique na imagem para amplia-la)
Name: Multiboard
Type: Multiboard
(Clique na imagem para amplia-la)
Name: Player_Color
Type: Player_Color
(Clique na imagem para amplia-la)
Name: Player_Colored_Names
Type: String
(Clique na imagem para amplia-la)
Name: Player_Deaths
Type: Integer Array (1)
(Clique na imagem para amplia-la)
Name: Player_Kills
Type: Integer Array (1)
(Clique na imagem para amplia-la)
Name: Player_Row
Type: Integer Array (1)
(Clique na imagem para amplia-la)
Name: Switch_On
Type: Boolean
(Clique na Imagem para amplia-la)
Name: Switch_Time
Type: Timer
(Clique na imagem para amplia-la)
Name: Switch_Vote
Type: Boolean Array (1)
(Clique na imagem para amplia-la)
Name: Switch_Votes
Type: Integer
(Clique na imagem para amplia-la)
Name: Switched
Type: Integer
(Clique na imagem para amplia-la)
Name: Switched_Multiboard
Type: Integer
(Clique na imagem para amplia-la)
Name: Switched_Point
Type: Point
(Clique na imagem para amplia-la)
Name: Switcher
Type: Player
(Clique na imagem para amplia-la)
Name: Switcher_Multiboard
Type: Integer
(Clique na imagem para amplia-la)
Name: Switcher_Number
Type: Integer
(Clique na imagem para amplia-la)
Name: Switcher_Point
Type: Point
(Clique na imagem para amplia-la)
E ficará assim as variaveis:
Bom.. é isso tudo ae de Variavel.. (Infelizmente xD)
Bom, pra começarmos, precisaremos de criar as variaveis (variable):
Name: Circles
Type: Unit Array (1)
(Clique na imagem para amplia-la)
Name: Hardened_Skin_Group
Type: Unit Group
(Clique na imagem para amplia-la)
Name: Multiboard
Type: Multiboard
(Clique na imagem para amplia-la)
Name: Player_Color
Type: Player_Color
(Clique na imagem para amplia-la)
Name: Player_Colored_Names
Type: String
(Clique na imagem para amplia-la)
Name: Player_Deaths
Type: Integer Array (1)
(Clique na imagem para amplia-la)
Name: Player_Kills
Type: Integer Array (1)
(Clique na imagem para amplia-la)
Name: Player_Row
Type: Integer Array (1)
(Clique na imagem para amplia-la)
Name: Switch_On
Type: Boolean
(Clique na Imagem para amplia-la)
Name: Switch_Time
Type: Timer
(Clique na imagem para amplia-la)
Name: Switch_Vote
Type: Boolean Array (1)
(Clique na imagem para amplia-la)
Name: Switch_Votes
Type: Integer
(Clique na imagem para amplia-la)
Name: Switched
Type: Integer
(Clique na imagem para amplia-la)
Name: Switched_Multiboard
Type: Integer
(Clique na imagem para amplia-la)
Name: Switched_Point
Type: Point
(Clique na imagem para amplia-la)
Name: Switcher
Type: Player
(Clique na imagem para amplia-la)
Name: Switcher_Multiboard
Type: Integer
(Clique na imagem para amplia-la)
Name: Switcher_Number
Type: Integer
(Clique na imagem para amplia-la)
Name: Switcher_Point
Type: Point
(Clique na imagem para amplia-la)
E ficará assim as variaveis:
Bom.. é isso tudo ae de Variavel.. (Infelizmente xD)
Staar.- Número de Posts : 408
Data de inscrição : 24/07/2010
Reputação : 14 Pontos : 26918
Re: [Tutorial] -Switch (DOTA)
E finalmente vou encinar a fazer ...
Crie uma categoria chamada:
E dentro dela você cria o comando para ver com quem você pode mudar do outro time, que saiu do jogo.
http://uploaddeimagens.com.br/imagem/index/45Encinando.png
Crie outra categoria chamada:
E dentro dela você cria o comando para mudar de lugar com algum player de outro time.
http://uploaddeimagens.com.br/imagem/index/94Encinando.png
Crie outra categoria chamada:
E ela irá fazer que os jogadores escolhão que o player vá em troca do outro que kitou.
http://uploaddeimagens.com.br/imagem/index/23Encinando.png
Crie outra categoria chamada:
E ela irá fazer com que não deixe o player dar switch com o jogar que kitou. (OBS: APENAS 1 VOTO "-no" O SWITCH É CANCELADO)
http://uploaddeimagens.com.br/imagem/index/39Encinando.png
Crie outra categoria chamada:
E a trigger dessa categoria fará a ação. (AGORA É O BIXO, NÃO VAI TER FOTOS, PQ É ENORME DE GRANDE A TRIGGER) (CLIQUE NO "SPOILER" PARA VER A TRIGGER)
Crie + 1 categoria chamada:
E essa irá fazer o tempo que tem para o "-switch" ser cancelado.
http://uploaddeimagens.com.br/imagem/index/35Encinando.png
E ai termina o System -switch ..
Agora eu faço 1 perguntinha, por acaso, você irá fazer 1 treco deste tamanho?
Não né? xD
Tá ae o mapa demo!
CRÉDITOS A: Tiche3 & Hordeon
Mapa DEMO DOWNLOADS: http://epicwar.com/maps/148147/
(Se tiver bugs.. O problema não é meu.. eu peguei do mapa dos caras assim..)
Crie uma categoria chamada:
E dentro dela você cria o comando para ver com quem você pode mudar do outro time, que saiu do jogo.
http://uploaddeimagens.com.br/imagem/index/45Encinando.png
Crie outra categoria chamada:
E dentro dela você cria o comando para mudar de lugar com algum player de outro time.
http://uploaddeimagens.com.br/imagem/index/94Encinando.png
Crie outra categoria chamada:
E ela irá fazer que os jogadores escolhão que o player vá em troca do outro que kitou.
http://uploaddeimagens.com.br/imagem/index/23Encinando.png
Crie outra categoria chamada:
E ela irá fazer com que não deixe o player dar switch com o jogar que kitou. (OBS: APENAS 1 VOTO "-no" O SWITCH É CANCELADO)
http://uploaddeimagens.com.br/imagem/index/39Encinando.png
Crie outra categoria chamada:
E a trigger dessa categoria fará a ação. (AGORA É O BIXO, NÃO VAI TER FOTOS, PQ É ENORME DE GRANDE A TRIGGER) (CLIQUE NO "SPOILER" PARA VER A TRIGGER)
- Spoiler:
- Switch Action
Events
Conditions
Switch_On Equal to True
Actions
-------- Writes that the switch succeeded --------
Game - Display to (All players) the text: The Switch was comp...
-------- Change colors, to make it normal for other players (color var is set in other trigger) --------
Player - Change color of Switcher[Switcher_Number] to Player_Color[Switched], Changing color of existing units
Player - Change color of (Player(Switched)) to Player_Color[Switcher_Number], Changing color of existing units
-------- Sets a unit group to prevent leaks, owned by the dude who started the vote --------
Set Hardened_Skin_Group = (Units in (Playable map area) owned by Switcher[Switcher_Number])
-------- The stuff is done (numbers) to prevent misintegering, found it
because Maker said something about the lines was wrong, so --------
Set Switcher_Multiboard = Player_Row[Switcher_Number]
Set Switched_Multiboard = Player_Row[Switched]
Set Player_Row[Switcher_Number] = Switched_Multiboard
Set Player_Row[Switched] = Switcher_Multiboard
-------- Player Row is integer, so you can use it in other triggers
with multiboard. Here we change kills, deaths, names, etc --------
Multiboard - Set the text for Multiboard item in column 2, row
Player_Row[Switcher_Number] to (String(Player_Kills[Switcher_Number]))
Multiboard - Set the text for Multiboard item in column 2, row Player_Row[Switched] to (String(Player_Kills[Switched]))
Multiboard - Set the text for Multiboard item in column 3, row
Player_Row[Switcher_Number] to (String(Player_Deaths[Switcher_Number]))
Multiboard - Set the text for Multiboard item in column 3, row Player_Row[Switched] to (String(Player_Deaths[Switched]))
Multiboard - Set the text for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
Player_Colored_Names[(Player number of Switcher[Switcher_Number])]
Multiboard - Set the text for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
Player_Colored_Names[(Player number of (Player(Switched)))]
-------- Here, we change ally/enemies/etc. It was hard, it took me like a week to figure out.... --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Switcher[Switcher_Number] is an ally of Player 1 (Red)) Equal to True
Then - Actions
Player Group - Make (All allies of Player 1 (Red)) treat (Player group(Switcher[Switcher_Number])) as an Enemy
Player Group - Make (Player group(Player 1 (Red))) treat (Player group(Switcher[Switcher_Number])) as an Enemy
Player Group - Make (Player group(Switcher[Switcher_Number])) treat (Player group(Player 1 (Red))) as an Enemy
Player Group - Make (Player group(Switcher[Switcher_Number])) treat (All allies of Player 1 (Red)) as an Enemy
Player Group - Make (All allies of Player 1 (Red)) treat (Player
group((Player(Switched)))) as an Ally with shared vision
Player Group - Make (Player group((Player(Switched)))) treat (All
allies of Player 1 (Red)) as an Ally with shared vision
Player Group - Make (Player group(Player 1 (Red))) treat (Player
group((Player(Switched)))) as an Ally with shared vision
Player Group - Make (Player group((Player(Switched)))) treat (Player
group(Player 1 (Red))) as an Ally with shared vision
Player Group - Make (Player group(Switcher[Switcher_Number])) treat (All
allies of Player 12 (Brown)) as an Ally with shared vision
Player Group - Make (All allies of Player 12 (Brown)) treat (Player
group(Switcher[Switcher_Number])) as an Ally with shared vision
Player Group - Make (Player group(Switcher[Switcher_Number])) treat
(Player group(Player 12 (Brown))) as an Ally with shared vision
Player Group - Make (Player group(Player 12 (Brown))) treat (Player
group(Switcher[Switcher_Number])) as an Ally with shared vision
Player Group - Make (All allies of Player 12 (Brown)) treat (Player group((Player(Switched)))) as an Enemy
Player Group - Make (Player group(Player 12 (Brown))) treat (Player group((Player(Switched)))) as an Enemy
Player Group - Make (Player group((Player(Switched)))) treat (Player group(Player 12 (Brown))) as an Enemy
Player Group - Make (Player group((Player(Switched)))) treat (All allies of Player 12 (Brown)) as an Enemy
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Switcher[Switcher_Number] is an ally of Player 12 (Brown)) Equal to True
Then - Actions
Player Group - Make (All allies of Player 1 (Red)) treat (Player
group(Switcher[Switcher_Number])) as an Ally with shared vision
Player Group - Make (Player group(Switcher[Switcher_Number])) treat
(All allies of Player 1 (Red)) as an Ally with shared vision
Player Group - Make (Player group(Player 1 (Red))) treat (Player
group(Switcher[Switcher_Number])) as an Ally with shared vision
Player Group - Make (Player group(Switcher[Switcher_Number])) treat
(Player group(Player 1 (Red))) as an Ally with shared vision
Player Group - Make (All allies of Player 1 (Red)) treat (Player group((Player(Switched)))) as an Enemy
Player Group - Make (Player group((Player(Switched)))) treat (All allies of Player 1 (Red)) as an Enemy
Player Group - Make (Player group(Player 1 (Red))) treat (Player group((Player(Switched)))) as an Enemy
Player Group - Make (Player group((Player(Switched)))) treat (Player group(Player 1 (Red))) as an Enemy
Player Group - Make (Player group(Switcher[Switcher_Number])) treat
(All allies of Player 12 (Brown)) as an Enemy
Player Group - Make (All allies of Player 12 (Brown)) treat (Player
group(Switcher[Switcher_Number])) as an Enemy
Player Group - Make (Player group(Switcher[Switcher_Number])) treat
(Player group(Player 12 (Brown))) as an Enemy
Player Group - Make (Player group(Player 12 (Brown))) treat (Player
group(Switcher[Switcher_Number])) as an Enemy
Player Group - Make (All allies of Player 12 (Brown)) treat (Player
group((Player(Switched)))) as an Ally with shared vision
Player Group - Make (Player group(Player 12 (Brown))) treat (Player
group((Player(Switched)))) as an Ally with shared vision
Player Group - Make (Player group((Player(Switched)))) treat (Player
group(Player 12 (Brown))) as an Ally with shared vision
Player Group - Make (Player group((Player(Switched)))) treat (All
allies of Player 12 (Brown)) as an Ally with shared vision
Else - Actions
-------- Here we set Position of revive circles, to change places --------
Set Switcher_Point = (Position of Circles[Switcher_Number])
Set Switched_Point = (Position of Circles[Switched])
-------- We change places --------
Unit - Move Circles[Switcher_Number] instantly to Switched_Point
Unit - Move Circles[Switched] instantly to Switcher_Point
-------- Moves all units, except non hero (circles, etc) to base --------
Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to Switched_Point
Camera - Pan camera for Switcher[Switcher_Number] to Switched_Point over 0.00 seconds
Else - Actions
-------- Icons of heroes in the multiboard... --------
Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNHeroAvatarOfFlame.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNSeaElemental.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNSkeletonArcher.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNTornado.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNAncientOfWonders.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNHeroDemonHunter.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNNecromancer.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNUnbroken.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNWendigo.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNAcolyte.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNHuntress.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNChaosWolfRider.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNArchimonde.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNCorruptedAncientOfWar.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNGhoul.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNMountainGiant.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNJunkGolem.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNBansheeRanger.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNGrizzlyBear.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNJaina.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNShandris.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNGnollArcher.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of Switcher[Switcher_Number])] to
ReplaceableTextures\CommandButtons\BTNMortarTeam.blp
Else - Actions
Else - Actions
-------- Leak prevention, cause we will use this variable later: ) --------
Custom script: call DestroyGroup(udg_Hardened_Skin_Group)
-------- Here we use it : ), we pick units owned by targeted player --------
Set Hardened_Skin_Group = (Units in (Playable map area) owned by (Player(Switched)))
-------- Move the units to the base... --------
Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to Switcher_Point
Camera - Pan camera for (Player(Switched)) to Switcher_Point over 0.00 seconds
Else - Actions
-------- Second player's multiboard icons of heroes... --------
Unit Group - Pick every unit in Hardened_Skin_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNHeroAvatarOfFlame.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNSeaElemental.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNSkeletonArcher.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNTornado.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNAncientOfWonders.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNHeroDemonHunter.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNNecromancer.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNUnbroken.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNWendigo.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNAcolyte.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNHuntress.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNChaosWolfRider.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNArchimonde.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNCorruptedAncientOfWar.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNGhoul.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNMountainGiant.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNJunkGolem.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNBansheeRanger.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNGrizzlyBear.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNJaina.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNShandris.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNGnollArcher.blp
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to
Then - Actions
Multiboard - Set the icon for Multiboard item in column 1, row
Player_Row[(Player number of (Player(Switched)))] to
ReplaceableTextures\CommandButtons\BTNMortarTeam.blp
Else - Actions
Else - Actions
-------- Leak prevention... --------
Custom script: call DestroyGroup(udg_Hardened_Skin_Group)
-------- Set stuff to null, false etc, for further use --------
Set Switch_On = False
Set Switcher_Number = 0
Set Switch_Votes = 0
Set Switched = 0
-------- Leaks --------
Custom script: call RemoveLocation(udg_Switcher_Point)
Custom script: call RemoveLocation(udg_Switched_Point)
For each (Integer A) from 2 to 11, do (Actions)
Loop - Actions
Set Switch_Vote[(Integer A)] = False
-------- For further use! --------
Trigger - Turn off (This trigger)
Crie + 1 categoria chamada:
E essa irá fazer o tempo que tem para o "-switch" ser cancelado.
http://uploaddeimagens.com.br/imagem/index/35Encinando.png
E ai termina o System -switch ..
Agora eu faço 1 perguntinha, por acaso, você irá fazer 1 treco deste tamanho?
Não né? xD
Tá ae o mapa demo!
CRÉDITOS A: Tiche3 & Hordeon
Mapa DEMO DOWNLOADS: http://epicwar.com/maps/148147/
(Se tiver bugs.. O problema não é meu.. eu peguei do mapa dos caras assim..)
Staar.- Número de Posts : 408
Data de inscrição : 24/07/2010
Reputação : 14 Pontos : 26918
Staar.- Número de Posts : 408
Data de inscrição : 24/07/2010
Reputação : 14 Pontos : 26918
Re: [Tutorial] -Switch (DOTA)
n precisava ter feito 2 post star.. era só editar o primeiro.. mas ficou bom!
.Itap- Número de Posts : 1351
Data de inscrição : 09/11/2009
Reputação : 78 Pontos : 29229
Re: [Tutorial] -Switch (DOTA)
Bato palmas!
xD
xD
Raziel_br- Número de Posts : 3346
Data de inscrição : 22/10/2008
Reputação : 53 Pontos : 32999
Tópicos semelhantes
» [Tutorial] Sistema de Deny (DOTA)
» [Tutorial] - DotA 2 No Steam!
» [Tutorial] Systema de Deny (DOTA)
» [Tutorial]Pacote de Spells do Dota
» [Tutorial]Como fazer a skill Essence Shift do slark de dota
» [Tutorial] - DotA 2 No Steam!
» [Tutorial] Systema de Deny (DOTA)
» [Tutorial]Pacote de Spells do Dota
» [Tutorial]Como fazer a skill Essence Shift do slark de dota
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