- Marcos_M escribió:
- Creo que eso lo manejarías con detonadores, tendrías que hacer que todos los creeps no otorguen experiencia y dando la experiencia vos mismo.
Pero no estoy seguro si hay solución más simple, alguien debería saber del tema
Sí, ya tengo esos detonadores para que los creeps no otorguen exp, pero no se como setear la exp yo mismo....
[gui]Desactivar Experiencia
Acontecimientos
Tiempo - Elapsed game time is 0.00 seconds
Condiciones
Acciones
For each (Integer A) from 1 to 11, do (Actions)
Bucle: Acciones
Héroe - Make (Player((Integer A))) Heroes gain 0.00% experience from future kills
[/gui]
[gui]Gain Exp
Acontecimientos
Unidad - A unit Muere
Condiciones
(Owner of (Dying unit)) Igual a Jugador 12 (marrón)
Acciones
Set Exp_X[1] = 0
Set Exp_Unit = Player_Heroes[(Player number of (Owner of (Killing unit)))]
Set Exp_N[1] = (Hero level of Player_Heroes[(Player number of (Owner of (Killing unit)))])
Set Exp_N[2] = (Level of (Dying unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[1] Igual a Exp_N[2]
Entonces: Acciones
Set Exp_X[1] = 20
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[1] Mayor que Exp_N[2]
Entonces: Acciones
Set Exp_N[3] = (Exp_N[1] - Exp_N[2])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 1
Entonces: Acciones
Set Exp_X[1] = 19
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 2
Entonces: Acciones
Set Exp_X[1] = 18
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 3
Entonces: Acciones
Set Exp_X[1] = 17
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 4
Entonces: Acciones
Set Exp_X[1] = 16
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 5
Entonces: Acciones
Set Exp_X[1] = 15
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 6
Entonces: Acciones
Set Exp_X[1] = 14
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 7
Entonces: Acciones
Set Exp_X[1] = 13
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 8
Entonces: Acciones
Set Exp_X[1] = 12
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 9
Entonces: Acciones
Set Exp_X[1] = 11
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 10
Entonces: Acciones
Set Exp_X[1] = 10
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 11
Entonces: Acciones
Set Exp_X[1] = 9
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 12
Entonces: Acciones
Set Exp_X[1] = 8
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 13
Entonces: Acciones
Set Exp_X[1] = 7
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 14
Entonces: Acciones
Set Exp_X[1] = 6
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 15
Entonces: Acciones
Set Exp_X[1] = 5
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 16
Entonces: Acciones
Set Exp_X[1] = 4
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Igual a 17
Entonces: Acciones
Set Exp_X[1] = 3
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[3] Mayor que o igual a 18
Entonces: Acciones
Set Exp_X[1] = 2
Otros: Acciones
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[1] Menor que Exp_N[2]
Entonces: Acciones
Set Exp_N[4] = (Exp_N[2] - Exp_N[1])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 1
Entonces: Acciones
Set Exp_X[1] = 21
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 2
Entonces: Acciones
Set Exp_X[1] = 22
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 3
Entonces: Acciones
Set Exp_X[1] = 23
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 4
Entonces: Acciones
Set Exp_X[1] = 24
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 5
Entonces: Acciones
Set Exp_X[1] = 25
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 6
Entonces: Acciones
Set Exp_X[1] = 26
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 7
Entonces: Acciones
Set Exp_X[1] = 27
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 8
Entonces: Acciones
Set Exp_X[1] = 28
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Igual a 9
Entonces: Acciones
Set Exp_X[1] = 29
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_N[4] Mayor que o igual a 10
Entonces: Acciones
Set Exp_X[1] = 30
Otros: Acciones
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
((Killing unit) has buff Desconocido (B004)) Igual a True
Entonces: Acciones
Set Exp_X[1] = (Exp_X[1] x 6)
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
((Killing unit) has buff Desconocido (B003)) Igual a True
Entonces: Acciones
Set Exp_X[1] = (Exp_X[1] x 3)
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
((Killing unit) has buff Desconocido (B002)) Igual a True
Entonces: Acciones
Set Exp_X[1] = (Exp_X[1] x 2)
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
((Killing unit) has buff Purgar) Igual a True
Entonces: Acciones
Set Exp_X[1] = (Exp_X[1] + (Exp_X[1] / 2))
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
((Killing unit) has buff Desconocido (B001)) Igual a True
Entonces: Acciones
Set Exp_X[1] = (Exp_X[1] + (Exp_X[1] / 4))
Otros: Acciones
Set Player_Exp[(Player number of (Owner of (Killing unit)))] = (Player_Exp[(Player number of (Owner of (Killing unit)))] + Exp_X[1])
Set Exp_P[0] = (Position of (Killing unit))
Set Exp_G[0] = (Units within 1000.00 of Exp_P[0] matching (((((Matching unit) is alive) Igual a True) and ((Matching unit) No igual a (Killing unit))) and ((((Matching unit) is Un héroe) Igual a True) and (((Matching unit) belongs to an ally of (Owner of (Killing unit))) I
Grupo de unidad - Pick every unit in Exp_G[0] and do (Actions)
Bucle: Acciones
Set Player_Exp[(Player number of (Owner of (Picked unit)))] = (Player_Exp[(Player number of (Owner of (Picked unit)))] + (Exp_X[1] / 2))
Custom script: call DestroyGroup(udg_Exp_G[0])
Custom script: call RemoveLocation(udg_Exp_P[0])
[/gui]
[gui]Experencia
Acontecimientos
Tiempo - Every 0.20 seconds of game time
Condiciones
Acciones
For each (Integer A) from 1 to 11, do (Actions)
Bucle: Acciones
Set Exp_X[0] = Player_Exp[(Integer A)]
For each (Integer B) from 1 to 33, do (Actions)
Bucle: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(Unit-type of Player_Heroes[(Integer A)]) Igual a HerLvlMax_Type[(Integer B)]
Entonces: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(HerLvlMax_Lvl[(Integer B)] + (RB_Max[(Integer A)] x 2)) Mayor que (Hero level of Player_Heroes[(Integer A)])
Entonces: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Exp_X[0] Mayor que o igual a 100
Entonces: Acciones
Set Player_Exp[(Integer A)] = (Player_Exp[(Integer A)] - 100)
Héroe - Add 100 experience to Player_Heroes[(Integer A)], Mostrar level-up graphics
Otros: Acciones
Set Player_Exp[(Integer A)] = (Player_Exp[(Integer A)] - Exp_X[0])
Héroe - Add Exp_X[0] experience to Player_Heroes[(Integer A)], Mostrar level-up graphics
Otros: Acciones
Set Player_Exp[(Integer A)] = 0
Otros: Acciones
[/gui]
Créditos: ChatiSnake, gg 2.