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!




Participe do fórum, é rápido e fácil

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!


TeaM KingS
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Como mostrar quanto de dano um personagem tira do outro?

2 participantes

Ir para baixo

Como mostrar quanto de dano um personagem tira do outro? Empty Como mostrar quanto de dano um personagem tira do outro?

Mensagem por Vicent 2011-03-11, 22:01

Olá galera estou pensando em criar um mapa e queria saber como faz pra que o dano que um hero ou unit tira do outro , tipow quando o ataque critico é ativado nao mostra? queria fazer isso com o ataque normal e queria saber se tem como fazer com magia tbm ...

Agradeço desde jah
Vicent
Vicent

Número de Posts : 10
Data de inscrição : 19/02/2011
Reputação : 1 Pontos : 24180

Warning Necropost
Como mostrar quanto de dano um personagem tira do outro? Left_bar_bleue0 / 1000 / 100Como mostrar quanto de dano um personagem tira do outro? Right_bar_bleue


Ir para o topo Ir para baixo

Como mostrar quanto de dano um personagem tira do outro? Empty Re: Como mostrar quanto de dano um personagem tira do outro?

Mensagem por TroiA 2011-03-12, 00:02

Isso é moh fácil, leia as triggers em baixo.

- Triggers:

Código:
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(InCombat_Unit[InCombat_Index[2]] is in InCombat) Equal to True
Then - Actions
For each (Integer InCombat_Index[3]) from 1 to InCombat_Index[2], do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
InCombat_Unit[InCombat_Index[3]] Equal to InCombat_Unit[InCombat_Index[2]]
Then - Actions
Set InCombat_Time[InCombat_Index[3]] = Combat_Option1
Else - Actions
Set InCombat_Index[2] = (InCombat_Index[2] - 1)
Else - Actions
Unit Group - Add InCombat_Unit[InCombat_Index[2]] to InCombat
Floating Text - Create floating text that reads Entering Combat at (Position of InCombat_Unit[InCombat_Index[2]]) with Z offset 0.00, using font size 9.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
InCombat_Index[2] Equal to 2
Then - Actions
Trigger - Turn on Combat Check <gen>
____________

Código:
Time - Every 1.00 seconds of game time
Conditions
Actions
For each (Integer InCombat_Index[1]) from 1 to InCombat_Index[2], do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(InCombat_Unit[InCombat_Index[1]] is in InCombat) Equal to True
InCombat_Time[InCombat_Index[1]] Greater than 0
(InCombat_Unit[InCombat_Index[1]] is alive) Equal to True
Then - Actions
Set InCombat_Time[InCombat_Index[1]] = (InCombat_Time[InCombat_Index[1]] - 1)
Else - Actions
Floating Text - Create floating text that reads Leaving Combat at (Position of InCombat_Unit[InCombat_Index[1]]) with Z offset 0.00, using font size 9.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Unit Group - Remove InCombat_Unit[InCombat_Index[1]] from InCombat
Set InCombat_Time[InCombat_Index[1]] = InCombat_Time[InCombat_Index[2]]
Set InCombat_Unit[InCombat_Index[1]] = InCombat_Unit[InCombat_Index[2]]
Set InCombat_Index[2] = (InCombat_Index[2] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
InCombat_Index[2] Equal to 0
Then - Actions
Trigger - Turn off (This trigger)


TroiA
TroiA

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

Warning Necropost
Como mostrar quanto de dano um personagem tira do outro? Left_bar_bleue0 / 1000 / 100Como mostrar quanto de dano um personagem tira do outro? Right_bar_bleue


https://teamkings.forumeiros.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos