[KE] Funcion GUI GetLastSpellCastedDescripcion: 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:[gui]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)]
[/gui]
[gui]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))))))))
[/gui]
Ejemplos como usar: los ejemplos estan en el mismo mapa con la funcion incluida. descarguelo y revise c:
>> CLICK AQUI <<