TeaM KingS
[center]Ola Convidado, seja bem vindo ao TeaM KingS !

Nós temos tutoriais sobre o WarCraft World Editor: se você tiver alguma duvida pode perguntar que os moderadores ou membros experientes vão lhe ajudar.

Para melhor utilizar nossos recursos é extremamente recomendado que esteja logado em nosso fórum e que leia o nosso regulamento oficial.

Também temos fóruns sobre DotA AllstarS, com guias, estratégias, e muito mais!



[Tutorial] -Switch (DOTA)

Ver o tópico anterior Ver o tópico seguinte Ir em baixo

[Tutorial] -Switch (DOTA)

Mensagem por Staar. em 2010-09-07, 22:46

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)



Staar.

Número de Posts : 408
Data de inscrição : 24/07/2010
Reputação : 14 Pontos : 12413

Warning Necropost
10 / 10010 / 100


http://www.duhdesigner.blogspot.com

Voltar ao Topo Ir em baixo

Re: [Tutorial] -Switch (DOTA)

Mensagem por Staar. em 2010-09-07, 22:46

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)
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..)


Oloko bicho


  • Alguma coisa me diz que alguém vai se lembrar desse forum algum dia e vai vir dar uma olhada nele, assim como eu fiz! 11/24/2016

  • Não esqueci do forum e de ninguem daqui não! <- Isso permanece :D 11/24/2016


Staar.

Número de Posts : 408
Data de inscrição : 24/07/2010
Reputação : 14 Pontos : 12413

Warning Necropost
10 / 10010 / 100


http://www.duhdesigner.blogspot.com

Voltar ao Topo Ir em baixo

Re: [Tutorial] -Switch (DOTA)

Mensagem por TroiA em 2010-09-08, 15:34

O sistema está bem completo mesmo, grande tutorial LooOOooL



TroiA

Número de Posts : 4150
Data de inscrição : 14/09/2008
Reputação : 127 Pontos : 22900

Warning Necropost
0 / 1000 / 100


http://teamkings.forumeiros.com

Voltar ao Topo Ir em baixo

Re: [Tutorial] -Switch (DOTA)

Mensagem por Staar. em 2010-09-08, 19:21

Vlw =p


Oloko bicho


  • Alguma coisa me diz que alguém vai se lembrar desse forum algum dia e vai vir dar uma olhada nele, assim como eu fiz! 11/24/2016

  • Não esqueci do forum e de ninguem daqui não! <- Isso permanece :D 11/24/2016


Staar.

Número de Posts : 408
Data de inscrição : 24/07/2010
Reputação : 14 Pontos : 12413

Warning Necropost
10 / 10010 / 100


http://www.duhdesigner.blogspot.com

Voltar ao Topo Ir em baixo

Re: [Tutorial] -Switch (DOTA)

Mensagem por .Itap em 2010-09-12, 10:28

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 : 14724

Warning Necropost
95 / 10095 / 100


Voltar ao Topo Ir em baixo

Re: [Tutorial] -Switch (DOTA)

Mensagem por Raziel_br em 2010-09-18, 19:22

Bato palmas!
xD

Raziel_br

Número de Posts : 3346
Data de inscrição : 22/10/2008
Reputação : 53 Pontos : 18494

Warning Necropost
0 / 1000 / 100


Voltar ao Topo Ir em baixo

Re: [Tutorial] -Switch (DOTA)

Mensagem por Conteúdo patrocinado Hoje à(s) 02:41


Conteúdo patrocinado


Voltar ao Topo Ir em baixo

Ver o tópico anterior Ver o tópico seguinte Voltar ao Topo


 
Permissão deste fórum:
Você não pode responder aos tópicos neste fórum