[gui]Spirit LanceInit
Acontecimientos
Unidad - A unit Inicia el efecto de una habilidad
Condiciones
(Ability being cast) Igual a (==) Spirit Lance
Acciones
Set set_unit[1] = (Triggering unit)
Set set_unit[3] = (Target unit of ability being cast)
Set set_point[1] = (Position of set_unit[1])
-------- ------------------------------------------------------------------------------------------ --------
Unidad - Create 1 Dummy para misil for (Owner of set_unit[1]) at set_point[1] facing (Facing of set_unit[1]) degrees
Set set_unit[2] = (Last created unit)
Set used_units = 3
-------- ------------------------------------------------------------------------------------------ --------
Animación - Change set_unit[2]'s size to (250.00%, 100.00%, 100.00%) of its original size
Animación - Change set_unit[2] flying height to 75.00 at 0.00
-------- ------------------------------------------------------------------------------------------ --------
Set set_real[1] = (50.00 + (50.00 x (Real((Level of (Ability being cast) for (Triggering unit))))))
-------- ------------------------------------------------------------------------------------------ --------
-------- ------------------------------------------------------------------------------------------ --------
Efecto especial - Create a special effect attached to the origin of set_unit[2] using Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
Set set_effect[1] = (Last created special effect)
Set used_effects = 1
-------- ------------------------------------------------------------------------------------------ --------
Set used_reals = 1
-------- ------------------------------------------------------------------------------------------ --------
Set used_points = 3
-------- ------------------------------------------------------------------------------------------ --------
Set trigger = Spirit LancePeriodic
Set timeout = 0.04
[/gui]
[gui]Spirit LancePeriodic
Acontecimientos
Condiciones
Acciones
-------- Posicion del dummy --------
Set get_point[1] = (Position of get_unit[2])
-------- Posicion del target --------
Set get_point[2] = (Position of get_unit[3])
Set Distancia = (Distance between get_point[1] and get_point[2])
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Distancia Mayor que o igual a (>=) 50.00
Entonces: Acciones
Set Angulo = (Angle from get_point[1] to get_point[2])
Set get_point[3] = (get_point[1] offset by 40.00 towards Angulo degrees)
Unidad - Move get_unit[2] instantly to get_point[3]
Otros: Acciones
Unidad - Create 1 Dummy para castear for (Owner of get_unit[1]) at get_point[1] facing Vista edificio predeterminada (270.0) degrees
Unidad - Add RalentizarLanza to (Last created unit)
Unidad - Set level of RalentizarLanza for (Last created unit) to (Level of Spirit Lance for get_unit[1])
Unidad - Cause get_unit[1] to damage get_unit[3], dealing get_real[1] damage of attack type Conjuros and damage type Normal
Héroe - Create Runa de Ilusion and give it to get_unit[1]
Objeto - Remove (Last created item)
Unidad - Remove get_unit[2] from the game
Set automaticClean = True
Set finish = True
[/gui]
[gui]Spirit Lance Ilusion
Acontecimientos
Unidad - A unit Regenera una unidad invocada
Condiciones
((Summoned unit) has buff Ilusión de lanza ) Igual a (==) True
Acciones
Unidad - Move (Summoned unit) instantly to get_point[2]
[/gui]
https://www.mediafire.com/file/yo9crz3136holog/Para%20armando.w3x