[SISTEMA] Oro/Madera en Casas cada X seg.
Koleshy Engine :: Warcraft 3 :: World Editor :: Sistemas
Página 1 de 1.
[SISTEMA] Oro/Madera en Casas cada X seg.
Ganar Oro/Madera en Casas cada X seg.
Breve Descripcion:
> Permite bien agregar oro/madera o ambos a la vez. segun el monto que se le establesca.
Los montos se dan globalmente cada X cantidad de segundos, configurado en el CFG.
Detonadores:
[Tienes que estar registrado y conectado para ver este vínculo]
Breve Descripcion:
> Permite bien agregar oro/madera o ambos a la vez. segun el monto que se le establesca.
Los montos se dan globalmente cada X cantidad de segundos, configurado en el CFG.
Detonadores:
- Código:
KE EGL SYS CFG
Acontecimientos
Map initialization
Condiciones
Acciones
-------- Cada que tiempo se dara oro/madera? modificalo a su gusto, por defecto esta en 1 seg. --------
Detonador - Add to KE EGL SYS ST <gen> the event (Tiempo - Every 1.00 seconds of game time)
-------- - --------
Set KE_EGL_SYS_Total = (KE_EGL_SYS_Total + 1)
Set KE_EGL_SYS_UnitType[KE_EGL_SYS_Total] = Casa - Level 1
Set KE_EGL_SYS_GoldGives[KE_EGL_SYS_Total] = 1
Set KE_EGL_SYS_LumberGives[KE_EGL_SYS_Total] = 0
-------- - --------
Set KE_EGL_SYS_Total = (KE_EGL_SYS_Total + 1)
Set KE_EGL_SYS_UnitType[KE_EGL_SYS_Total] = Casa - Level 2
Set KE_EGL_SYS_GoldGives[KE_EGL_SYS_Total] = 2
Set KE_EGL_SYS_LumberGives[KE_EGL_SYS_Total] = 0
-------- - --------
Set KE_EGL_SYS_Total = (KE_EGL_SYS_Total + 1)
Set KE_EGL_SYS_UnitType[KE_EGL_SYS_Total] = Casa - Level 3
Set KE_EGL_SYS_GoldGives[KE_EGL_SYS_Total] = 3
Set KE_EGL_SYS_LumberGives[KE_EGL_SYS_Total] = 0
-------- - --------
Set KE_EGL_SYS_Total = (KE_EGL_SYS_Total + 1)
Set KE_EGL_SYS_UnitType[KE_EGL_SYS_Total] = Casa - Level 4
Set KE_EGL_SYS_GoldGives[KE_EGL_SYS_Total] = 4
Set KE_EGL_SYS_LumberGives[KE_EGL_SYS_Total] = 1
-------- - --------
Set KE_EGL_SYS_Total = (KE_EGL_SYS_Total + 1)
Set KE_EGL_SYS_UnitType[KE_EGL_SYS_Total] = Casa - Level 5
Set KE_EGL_SYS_GoldGives[KE_EGL_SYS_Total] = 5
Set KE_EGL_SYS_LumberGives[KE_EGL_SYS_Total] = 2
- Código:
KE EGL SYS ST
Acontecimientos
Condiciones
Acciones
For each (Integer A) from 1 to KE_EGL_SYS_Total, do (Actions)
Bucle: Acciones
Set KE_EGL_SYS_G = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Igual a KE_EGL_SYS_UnitType[(Integer A)]) and (((Matching unit) is alive) Igual a True)))
Grupo de unidad - Pick every unit in KE_EGL_SYS_G and do (Actions)
Bucle: Acciones
Set KE_EGL_SYS_MSG = <Cadena vacÃa>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
KE_EGL_SYS_GoldGives[(Integer A)] Mayor que 0
Entonces: Acciones
Jugador - Add KE_EGL_SYS_GoldGives[(Integer A)] to (Owner of (Picked unit)) Oro actual
Set KE_EGL_SYS_MSG = (KE_EGL_SYS_MSG + (|c00FFFC01 + ((String(KE_EGL_SYS_GoldGives[(Integer A)])) + |r)))
Otros: Acciones
-------- - --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
KE_EGL_SYS_LumberGives[(Integer A)] Mayor que 0
Entonces: Acciones
Jugador - Add KE_EGL_SYS_LumberGives[(Integer A)] to (Owner of (Picked unit)) Madera actual
Set KE_EGL_SYS_MSG = (KE_EGL_SYS_MSG + ( | |c0020C000 + ((String(KE_EGL_SYS_LumberGives[(Integer A)])) + |r)))
Otros: Acciones
-------- - --------
Texto flotante - Create floating text that reads KE_EGL_SYS_MSG above (Picked unit) with Z offset 0.00, using font size 11.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-------- - --------
Set KE_EGL_SYS_PG = (All enemies of (Owner of (Picked unit)))
Texto flotante - Ocultar (Last created floating text) for KE_EGL_SYS_PG
Custom script: call DestroyForce(udg_KE_EGL_SYS_PG)
-------- - --------
Texto flotante - Change (Last created floating text): Desactivar permanence
Texto flotante - Change the lifespan of (Last created floating text) to 2.00 seconds
Texto flotante - Set the velocity of (Last created floating text) to 92.00 towards 90.00 degrees
Texto flotante - Change the fading age of (Last created floating text) to 0.00 seconds
Custom script: call DestroyGroup(udg_KE_EGL_SYS_G)
[Tienes que estar registrado y conectado para ver este vínculo]
Koleshy Engine :: Warcraft 3 :: World Editor :: Sistemas
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.
|
|
Lun Dic 21, 2015 2:17 pm por Koleshy
» [TOOL] Wifi Free
Sáb Dic 19, 2015 10:30 pm por Koleshy
» [SISTEMA] Comprar|Levelear Habilidades (max. 7)|con criterios
Vie Dic 18, 2015 2:34 pm por Koleshy
» [SISTEMA] Duelos Ultimate
Vie Dic 18, 2015 2:32 pm por Koleshy
» [SISTEMA] Duelos/Torneos (TiposDeDuelo{TodosContraTodos/EnEquipos})
Vie Dic 18, 2015 2:30 pm por Koleshy
» [SISTEMA] Creditos Flotantes
Vie Dic 18, 2015 2:27 pm por Koleshy
» [SISTEMA] Cospre Items con estadistica y Duracion
Vie Dic 18, 2015 2:26 pm por Koleshy
» [SISTEMA] Runas Avanzado
Vie Dic 18, 2015 2:23 pm por Koleshy
» [SISTEMA] Comprar habilidades y hacerlas leveleables
Vie Dic 18, 2015 2:19 pm por Koleshy