Koleshy Engine
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

[SISTEMA] Oro/Madera en Casas cada X seg.

Ir abajo

[SISTEMA] Oro/Madera en Casas cada X seg. Empty [SISTEMA] Oro/Madera en Casas cada X seg.

Mensaje por Koleshy Vie Dic 18, 2015 2:17 pm

Ganar Oro/Madera en Casas cada X seg.

[SISTEMA] Oro/Madera en Casas cada X seg. 3p0lNE5

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)

descarga
[Tienes que estar registrado y conectado para ver este vínculo]
Koleshy
Koleshy
Pendejo
Pendejo

Mensajes : 37
Fecha de inscripción : 21/11/2013
Edad : 27
Localización : Lima, Perú

https://koleshyengine.foroactivo.mx

Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.