[gui]WaveOfTerror
Acontecimientos
Tiempo - Every 0.04 seconds of game time
Condiciones
Acciones
For each (Integer WT_Enteros[3]) from 1 to WT_Enteros[2], do (Actions)
Bucle: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
WT_Booleana[WT_Enteros[3]] Igual a True
Entonces: Acciones
Set WT_Instancia[WT_Enteros[3]] = (WT_Instancia[WT_Enteros[3]] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
WT_Instancia[WT_Enteros[3]] Igual a 4
Entonces: Acciones
Set WT_Instancia[WT_Enteros[3]] = 0
Set WT_Distancia[WT_Enteros[3]] = (WT_Distancia[WT_Enteros[3]] + 300.00)
Set WT_Punto[0] = (WT_Punto[WT_Enteros[3]] offset by WT_Distancia[WT_Enteros[3]] towards WT_Angulo[WT_Enteros[3]] degrees)
Unidad - Create 1 Dummy for (Owner of WT_Caster[WT_Enteros[3]]) at WT_Punto[0] facing Vista edificio predeterminada degrees
Unidad - Add a 1.50 second GenÃ

rico expiration timer to (Last created unit)
Unidad - Add ReduccionDeArmorDummyOleadaDeTerror to (Last created unit)
Unidad - Set level of ReduccionDeArmorDummyOleadaDeTerror for (Last created unit) to (Level of Wave of Terror for WT_Caster[WT_Enteros[3]])
Unidad - Order (Last created unit) to Señor del foso neutral - Aullido de terror
Custom script: set bj_wantDestroyGroup = true
Grupo de unidad - Pick every unit in (Units within 300.00 of WT_Punto[0] matching ((((Matching unit) is Una estructura) Igual a False) and ((((Matching unit) is Inmune a la magia) Igual a False) and ((((Matching unit) belongs to an enemy of (Owner of WT_Caster[WT_Enteros[3]])) Igual a True) and and do (Actions)
Bucle: Acciones
Unidad - Cause WT_Caster[WT_Enteros[3]] to damage (Picked unit), dealing WT_Damage[WT_Enteros[3]] damage of attack type Caos and damage type Universal
Custom script: call RemoveLocation( udg_WT_Punto[0] )
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
WT_Distancia[WT_Enteros[3]] Mayor que o igual a WT_DistanciaMAX[WT_Enteros[3]]
Entonces: Acciones
Set WT_Enteros[1] = (WT_Enteros[1] - 1)
Set WT_Booleana[WT_Enteros[3]] = False
Set WT_Caster[WT_Enteros[3]] = Ninguna unidad
Custom script: call RemoveLocation( udg_WT_Punto[udg_WT_Enteros[3]] )
Custom script: if udg_WT_Enteros[1] == 0 then
Set WT_Enteros[2] = 0
Detonador - Turn off (This trigger)
Custom script: endif
Otros: Acciones
Otros: Acciones[/gui]