[KE] Funcion GUI GetLastSpellCasted
Koleshy Engine :: Warcraft 3 :: World Editor :: Funciones
Página 1 de 1.
[KE] Funcion GUI GetLastSpellCasted
[KE] Funcion GUI GetLastSpellCasted
Descripcion: Funcion que te permite saber que habilidad fue casteada/usada por ultima vez de X unidad.
PD: contiene ejemplo de como hacer una habilidad "Robar habilidad a X unidad durante X tiempo"
Detonadores de la Funcion:
Ejemplos como usar: los ejemplos estan en el mismo mapa con la funcion incluida. descarguelo y revise c:
[Tienes que estar registrado y conectado para ver este vínculo]
Descripcion: Funcion que te permite saber que habilidad fue casteada/usada por ultima vez de X unidad.
PD: contiene ejemplo de como hacer una habilidad "Robar habilidad a X unidad durante X tiempo"
Detonadores de la Funcion:
- Código:
GetLastSpellCasted
Acontecimientos
Condiciones
Acciones
-------- PD: solo funciona con unidades/heroes que tengan el maná max. mayor que 0 --------
-------- ###### .::Maqueta::. ###### --------
-------- GetLastSpellCasted(unidad) --------
-------- ###################### --------
-------- Para obtener la habilidad "GetLastSpellCastedSYS_Skill" --------
-------- Para obtener el nivel "GetLastSpellCastedSYS_Level" --------
-------- ------------------------------------------- --------
Set GetLastSpellCastedSYS_Unit = GetLastSpellCastedSYS_Unit
-------- ------------------------------------------- --------
-------- Return: (Valores devueltos) --------
Set GetLastSpellCastedSYS_Skill = GetLastSpellCasted_Skill[(Custom value of GetLastSpellCastedSYS_Unit)]
Set GetLastSpellCastedSYS_Level = GetLastSpellCasted_Level[(Custom value of GetLastSpellCastedSYS_Unit)]
- Código:
GetLastSpellCasted ST
Acontecimientos
Unidad - A unit Inicia el efecto de una habilidad
Condiciones
(Maná máx. of (Triggering unit)) Mayor que 0.00
Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(Custom value of (Triggering unit)) Igual a 0
Entonces: Acciones
Set GetLastSpellCasted_IDX = (GetLastSpellCasted_IDX + 1)
Set GetLastSpellCasted_Unit[GetLastSpellCasted_IDX] = (Triggering unit)
Unidad - Set the custom value of GetLastSpellCasted_Unit[GetLastSpellCasted_IDX] to GetLastSpellCasted_IDX
Otros: Acciones
Set GetLastSpellCasted_Skill[(Custom value of (Triggering unit))] = (Ability being cast)
Set GetLastSpellCasted_Level[(Custom value of (Triggering unit))] = (Level of (Ability being cast) for (Triggering unit))
-------- ------------------------------------------- --------
-------- PD: Este display es de ejemplo para mostrarles como se va ejecutando la funcion durante el juego --------
Partida - Display to (All players) the text: ((Name of (Triggering unit)) + ( |c0000FF00GetLastSpellCasted|r= + ((Name of GetLastSpellCasted_Skill[(Custom value of (Triggering unit))]) + ( |c00FEBA0E||r |c001CE6B9IDX|r= + (String((Custom value of (Triggering unit))))))))
Ejemplos como usar: los ejemplos estan en el mismo mapa con la funcion incluida. descarguelo y revise c:
[Tienes que estar registrado y conectado para ver este vínculo]
Koleshy Engine :: Warcraft 3 :: World Editor :: Funciones
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