[KE] Funcion GUI OnOffTimedAbility

Ver el tema anterior Ver el tema siguiente Ir abajo

[KE] Funcion GUI OnOffTimedAbility

Mensaje por Koleshy el Vie Dic 18, 2015 1:27 pm

[KE] Funcion GUI OnOffTimedAbility

Descripcion: Funcion que te permite activar/desactivar una habilidad durante X cantidad de tiempo en X unidad.

Detonadores de la Funcion:

Código:

OnOffTimedAbility
   Acontecimientos
   Condiciones
   Acciones
       -------- ###### .::Maqueta::. ###### --------
       -------- OnOffTimedAbility(jugador, habilidad, tiempo, bool_OnOff) --------
       -------- ###################### --------
       -------- ------------------------------------------- --------
       -------- OnOff >> True = activar habilidad | False = desactivar habilidad --------
       -------- ------------------------------------------- --------
       Set OnOffTimedAbilitySYS_Player = OnOffTimedAbilitySYS_Player
       Set OnOffTimedAbilitySYS_Skill = OnOffTimedAbilitySYS_Skill
       Set OnOffTimedAbilitySYS_Tiempo = OnOffTimedAbilitySYS_Tiempo
       Set OnOffTimedAbilitySYS_OnOff = OnOffTimedAbilitySYS_OnOff
       -------- ------------------------------------------- --------
       Set OnOffTimedAbility_IDX[0] = (OnOffTimedAbility_IDX[0] + 1)
       If (All Conditions are True) then do (Then Actions) else do (Else Actions)
           Si: Condiciones
               OnOffTimedAbility_IDX[0] Igual a 1
           Entonces: Acciones
               Detonador - Turn on OnOffTimedAbility Loop <gen>
           Otros: Acciones
       Set OnOffTimedAbility_C[OnOffTimedAbility_IDX[0]] = 0
       Set OnOffTimedAbility_T[OnOffTimedAbility_IDX[0]] = OnOffTimedAbilitySYS_Tiempo
       Set OnOffTimedAbility_Skill[OnOffTimedAbility_IDX[0]] = OnOffTimedAbilitySYS_Skill
       Set OnOffTimedAbility_Player[OnOffTimedAbility_IDX[0]] = OnOffTimedAbilitySYS_Player
       Set OnOffTimedAbility_B[OnOffTimedAbility_IDX[0]] = OnOffTimedAbilitySYS_OnOff
       If (All Conditions are True) then do (Then Actions) else do (Else Actions)
           Si: Condiciones
               OnOffTimedAbilitySYS_OnOff Igual a True
           Entonces: Acciones
               Jugador - Activar OnOffTimedAbilitySYS_Skill for OnOffTimedAbilitySYS_Player
           Otros: Acciones
               Jugador - Desactivar OnOffTimedAbilitySYS_Skill for OnOffTimedAbilitySYS_Player


Código:

OnOffTimedAbility Loop
   Acontecimientos
       Tiempo - Every 0.03 seconds of game time
   Condiciones
   Acciones
       For each (Integer OnOffTimedAbility_IDX[1]) from 1 to OnOffTimedAbility_IDX[0], do (Actions)
           Bucle: Acciones
               Set OnOffTimedAbility_C[OnOffTimedAbility_IDX[1]] = (OnOffTimedAbility_C[OnOffTimedAbility_IDX[1]] + 1)
               If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                   Si: Condiciones
                       OnOffTimedAbility_C[OnOffTimedAbility_IDX[1]] Igual a (Integer((OnOffTimedAbility_T[OnOffTimedAbility_IDX[1]] / 0.03)))
                   Entonces: Acciones
                       If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                           Si: Condiciones
                               OnOffTimedAbility_B[OnOffTimedAbility_IDX[1]] Igual a True
                           Entonces: Acciones
                               Jugador - Desactivar OnOffTimedAbility_Skill[OnOffTimedAbility_IDX[1]] for OnOffTimedAbility_Player[OnOffTimedAbility_IDX[1]]
                           Otros: Acciones
                               Jugador - Activar OnOffTimedAbility_Skill[OnOffTimedAbility_IDX[1]] for OnOffTimedAbility_Player[OnOffTimedAbility_IDX[1]]
                       -------- ------------------------------------------- --------
                       Set OnOffTimedAbility_B[OnOffTimedAbility_IDX[1]] = OnOffTimedAbility_B[OnOffTimedAbility_IDX[0]]
                       Set OnOffTimedAbility_C[OnOffTimedAbility_IDX[1]] = OnOffTimedAbility_C[OnOffTimedAbility_IDX[0]]
                       Set OnOffTimedAbility_T[OnOffTimedAbility_IDX[1]] = OnOffTimedAbility_T[OnOffTimedAbility_IDX[0]]
                       Set OnOffTimedAbility_Player[OnOffTimedAbility_IDX[1]] = OnOffTimedAbility_Player[OnOffTimedAbility_IDX[0]]
                       Set OnOffTimedAbility_Skill[OnOffTimedAbility_IDX[1]] = OnOffTimedAbility_Skill[OnOffTimedAbility_IDX[0]]
                       Set OnOffTimedAbility_IDX[1] = (OnOffTimedAbility_IDX[1] - 1)
                       Set OnOffTimedAbility_IDX[0] = (OnOffTimedAbility_IDX[0] - 1)
                       If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                           Si: Condiciones
                               OnOffTimedAbility_IDX[0] Igual a 0
                           Entonces: Acciones
                               Detonador - Turn off (This trigger)
                           Otros: Acciones
                   Otros: Acciones


Ejemplos como usar: los ejemplos estan en el mismo mapa con la funcion incluida. descarguelo y revise c:

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

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

Ver perfil de usuario http://koleshyengine.foroactivo.mx

Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba


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