Aprendiz
Barra de Salud : 
Mensajes : 16
Reputación : 3 Monedas de oro : 80 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: (Luna) Moon Rider Jue Jul 20, 2017 8:00 pm | |
| Que onda, les traigo el pack de las habilidades de Luna en GUI, es facil de editar ya que sus detonadores son de los mas basicoPD: Posteo los detonadores asi porque es mi primeras vez y no se como hacerlo xdEclipse: el daño es basado en Lucent Beam - Código:
-
function Trig_Eclipse_Conditions takes nothing returns boolean if ( not ( GetSpellAbilityId() == 'A000' ) ) then return false endif return true endfunction
function Trig_Eclipse_Func004Func001C takes nothing returns boolean if ( not ( IsUnitDeadBJ(GetEnumUnit()) == false ) ) then return false endif if ( not ( IsUnitIdType(GetUnitTypeId(GetEnumUnit()), UNIT_TYPE_STRUCTURE) == false ) ) then return false endif if ( not ( IsUnitEnemy(GetEnumUnit(), GetOwningPlayer(udg_EclipseCaster)) == true ) ) then return false endif return true endfunction
function Trig_Eclipse_Func004A takes nothing returns nothing if ( Trig_Eclipse_Func004Func001C() ) then call GroupAddUnitSimple( GetEnumUnit(), udg_EclipseGroup ) else call DoNothing( ) endif endfunction
function Trig_Eclipse_Func015C takes nothing returns boolean if ( not ( GetUnitAbilityLevelSwapped('A000', udg_EclipseCaster) >= 2 ) ) then return false endif return true endfunction
function Trig_Eclipse_Func016C takes nothing returns boolean if ( not ( GetUnitAbilityLevelSwapped('A000', udg_EclipseCaster) >= 3 ) ) then return false endif return true endfunction
function Trig_Eclipse_Actions takes nothing returns nothing set udg_EclipseCaster = GetSpellAbilityUnit() call GroupClear( udg_EclipseGroup ) call ForGroupBJ( GetUnitsInRangeOfLocAll(800.00, GetUnitLoc(udg_EclipseCaster)), function Trig_Eclipse_Func004A ) call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) if ( Trig_Eclipse_Func015C() ) then call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) else call DoNothing( ) endif if ( Trig_Eclipse_Func016C() ) then call TriggerExecute( gg_trg_Eclipse_Effect ) call TriggerSleepAction( 0.10 ) call TriggerExecute( gg_trg_Eclipse_Effect ) else call DoNothing( ) endif endfunction
//=========================================================================== function InitTrig_Eclipse takes nothing returns nothing set gg_trg_Eclipse = CreateTrigger( ) call TriggerRegisterAnyUnitEventBJ( gg_trg_Eclipse, EVENT_PLAYER_UNIT_SPELL_EFFECT ) call TriggerAddCondition( gg_trg_Eclipse, Condition( function Trig_Eclipse_Conditions ) ) call TriggerAddAction( gg_trg_Eclipse, function Trig_Eclipse_Actions ) endfunction Este se activa despues de castear - Código:
-
function Trig_Eclipse_Effect_Func010C takes nothing returns boolean if ( not ( GetRandomInt(1, 6) == 4 ) ) then return false endif return true endfunction
function Trig_Eclipse_Effect_Actions takes nothing returns nothing set udg_EclipseTarget = GroupPickRandomUnit(udg_EclipseGroup) call CreateNUnitsAtLoc( 1, 'e001', GetOwningPlayer(udg_EclipseCaster), GetUnitLoc(udg_EclipseCaster), bj_UNIT_FACING ) call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() ) call UnitAddAbilityBJ( 'A006', GetLastCreatedUnit() ) call SetUnitAbilityLevelSwapped( 'A006', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A002', udg_EclipseCaster) ) call IssueTargetOrderBJ( GetLastCreatedUnit(), "firebolt", udg_EclipseTarget ) call SetUnitPathing( GetLastCreatedUnit(), false ) call SetUnitInvulnerable( GetLastCreatedUnit(), true ) call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() ) if ( Trig_Eclipse_Effect_Func010C() ) then call GroupRemoveUnitSimple( udg_EclipseTarget, udg_EclipseGroup ) else call DoNothing( ) endif endfunction
//=========================================================================== function InitTrig_Eclipse_Effect takes nothing returns nothing set gg_trg_Eclipse_Effect = CreateTrigger( ) call TriggerAddAction( gg_trg_Eclipse_Effect, function Trig_Eclipse_Effect_Actions ) endfunction |
|
Héroe

Barra de Salud : 
Mensajes : 1757
Reputación : 439 Monedas de oro : 9434 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Sáb Jul 22, 2017 12:54 am | |
| Genial, estaría mejor si hubiera un mapa ejemplo para descargar para así hacer copypaste.  ... - No sabia que había link oculto, ya lo vi, gracias.  (Click a la Firma para Entrar) |
|
Soldado

Barra de Salud : 
Mensajes : 99
Reputación : 13 Monedas de oro : 470 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Sáb Jul 22, 2017 10:23 pm | |
| Comento para ver, gracias por el aporte. |
|
Peón
Barra de Salud : 
Mensajes : 49
Reputación : 0 Monedas de oro : 149 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Vie Oct 06, 2017 5:06 pm | |
| veamos!!!  |
|
Caballero

Barra de Salud : 
Mensajes : 319
Reputación : 8 Monedas de oro : 1422 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Vie Oct 06, 2017 5:58 pm | |
| Vaya al fin uno que ase ses hab :p |
|
Iniciado

Barra de Salud : 
Mensajes : 7
Reputación : 0 Monedas de oro : 13 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Sáb Mayo 16, 2020 11:12 am | |
| |
|
Iniciado
Barra de Salud : 
Mensajes : 1
Reputación : 0 Monedas de oro : 1 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Sáb Nov 20, 2021 3:38 pm | |
| que genial muy bueno |
|
Iniciado

Barra de Salud : 
Mensajes : 1
Reputación : 0 Monedas de oro : 1 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Jue Feb 24, 2022 6:46 am | |
| |
|
Soldado
Barra de Salud : 
Mensajes : 61
Reputación : 1 Monedas de oro : 64 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Dom Mar 27, 2022 12:40 am | |
| Comento para ver  |
|
Soldado

Barra de Salud : 
Mensajes : 91
Reputación : 5 Monedas de oro : 492 Monedas de Platino : 0 
Inventario :  
 | (#) Tema: Re: (Luna) Moon Rider Lun Mar 28, 2022 10:02 am | |
| |
|
 | (#) Tema: Re: (Luna) Moon Rider  | |
| |
|