Moderator
M
Moderator
10:03, 15th Jun 2010
Hanky:
Your spells are leakless, MUI and fine enough to get approved.
Hanky:
Your spells are leakless, MUI and fine enough to get approved.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
(4 ratings)
Approved
-------- If you want to add some effects or other things -while the orb is moving you can do it in this loop.Since I don`t add anything it`s empty --------
Set FB_Loop = (FB_Loop - 1)
baassee said:also I still don't get it with the loop even if Hanky did it, he must be crazy cause I dont see any use of reducing a integer that isn't increases nor used other wised than the loop
For each (Integer FB_Loop) from 1 to FB_Indexsize, do (Actions)

Schleifen - Action


Set FB_Temp = FB_Integer[FB_Loop]


Set FB_Point[3] = (Position of FB_Blast[FB_Temp])


Set FB_Point[4] = (Position of FB_Dummy[FB_Temp])


Set FB_Real[FB_Temp] = 0.00


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



'IF'-Condition




[...]



'THEN'-Action




-------- If you want to add some effects or other things while the orb is moving you can do it in this loop.Since I don`t add anything it`s empty --------



'ELSE'-Action




[...]




Set FB_Integer[FB_Loop] = FB_Integer[FB_Indexsize]




Set FB_Integer[FB_Indexsize] = FB_Temp




Set FB_Indexsize = (FB_Indexsize - 1)




Set FB_Loop = (FB_Loop - 1)


Custom script: call RemoveLocation(udg_FB_Point[3])


Custom script: call RemoveLocation(udg_FB_Point[4])

Why in gods name would you use Impale for the damage and stun for Fire blast now the units turn towards some location when damaged/stunned, looks very stupid.
And you used every 0.10 if I'm correct, much better to use 0.03 now it looks laggy/buggy
Look at the triggers for Fire Blast. You can see where it's dealing damage in the loop trigger:How do I make fire blast damage structures?
Else - Actions

Unit - Kill FB_Blast[FB_Temp]

Unit - Kill FB_Dummy[FB_Temp]

For each (Integer FB_Explosion[FB_Temp]) from 1 to 10, do (Actions)


Loop - Actions



-------- This will be the explosion --------



Set VariableSet FB_Point[5] = (FB_Point[3] offset by 300.00 towards FB_Real[FB_Temp] degrees.)



Unit - Create 1 Dummy Fire Blast for (Owner of FB_Caster[FB_Temp]) at FB_Point[3] facing Default building facing degrees



Unit - Add Fire Blast dummy to (Last created unit)



Unit - Set level of Fire Blast dummy for (Last created unit) to (Level of Fire Blast for FB_Caster[FB_Temp])



Unit - Order (Last created unit) to Undead Crypt Lord - Impale FB_Point[5]



Unit - Add a 1.00 second Generic expiration timer to (Last created unit)



Set VariableSet FB_Real[FB_Temp] = (FB_Real[FB_Temp] + (360.00 / 10.00))



Custom script: call RemoveLocation(udg_FB_Point[5])

Set VariableSet FB_Integer[FB_Loop] = FB_Integer[FB_Indexsize]

Set VariableSet FB_Integer[FB_Indexsize] = FB_Temp

Set VariableSet FB_Indexsize = (FB_Indexsize - 1)

Set VariableSet FB_Loop = (FB_Loop - 1)
Unit Group - Pick every unit in (Units within 300.00 range of FB_Point[3]) and do (Actions)

Loop - Actions


Unit - Cause FB_Caster[FB_Loop] to damage (Picked unit), dealing 1000 damage of attack type Spells and damage type Normal
Oh I see, thanks for your quick response and detailed explanation. The war3 community is amazing.Mira los factores desencadenantes de Fire Blast. Puedes ver dónde está infligiendo daño en el disparador de bucle:
[desencadenar]
De lo contrario - Acciones
Unidad - Matar FB_Blast[FB_Temp]
Unidad - Matar FB_Dummy[FB_Temp]
Para cada (Integer FB_Explosion[FB_Temp]) del 1 al 10, haga (Acciones)
Bucle - Acciones
-------- Así será la explosión --------
Establecer VariableSet FB_Point[5] = (FB_Point[3] desplazado por 300.00 hacia FB_Real[FB_Temp] grados.)
Unidad: cree 1 ráfaga de fuego ficticia para (propietario de FB_Caster[FB_Temp]) en FB_Point[3] frente a los grados predeterminados de orientación del edificio
Unidad - Agregar ficticio Fire Blast a (Última unidad creada)
Unidad: establezca el nivel del maniquí Fire Blast para (Última unidad creada) en (Nivel de Fire Blast para FB_Caster [FB_Temp])
Unidad - Orden (Última unidad creada) a Undead Crypt Lord - Impale FB_Point[5]
Unidad: agregue un temporizador de caducidad genérico de 1,00 segundos a (Última unidad creada)
Establecer VariableSet FB_Real[FB_Temp] = (FB_Real[FB_Temp] + (360.00 / 10.00))
Script personalizado: llamar a RemoveLocation(udg_FB_Point[5])
Establecer VariableSet FB_Integer[FB_Loop] = FB_Integer[FB_Indexsize]
Establecer VariableSet FB_Integer[FB_Indexsize] = FB_Temp
Establecer VariableSet FB_Indexsize = (FB_Indexsize - 1)
Establecer VariableSet FB_Loop = (FB_Loop - 1)
[/desencadenar]
Estas acciones se ejecutan cuando el Fire Blast ha llegado a su destino. Como puedes ver, crea unidades ficticias que lanzan la habilidad Empalar. Entonces, la fuente del daño proviene de Empalar, que por supuesto no puede apuntar a Estructuras. Puedes intentar cambiar los objetivos permitidos de esta habilidad para apuntar a estructuras también, pero es posible que eso no funcione para una habilidad como Empalar. A veces, las habilidades tienen un comportamiento codificado que no puedes cambiar.
En el peor de los casos, puede usar la función Seleccionar todas las unidades para encontrar estructuras cercanas y dañarlas usted mismo.
[desencadenar]
Grupo de unidades: elija cada unidad en (Unidades dentro del rango de 300.00 de FB_Point [3]) y realice (Acciones)
Bucle - Acciones
Unidad - Causa daño a FB_Caster[FB_Loop] (unidad elegida), infligiendo 1000 de daño de tipo de ataque Hechizos y tipo de daño Normal
[/desencadenar]
Nota al margen: las unidades ficticias en este mapa de prueba no están configuradas correctamente. Su unidad Dummy Fire Blast debe tener un Art - Cast Point / Backswing de 0.00, Tipo de movimiento: Ninguno, Base de velocidad: 0 y Tipo de muerte: No puede elevarse, no decaer. Estos mapas antiguos a menudo están llenos de errores como este, ya que la gente simplemente no sabía nada mejor.
Es posible que debas conservar las capacidades de movimiento si deseas que tu unidad ficticia se mueva. Sin embargo, la mayoría de las unidades Dummy no se mueven y solo están destinadas a lanzar un hechizo y desaparecer, en cuyo caso mi configuración anterior da los mejores resultados.

