Foro especializado en Warcraft III y su editor
 
BuscarEntrar al ChatboxPortal del foroÍndiceSpellsRegistrarseConectarse
Eventos Actuales
No hay eventos actualmente
¡ Bienvenido Invitado !

Editar Perfil

Tus temas
Tus Mensajes ()

Enlaces rápidos








Comparte
 

 [KE] Funcion GUI OnOffTimedAbility

Ver el tema anterior Ver el tema siguiente Ir abajo 
AutorMensaje
KoleshyEngine

KoleshyEngine


Barra de Salud : Su salud está al 60% - Este usuario ha recibido dos infracciones

Mensajes Mensajes : 548
Reputación Reputación : 130
Monedas de oro : -215
Monedas de Platino : 0 [KE] Funcion GUI OnOffTimedAbility Empty

Inventario :
[KE] Funcion GUI OnOffTimedAbility Empysl10 [KE] Funcion GUI OnOffTimedAbility Empysl10 [KE] Funcion GUI OnOffTimedAbility Empysl10
[KE] Funcion GUI OnOffTimedAbility Empysl10 [KE] Funcion GUI OnOffTimedAbility Empysl10 [KE] Funcion GUI OnOffTimedAbility Empysl10

[KE] Funcion GUI OnOffTimedAbility Empty
Mensaje(#) Tema: [KE] Funcion GUI OnOffTimedAbility [KE] Funcion GUI OnOffTimedAbility Clock10Jue Dic 11, 2014 8:09 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:

[gui]
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
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

[/gui]

[gui]
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

[/gui]

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

 descargar 
>> CLICK AQUI <<


Like a Star @ heaven  Desarrollador de Software Contactar
Volver arriba Ir abajo
http://koleshyengine.blogspot.com/
 

[KE] Funcion GUI OnOffTimedAbility

Ver el tema anterior Ver el tema siguiente Volver arriba 
Página 1 de 1.

Permisos de este foro:No puedes responder a temas en este foro.
Warcraft III - WorldEditor :: Academia :: Area GUI :: Funciones-