Sobre Triger replace system
3 participantes
TeaM KingS :: Games: :: Warcraft: World Editor :: :: :: Dúvidas/Problemas Resolvidos
Página 1 de 1
Sobre Triger replace system
Primeira Parte
Unit - A unit Begins casting an ability
Actions
Set Caster = (Casting unit)
Set Abilidades[1] = Guilmon Normal Mode
Set Abilidades[2] = Evolution to Growlmon
Set Abilidades[3] = Evolution to Wargrowlmon
Set Abilidades[4] = Evolution to Gallantmon
Set Digimon[1] = Guilmon
Set Digimon[2] = Growlmon
Set Digimon[3] = Wargrowlmon
Set Digimon[4] = Gallantmon
Set Level = (Hero level of Caster)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Growlmon
Then - Actions
Unit - Replace Caster with a Digimon[2] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Trigger - Add to Growlmon Loop the event (Time - Every 2.00 seconds of game time)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Hero - Learn skill for (Last replaced unit): Guilmon Normal Mode
Wait until (Level Greater than or equal to 25), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Wargrowlmon
Wait until (Level Greater than or equal to 41), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Gallantmon
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Wargrowlmon
Then - Actions
Unit - Replace Caster with a Digimon[3] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Trigger - Turn off Growlmon Loop
Trigger - Add to Wargrowlmon Loop the event (Time - Every 2.00 seconds of game time)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Hero - Learn skill for (Last replaced unit): Guilmon Normal Mode
Wait until (Level Greater than or equal to 41), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Gallantmon
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Gallantmon
Then - Actions
Unit - Replace Caster with a Digimon[4] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Hero - Learn skill for (Last replaced unit): Guilmon Normal Mode
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Add to Gallantmon Loop the event (Time - Every 2.00 seconds of game time)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Guilmon Normal Mode
Then - Actions
Unit - Replace Caster with a Digimon[1] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Game - Display to (All players) the text: ((Name of Caster) + ( Return to + Guilmon Normal Mode))
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Turn off Gallantmon Loop
Wait until (Level Greater than or equal to 11), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Growlmon
Wait until (Level Greater than or equal to 25), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Wargrowlmon
Wait until (Level Greater than or equal to 41), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Gallantmon
Else - Actions
Segunda Parte
Growlmon Loop
Events
Conditions
Actions
Set Caster = (Casting unit)
Set Digimon[1] = Guilmon
Set Digimon[2] = Growlmon
Set Digimon[3] = Wargrowlmon
Set Digimon[4] = Gallantmon
Set Real = ((Mana of (Last replaced unit)) - 25.00)
Unit - Set mana of (Last replaced unit) to Real
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Real Less than or equal to 25.00
Then - Actions
Unit - Replace (Last replaced unit) with a Digimon[1] using The old unit's life and mana
Trigger - Turn off (This trigger)
Else - Actions
*Obss Cada evolucao eu mudei o gasto de mana por segundo por 25 a mais ai quando chegar o valor normal ai volta a 1 forma
O que eu ditei ai foi o seguinte, quero trocar unidades com o comando unit replace, mas quando ponho no modo global com 2 unidades aparece erro para de gastar mana e a last replaced unidade e o bug, queria saber como faz para definir cada uma. A ideia do mapa mapa e do anime Digimon O que achei mas facil foi por skill trcar as unidades ( Suas Evolução ). Mas quando entra mais de uma unidade elas entra em conflito. Por via das duvidas vou postar o mapa que to testando esse mod se alguem ai souber como corrigir esse bug eu agradesço nao e meu mapa oficial esta muito massa mas falta somente esse detalhe ai. Vlw aguardo resposta. Segue o link para baixar o mapa Test: Mapa Test
Unit - A unit Begins casting an ability
Actions
Set Caster = (Casting unit)
Set Abilidades[1] = Guilmon Normal Mode
Set Abilidades[2] = Evolution to Growlmon
Set Abilidades[3] = Evolution to Wargrowlmon
Set Abilidades[4] = Evolution to Gallantmon
Set Digimon[1] = Guilmon
Set Digimon[2] = Growlmon
Set Digimon[3] = Wargrowlmon
Set Digimon[4] = Gallantmon
Set Level = (Hero level of Caster)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Growlmon
Then - Actions
Unit - Replace Caster with a Digimon[2] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Trigger - Add to Growlmon Loop
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Hero - Learn skill for (Last replaced unit): Guilmon Normal Mode
Wait until (Level Greater than or equal to 25), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Wargrowlmon
Wait until (Level Greater than or equal to 41), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Gallantmon
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Wargrowlmon
Then - Actions
Unit - Replace Caster with a Digimon[3] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Trigger - Turn off Growlmon Loop
Trigger - Add to Wargrowlmon Loop
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Hero - Learn skill for (Last replaced unit): Guilmon Normal Mode
Wait until (Level Greater than or equal to 41), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Gallantmon
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Gallantmon
Then - Actions
Unit - Replace Caster with a Digimon[4] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Hero - Learn skill for (Last replaced unit): Guilmon Normal Mode
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Add to Gallantmon Loop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Guilmon Normal Mode
Then - Actions
Unit - Replace Caster with a Digimon[1] using The old unit's relative life and mana
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)%
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)%
Game - Display to (All players) the text: ((Name of Caster) + ( Return to + Guilmon Normal Mode))
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Turn off Gallantmon Loop
Wait until (Level Greater than or equal to 11), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Growlmon
Wait until (Level Greater than or equal to 25), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Wargrowlmon
Wait until (Level Greater than or equal to 41), checking every 0.10 seconds
Hero - Learn skill for (Last replaced unit): Evolution to Gallantmon
Else - Actions
Segunda Parte
Growlmon Loop
Events
Conditions
Actions
Set Caster = (Casting unit)
Set Digimon[1] = Guilmon
Set Digimon[2] = Growlmon
Set Digimon[3] = Wargrowlmon
Set Digimon[4] = Gallantmon
Set Real = ((Mana of (Last replaced unit)) - 25.00)
Unit - Set mana of (Last replaced unit) to Real
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Real Less than or equal to 25.00
Then - Actions
Unit - Replace (Last replaced unit) with a Digimon[1] using The old unit's life and mana
Trigger - Turn off (This trigger)
Else - Actions
*Obss Cada evolucao eu mudei o gasto de mana por segundo por 25 a mais ai quando chegar o valor normal ai volta a 1 forma
O que eu ditei ai foi o seguinte, quero trocar unidades com o comando unit replace, mas quando ponho no modo global com 2 unidades aparece erro para de gastar mana e a last replaced unidade e o bug, queria saber como faz para definir cada uma. A ideia do mapa mapa e do anime Digimon O que achei mas facil foi por skill trcar as unidades ( Suas Evolução ). Mas quando entra mais de uma unidade elas entra em conflito. Por via das duvidas vou postar o mapa que to testando esse mod se alguem ai souber como corrigir esse bug eu agradesço nao e meu mapa oficial esta muito massa mas falta somente esse detalhe ai. Vlw aguardo resposta. Segue o link para baixar o mapa Test: Mapa Test
Última edição por Devinganca em 2014-02-21, 21:22, editado 2 vez(es) (Motivo da edição : Link Errado ,Agora tah certo)
Devinganca- Número de Posts : 37
Data de inscrição : 14/11/2011
Reputação : 9 Pontos : 24273
Re: Sobre Triger replace system
Oi amigo,
Isso tá acontecendo porque o método utilizado pelo senhor não é MUI (Multi-Instanceable), isso significa que seu sistema/magia não pode ser utilizada por mais de uma unidade ao mesmo tempo.
Para esse problema, é recomendado que o senhor veja tutoriais e aprenda a utilizar variáveis locais e arrays, em vez de variáveis globais.
Uma saída paliativa para isso pode ser a utilização de arrays em suas variáveis globais, mais ou menos assim:
Até mais,
Gilgamesh.
--
Isso tá acontecendo porque o método utilizado pelo senhor não é MUI (Multi-Instanceable), isso significa que seu sistema/magia não pode ser utilizada por mais de uma unidade ao mesmo tempo.
Para esse problema, é recomendado que o senhor veja tutoriais e aprenda a utilizar variáveis locais e arrays, em vez de variáveis globais.
Uma saída paliativa para isso pode ser a utilização de arrays em suas variáveis globais, mais ou menos assim:
[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]
Até mais,
Gilgamesh.
--
Re: Sobre Triger replace system
Ola Gigamesh esse mode cast ai funciona o poblema e o replace que troca por outras unidades se puder baixa o mapa que to testando ai pra vc dar uma olhada vou dar mais uma aprendida com tutorial, aprendi mecher com hastable nesse modo funciono vc salva informaçoes e depois da load so se for um mapa com exemplo uns 20 modelos faser triger e hashtable pra cada um e bem chato, vlw pela dica. [Tens de ter uma conta e sessão iniciada para poderes visualizar este link]
Devinganca- Número de Posts : 37
Data de inscrição : 14/11/2011
Reputação : 9 Pontos : 24273
Re: Sobre Triger replace system
Bom, eu testei e não compreendi qual o seu problema. Mas se seu único desejo for fazer uma transformação, porque não utiliza uma spell nativa do Object Editor? Poderia utilizar a Metamorphosis, por exemplo.
Ela transforma a unidade "A" na unidade "B" durante um tempo definido.
[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]
Ela transforma a unidade "A" na unidade "B" durante um tempo definido.
Re: Sobre Triger replace system
Entao mano o poblema e seguinte esse mapa ai e onde tou testando minhas triger antes de mandar pro meu mapa tah ocorrendo o seguinte erro no mapa oficial tem varios modelos lah com as triger que vc viu as unica informaçao q eu mudei foi as unidades que muda mas quando eu coloco otro heroi uso a skill e do replace no A ai B para de gastar mana e quando acaba o heroi B vira o A eu consegui com hastable so q e muita informaçao para faser com todos tipo isso
Guilmon Evo2
Events
Unit - A unit Begins casting an ability
Conditions
Actions
Set Caster = (Casting unit)
Set Abilidades[1] = Veemon Normal Mode
Set Abilidades[2] = Evolution to Veedramon
Set Abilidades[3] = Evolution to Imperialdramon DM
Set Abilidades[4] = Evolution to Imperialdramon FM
Set Digimon[1] = Veemon
Set Digimon[2] = Veedramon
Set Digimon[3] = Imperialdramon DM
Set Digimon[4] = Imperialdramon FM
Set Level = (Hero level of Caster)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Veedramon
Then - Actions
Sound - Play Evolution_01 at 100.00% volume, attached to Caster
Hashtable - Save Handle OfCaster as 5 of 50 in (Last created hashtable) (AQUI EU SALVO O CASTER)
ABAIXO AQUI VAI DAR REPLACE NA UNIDADE QUE CASTOU A HABILIDADES SALVEI 5/50 LOAD 5/50
Unit - Replace (Load 5 of 50 in (Last created hashtable)) with a Digimon[2] using The old unit's relative life and mana
ABAIXO AQUI VAI SALVAR A LAST REPLACED UNIDADE
Hashtable - Save Handle Of(Last replaced unit) as 5 of 50 in (Last created hashtable)
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)% Nao funciono tentei de varios modo
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)% Nao funciono tentei de varios modo
Trigger - Turn on Growlmon Loop2
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Ai eu salvo informaçao e do load testei com ate 3 unidades juntas elas nao dao bug uma em outra aprendi hastable ontem Salvando e dano load nas informação ativei ela assim:
Open
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Mais ou menos isso ai meu conhecimento com WE e ainda 25% falta muito ainda nem sei da stack em item ainda kkkk vlw ai
Guilmon Evo2
Events
Unit - A unit Begins casting an ability
Conditions
Actions
Set Caster = (Casting unit)
Set Abilidades[1] = Veemon Normal Mode
Set Abilidades[2] = Evolution to Veedramon
Set Abilidades[3] = Evolution to Imperialdramon DM
Set Abilidades[4] = Evolution to Imperialdramon FM
Set Digimon[1] = Veemon
Set Digimon[2] = Veedramon
Set Digimon[3] = Imperialdramon DM
Set Digimon[4] = Imperialdramon FM
Set Level = (Hero level of Caster)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evolution to Veedramon
Then - Actions
Sound - Play Evolution_01
Hashtable - Save Handle OfCaster as 5 of 50 in (Last created hashtable) (AQUI EU SALVO O CASTER)
ABAIXO AQUI VAI DAR REPLACE NA UNIDADE QUE CASTOU A HABILIDADES SALVEI 5/50 LOAD 5/50
Unit - Replace (Load 5 of 50 in (Last created hashtable)) with a Digimon[2] using The old unit's relative life and mana
ABAIXO AQUI VAI SALVAR A LAST REPLACED UNIDADE
Hashtable - Save Handle Of(Last replaced unit) as 5 of 50 in (Last created hashtable)
Unit - Set mana of (Last replaced unit) to (Percentage mana of Caster)% Nao funciono tentei de varios modo
Unit - Set life of (Last replaced unit) to (Percentage life of Caster)% Nao funciono tentei de varios modo
Trigger - Turn on Growlmon Loop2
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Ai eu salvo informaçao e do load testei com ate 3 unidades juntas elas nao dao bug uma em outra aprendi hastable ontem Salvando e dano load nas informação ativei ela assim:
Open
Events
Map initialization
Conditions
Actions
Hashtable - Create a hashtable
Mais ou menos isso ai meu conhecimento com WE e ainda 25% falta muito ainda nem sei da stack em item ainda kkkk vlw ai
Devinganca- Número de Posts : 37
Data de inscrição : 14/11/2011
Reputação : 9 Pontos : 24273
Re: Sobre Triger replace system
Como eu disse antes, porque você não utiliza a spell Metamorphosis para criar uma transforação. É bem mais simples e funcional do que faze-lo através de triggers.
Re: Sobre Triger replace system
bom nao sei se voce ainda ta com esta duvida mas talvez o motivo seja por que voce nao setou ela nas condicoes
ou seja qualquer spell castada ocorrerara esse evento.
ou seja qualquer spell castada ocorrerara esse evento.
Joker- Número de Posts : 447
Data de inscrição : 03/08/2012
Reputação : 62 Pontos : 27113
Hastable certo ou errado ?? kkk aqui deu certo salvei valor como 1/50 minha 1 vez usando ele xD
entao joke a spell tah certa por ser uma triger global o comando Last replace se mistura com outras aparencendo unidade que nao era para aparecer, eu consegui com hastable fiquei o dia inteiro para aprender deu certo o custo de mana que gasta no replace para voltar ao modo normal do mapa posso colocar ate 10 modelos todos salvado e dado load exemplo e grande mais vale a pena dar uma olhada na minha logica usei 4 condição para 4 unidades trocadas no comando replace tudo com hashtable, detalhe nao bugo mais gasta muito tempo pra definir cada uma kkkk.
Guilmon Evo
Events
Unit - A unit Begins casting an ability
Conditions
Actions
Set Caster = (Casting unit)
Set Digimon[1] = Guilmon
Set Digimon[2] = Growlmon
Set Digimon[3] = WarGrowlmon
Set Digimon[4] = Gallantmon
Set Temp_point = (Position of Caster)
Set Level = (Level of (Last replaced unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evo Growlmon
Then - Actions
Sound - Play Evolution at 100.00% volume, attached to Caster
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 1 of 50 in (Last created hashtable)
Unit - Replace (Load 1 of 50 in (Last created hashtable)) with a Digimon[2] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 1 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Unit - Set mana of (Load 1 of 50 in (Last created hashtable)) to (Percentage mana of (Load 1 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 1 of 50 in (Last created hashtable)) to (Percentage life of (Load 1 of 50 in (Last created hashtable)))%
Trigger - Turn on Growlmon Loop
Custom script: call RemoveLocation (udg_Temp_point)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to EVO Wargrowlmon
Then - Actions
Sound - Play Evolution at 100.00% volume, attached to Caster
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 2 of 50 in (Last created hashtable)
Unit - Replace (Load 2 of 50 in (Last created hashtable)) with a Digimon[3] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 2 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Unit - Set mana of (Load 2 of 50 in (Last created hashtable)) to (Percentage mana of (Load 2 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 2 of 50 in (Last created hashtable)) to (Percentage life of (Load 2 of 50 in (Last created hashtable)))%
Custom script: call RemoveLocation (udg_Temp_point)
Trigger - Turn off Growlmon Loop
Trigger - Turn on Wargrowlmon Loop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to EVO Gallantmon
Then - Actions
Sound - Play Evolution at 100.00% volume, attached to Caster
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 3 of 50 in (Last created hashtable)
Unit - Replace (Load 3 of 50 in (Last created hashtable)) with a Digimon[4] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 3 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Unit - Set mana of (Load 3 of 50 in (Last created hashtable)) to (Percentage mana of (Load 3 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 3 of 50 in (Last created hashtable)) to (Percentage life of (Load 3 of 50 in (Last created hashtable)))%
Custom script: call RemoveLocation (udg_Temp_point)
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Turn on Gallantmon Loop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Guilmon Normal Mode
Then - Actions
Sound - Play Degeneration at 100.00% volume, attached to Caster
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 4 of 50 in (Last created hashtable)
Unit - Replace (Load 4 of 50 in (Last created hashtable)) with a Digimon[1] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 4 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Return to + Guilmon Normal Mode))
Unit - Set mana of (Load 4 of 50 in (Last created hashtable)) to (Percentage mana of (Load 4 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 4 of 50 in (Last created hashtable)) to (Percentage life of (Load 4 of 50 in (Last created hashtable)))%
Custom script: call RemoveLocation (udg_Temp_point)
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Turn off Gallantmon Loop
Else - Actions
Unica coisa que tah dando errado ai que nao consigo arrumar e o valor de mana e life quando muda aparece sempre com valor errado tipo to com 100 de mana e 200 de vida volta com 600 de mana e 2300 de vida deve ser alguma coisa nessa linha aqui:
Unit - Set mana of (Load 4 of 50 in (Last created hashtable)) to (Percentage mana of (Load 4 of 50 in (Last created hashtable)))%
Minha logica Set mana of (Caster load no hashtable)to (Percentage mana of Last replaced unit Load no hashtable tbm.
Guilmon Evo
Events
Unit - A unit Begins casting an ability
Conditions
Actions
Set Caster = (Casting unit)
Set Digimon[1] = Guilmon
Set Digimon[2] = Growlmon
Set Digimon[3] = WarGrowlmon
Set Digimon[4] = Gallantmon
Set Temp_point = (Position of Caster)
Set Level = (Level of (Last replaced unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Evo Growlmon
Then - Actions
Sound - Play Evolution
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 1 of 50 in (Last created hashtable)
Unit - Replace (Load 1 of 50 in (Last created hashtable)) with a Digimon[2] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 1 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Unit - Set mana of (Load 1 of 50 in (Last created hashtable)) to (Percentage mana of (Load 1 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 1 of 50 in (Last created hashtable)) to (Percentage life of (Load 1 of 50 in (Last created hashtable)))%
Trigger - Turn on Growlmon Loop
Custom script: call RemoveLocation (udg_Temp_point)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to EVO Wargrowlmon
Then - Actions
Sound - Play Evolution
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 2 of 50 in (Last created hashtable)
Unit - Replace (Load 2 of 50 in (Last created hashtable)) with a Digimon[3] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 2 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Unit - Set mana of (Load 2 of 50 in (Last created hashtable)) to (Percentage mana of (Load 2 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 2 of 50 in (Last created hashtable)) to (Percentage life of (Load 2 of 50 in (Last created hashtable)))%
Custom script: call RemoveLocation (udg_Temp_point)
Trigger - Turn off Growlmon Loop
Trigger - Turn on Wargrowlmon Loop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to EVO Gallantmon
Then - Actions
Sound - Play Evolution
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 3 of 50 in (Last created hashtable)
Unit - Replace (Load 3 of 50 in (Last created hashtable)) with a Digimon[4] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 3 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Digivolve to + (Name of (Last replaced unit))))
Unit - Set mana of (Load 3 of 50 in (Last created hashtable)) to (Percentage mana of (Load 3 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 3 of 50 in (Last created hashtable)) to (Percentage life of (Load 3 of 50 in (Last created hashtable)))%
Custom script: call RemoveLocation (udg_Temp_point)
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Turn on Gallantmon Loop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Guilmon Normal Mode
Then - Actions
Sound - Play Degeneration
Unit - Create 1 Dumy for (Owner of Caster) at Temp_point facing Default building facing degrees
Animation - Change (Last created unit)'s size to (500.00%, 500.00%, 500.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Hashtable - Save Handle OfCaster as 4 of 50 in (Last created hashtable)
Unit - Replace (Load 4 of 50 in (Last created hashtable)) with a Digimon[1] using The old unit's relative life and mana
Hashtable - Save Handle Of(Last replaced unit) as 4 of 50 in (Last created hashtable)
Game - Display to (All players) the text: ((Name of Caster) + ( Return to + Guilmon Normal Mode))
Unit - Set mana of (Load 4 of 50 in (Last created hashtable)) to (Percentage mana of (Load 4 of 50 in (Last created hashtable)))%
Unit - Set life of (Load 4 of 50 in (Last created hashtable)) to (Percentage life of (Load 4 of 50 in (Last created hashtable)))%
Custom script: call RemoveLocation (udg_Temp_point)
Trigger - Turn off Growlmon Loop
Trigger - Turn off Wargrowlmon Loop
Trigger - Turn off Gallantmon Loop
Else - Actions
Unica coisa que tah dando errado ai que nao consigo arrumar e o valor de mana e life quando muda aparece sempre com valor errado tipo to com 100 de mana e 200 de vida volta com 600 de mana e 2300 de vida deve ser alguma coisa nessa linha aqui:
Unit - Set mana of (Load 4 of 50 in (Last created hashtable)) to (Percentage mana of (Load 4 of 50 in (Last created hashtable)))%
Minha logica Set mana of (Caster load no hashtable)to (Percentage mana of Last replaced unit Load no hashtable tbm.
Última edição por Devinganca em 2014-02-27, 19:31, editado 1 vez(es) (Motivo da edição : FaLTO COISAS)
Devinganca- Número de Posts : 37
Data de inscrição : 14/11/2011
Reputação : 9 Pontos : 24273
Re: Sobre Triger replace system
Isso aqui é um erro grave para qualquer mapa:
Sempre que uma unidade castar qualquer spell, a variável global "Caster" passará a setar essa unidade. Isso acontece porque você não adicionou filtros à Condition, como mostrado na seta vermelha.
Desse jeito, a variável global "Caster" vai ficar mudando de unidade sempre que uma nova castar qualquer spell.
*Edit*
Não só a variável "Caster", mas todas as outras apontadas.
[Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem]
Sempre que uma unidade castar qualquer spell, a variável global "Caster" passará a setar essa unidade. Isso acontece porque você não adicionou filtros à Condition, como mostrado na seta vermelha.
Desse jeito, a variável global "Caster" vai ficar mudando de unidade sempre que uma nova castar qualquer spell.
*Edit*
Não só a variável "Caster", mas todas as outras apontadas.
Re: Sobre Triger replace system
foi oque eu disse,sem a condicao,qualquer spell castada no mapa ira gerae esta trigger.
Joker- Número de Posts : 447
Data de inscrição : 03/08/2012
Reputação : 62 Pontos : 27113
Re: Sobre Triger replace system
Vlw vou dar uma estudada aqui e ver se deu certo +rep pra ambos xD
Devinganca- Número de Posts : 37
Data de inscrição : 14/11/2011
Reputação : 9 Pontos : 24273
Re: Sobre Triger replace system
Devinganca escreveu:Vlw vou dar uma estudada aqui e ver se deu certo +rep pra ambos xD
Tópico Bloqueado & Movido
Questão Resolvida
Questão Resolvida
Tópicos semelhantes
» Triger de stack item e recipe triger
» [Duvida] Battle System / Combat System
» [TUTORIAL] Replace Tiles, Cliff Type, Doodads e Units
» [System]WoW Hero Respawn System
» Quest de BM em triger falta pra finalizar meu Mapa
» [Duvida] Battle System / Combat System
» [TUTORIAL] Replace Tiles, Cliff Type, Doodads e Units
» [System]WoW Hero Respawn System
» Quest de BM em triger falta pra finalizar meu Mapa
TeaM KingS :: Games: :: Warcraft: World Editor :: :: :: Dúvidas/Problemas Resolvidos
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos