Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Hi i have an issue when trying to destroy many flotating texts.
I use the destroy option with a array variable. But some times the texts still survives xD....
Like:
For each (Integer X) from 1 to (Load (Key (S.S + (Numero + (Planetas + (String((Maná of R_estrella))))))) of 0 from Hashtable), do (Actions)
Bucle: Acciones
Texto flotante - Destroy Planeta_texto[X]
Texto flotante - Destroy Planeta_texto2[X]
for example the variable text is 8 and it should get removed but doesnt...
Been the all the day trying to fix this because i didnt know the Op Limit of flotating text.
Maybe because my text is too long sometimes it fails to destroy it?
Here are the 3 triggers. But the really strange thing is that sometimes all the text are destroy. Others no....
The main ones are the second and third trigger.
Crear planeta
Acontecimientos
Jugador - Jugador 1 (rojo) types a chat message containing pp as Una subcadena
Condiciones
Acciones
Set Planeta_modelo = (Integer((Substring((Entered chat string), 3, 4))))
-------- CREACION Y BASICO --------
Set Planetas_numero = (Planetas_numero + 1)
Set punto_especial = ((Position of ANILLO) offset by 150.00 towards 0.00 degrees)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_modelo Igual a 1
Entonces: Acciones
Unidad - Create 1 Planetas_tipo[(Random integer number between 1 and 8)] for Jugador 1 (rojo) at punto_especial facing Vista edificio predeterminada degrees
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_modelo Igual a 2
Entonces: Acciones
Unidad - Create 1 Planetas_tipo[(Random integer number between 9 and 15)] for Jugador 1 (rojo) at punto_especial facing Vista edificio predeterminada degrees
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_modelo Igual a 3
Entonces: Acciones
Unidad - Create 1 Planetas_tipo[(Random integer number between 16 and 25)] for Jugador 1 (rojo) at punto_especial facing Vista edificio predeterminada degrees
Otros: Acciones
Set Planetas[Planetas_numero] = (Last created unit)
Set Planetas_escala[Planetas_numero] = (Real((Substring((Entered chat string), 5, 7))))
Animación - Change Planetas[Planetas_numero]'s size to (Planetas_escala[Planetas_numero]%, Planetas_escala[Planetas_numero]%, Planetas_escala[Planetas_numero]%) of its original size
Animación - Change (Last created unit)'s animation speed to 50.00% of its original speed
-------- TEXTO - NOMBRE Y DEMAS --------
Set p_name[Planetas_numero] = (Position of Planetas[Planetas_numero])
Set Planeta_nombre[Planetas_numero] = (Substring((Entered chat string), 8, 30))
Set Planeta_distancia[Planetas_numero] = (Distance between (Position of Planeta_U_Orbita[Planetas_numero]) and (Position of Planetas[Planetas_numero]))
-------- SET SPEED --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_distancia[Planetas_numero] Menor que o igual a 500.00
Entonces: Acciones
Set Planeta_speed_orbit[Planetas_numero] = 0.06
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
And - All (Conditions) are true
Condiciones
Planeta_distancia[Planetas_numero] Mayor que o igual a 501.00
Planeta_distancia[Planetas_numero] Menor que o igual a 1000.00
Entonces: Acciones
Set Planeta_speed_orbit[Planetas_numero] = 0.05
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
And - All (Conditions) are true
Condiciones
Planeta_distancia[Planetas_numero] Mayor que o igual a 1001.00
Planeta_distancia[Planetas_numero] Menor que o igual a 1500.00
Entonces: Acciones
Set Planeta_speed_orbit[Planetas_numero] = 0.04
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
And - All (Conditions) are true
Condiciones
Planeta_distancia[Planetas_numero] Mayor que o igual a 1501.00
Planeta_distancia[Planetas_numero] Menor que o igual a 2000.00
Entonces: Acciones
Set Planeta_speed_orbit[Planetas_numero] = 0.03
Otros: Acciones
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_distancia[Planetas_numero] Mayor que o igual a 2001.00
Detonador - Run Se crea planeta continuacion <gen> (ignoring conditions)
Se crea planeta continuacion
Acontecimientos
Condiciones
Acciones
-------- Imperio Kront --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Imperio[Planetas_numero] Igual a Planeta_Tipos_Imperio[1]
Entonces: Acciones
-------- Agrega 1 planeta + a su imperio --------
Tabla hash - Save ((Load 0 of 0 from Hash_Kront) + 1) as 0 of 0 in Hash_Kront
-------- Agrega produccion de Trabajadores --------
Tabla hash - Save ((Load (Key (Kront + (Produccion + Obreros))) of 0 from Hash_Kront) + 2) as (Key (Kront + (Produccion + Obreros))) of 0 in Hash_Kront
-------- Agrega el factor de Produccion al recurso especifico --------
Tabla hash - Save ((Load (Key Planeta_Produccion[Planetas_numero]) of 0 from Hash_Kront) + Planeta_Factor_productor[Planetas_numero]) as (Key Planeta_Produccion[Planetas_numero]) of 0 in Hash_Kront
-------- +1 Planeta que Controlan en Ese SISTEMA SOLAR --------
Tabla hash - Save ((Load (Key Estrella_last_nombre) of 0 from Hash_Kront) + 1) as (Key Estrella_last_nombre) of 0 in Hash_Kront
-------- Produccion total del recurso que sea --------
Tabla hash - Save ((Load (Key ((Kront + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Kront) + Planeta_Factor_productor[Planetas_numero]) as (Key ((Kront + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Kront
-------- cereales --------
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 from Hash_Kront) + 1) as (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 in Hash_Kront
Otros: Acciones
-------- Imperio Shogun --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Imperio[Planetas_numero] Igual a Planeta_Tipos_Imperio[2]
Entonces: Acciones
-------- Agrega 1 planeta + a su imperio --------
Tabla hash - Save ((Load 0 of 0 from Hash_Shogun) + 1) as 0 of 0 in Hash_Shogun
-------- Agrega produccion de Trabajadores --------
Tabla hash - Save ((Load (Key (Shogun + (Produccion + Obreros))) of 0 from Hash_Shogun) + 2) as (Key (Shogun + (Produccion + Obreros))) of 0 in Hash_Shogun
-------- Agrega el factor de Produccion al recurso especifico --------
Tabla hash - Save ((Load (Key Planeta_Produccion[Planetas_numero]) of 0 from Hash_Shogun) + Planeta_Factor_productor[Planetas_numero]) as (Key Planeta_Produccion[Planetas_numero]) of 0 in Hash_Shogun
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Or - Any (Conditions) are true
Condiciones
Planeta_Produccion[Planetas_numero] Igual a Cereal
Planeta_Produccion[Planetas_numero] Igual a Niquel
Entonces: Acciones
Tabla hash - Save ((Load (Key Planeta_Produccion[Planetas_numero]) of 0 from Hash_Shogun) + 3) as (Key Planeta_Produccion[Planetas_numero]) of 0 in Hash_Shogun
Otros: Acciones
-------- +1 Planeta que Controlan en Ese SISTEMA SOLAR --------
Tabla hash - Save ((Load (Key Estrella_last_nombre) of 0 from Hash_Shogun) + 1) as (Key Estrella_last_nombre) of 0 in Hash_Shogun
-------- Produccion total del recurso que sea --------
Tabla hash - Save ((Load (Key ((Shogun + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Shogun) + Planeta_Factor_productor[Planetas_numero]) as (Key ((Shogun + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Shogun
-------- cereales --------
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 from Hash_Shogun) + 1) as (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 in Hash_Shogun
Otros: Acciones
-------- Imperio Astarte --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Imperio[Planetas_numero] Igual a Planeta_Tipos_Imperio[3]
Entonces: Acciones
-------- Agrega 1 planeta + a su imperio --------
Tabla hash - Save ((Load 0 of 0 from Hash_Astarte) + 1) as 0 of 0 in Hash_Astarte
-------- Agrega produccion de Trabajadores --------
Tabla hash - Save ((Load (Key (Astarte + (Produccion + Obreros))) of 0 from Hash_Astarte) + 1) as (Key (Astarte + (Produccion + Obreros))) of 0 in Hash_Astarte
-------- Agrega el factor de Produccion al recurso especifico --------
Tabla hash - Save ((Load (Key Planeta_Produccion[Planetas_numero]) of 0 from Hash_Astarte) + Planeta_Factor_productor[Planetas_numero]) as (Key Planeta_Produccion[Planetas_numero]) of 0 in Hash_Astarte
-------- +1 Planeta que Controlan en Ese SISTEMA SOLAR --------
Tabla hash - Save ((Load (Key Estrella_last_nombre) of 0 from Hash_Astarte) + 1) as (Key Estrella_last_nombre) of 0 in Hash_Astarte
-------- Produccion total del recurso que sea --------
Tabla hash - Save ((Load (Key ((Astarte + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Astarte) + Planeta_Factor_productor[Planetas_numero]) as (Key ((Astarte + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Astarte
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Produccion[Planetas_numero] Igual a Cereal
Entonces: Acciones
Tabla hash - Save ((Load (Key ((Astarte + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Astarte) + 5) as (Key ((Astarte + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Astarte
Otros: Acciones
-------- cereales --------
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 from Hash_Astarte) + 1) as (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 in Hash_Astarte
Otros: Acciones
-------- Imperio Victorianos --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Imperio[Planetas_numero] Igual a Planeta_Tipos_Imperio[4]
Entonces: Acciones
-------- Agrega 1 planeta + a su imperio --------
Tabla hash - Save ((Load 0 of 0 from Hash_Victorianos) + 1) as 0 of 0 in Hash_Victorianos
-------- Agrega produccion de Trabajadores --------
Tabla hash - Save ((Load (Key (Victorianos + (Produccion + Obreros))) of 0 from Hash_Victorianos) + 1) as (Key (Victorianos + (Produccion + Obreros))) of 0 in Hash_Victorianos
-------- Agrega el factor de Produccion al recurso especifico --------
Tabla hash - Save ((Load (Key Planeta_Produccion[Planetas_numero]) of 0 from Hash_Victorianos) + Planeta_Factor_productor[Planetas_numero]) as (Key Planeta_Produccion[Planetas_numero]) of 0 in Hash_Victorianos
-------- +1 Planeta que Controlan en Ese SISTEMA SOLAR --------
Tabla hash - Save ((Load (Key Estrella_last_nombre) of 0 from Hash_Victorianos) + 1) as (Key Estrella_last_nombre) of 0 in Hash_Victorianos
-------- Produccion total del recurso que sea --------
Tabla hash - Save ((Load (Key ((Victorianos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Victorianos) + Planeta_Factor_productor[Planetas_numero]) as (Key ((Victorianos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Victorianos
-------- cereales --------
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 from Hash_Victorianos) + 1) as (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 in Hash_Victorianos
Otros: Acciones
-------- Imperio Sovieticos --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Imperio[Planetas_numero] Igual a Planeta_Tipos_Imperio[5]
Entonces: Acciones
-------- Agrega 1 planeta + a su imperio --------
Tabla hash - Save ((Load 0 of 0 from Hash_Sovieticos) + 1) as 0 of 0 in Hash_Sovieticos
-------- Agrega produccion de Trabajadores --------
Tabla hash - Save ((Load (Key (Sovieticos + (Produccion + Obreros))) of 0 from Hash_Sovieticos) + 1) as (Key (Sovieticos + (Produccion + Obreros))) of 0 in Hash_Sovieticos
-------- Agrega el factor de Produccion al recurso especifico --------
Tabla hash - Save ((Load (Key Planeta_Produccion[Planetas_numero]) of 0 from Hash_Sovieticos) + Planeta_Factor_productor[Planetas_numero]) as (Key Planeta_Produccion[Planetas_numero]) of 0 in Hash_Sovieticos
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Produccion[Planetas_numero] Igual a Amoniaco
Entonces: Acciones
Tabla hash - Save ((Load (Key ((Sovieticos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Sovieticos) + 5) as (Key ((Sovieticos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Sovieticos
Otros: Acciones
-------- +1 Planeta que Controlan en Ese SISTEMA SOLAR --------
Tabla hash - Save ((Load (Key Estrella_last_nombre) of 0 from Hash_Sovieticos) + 1) as (Key Estrella_last_nombre) of 0 in Hash_Sovieticos
-------- Produccion total del recurso que sea --------
Tabla hash - Save ((Load (Key ((Sovieticos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Sovieticos) + Planeta_Factor_productor[Planetas_numero]) as (Key ((Sovieticos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Sovieticos
-------- cereales --------
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 from Hash_Sovieticos) + 1) as (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 in Hash_Sovieticos
Otros: Acciones
-------- Imperio Tichondrianos --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Imperio[Planetas_numero] Igual a Planeta_Tipos_Imperio[6]
Entonces: Acciones
-------- Agrega 1 planeta + a su imperio --------
Tabla hash - Save ((Load 0 of 0 from Hash_Tichondrianos) + 1) as 0 of 0 in Hash_Tichondrianos
-------- Agrega produccion de Trabajadores --------
Tabla hash - Save ((Load (Key (Tichondrianos + (Produccion + Obreros))) of 0 from Hash_Tichondrianos) + 1) as (Key (Tichondrianos + (Produccion + Obreros))) of 0 in Hash_Tichondrianos
-------- Agrega el factor de Produccion al recurso especifico --------
Tabla hash - Save ((Load (Key Planeta_Produccion[Planetas_numero]) of 0 from Hash_Tichondrianos) + Planeta_Factor_productor[Planetas_numero]) as (Key Planeta_Produccion[Planetas_numero]) of 0 in Hash_Tichondrianos
-------- +1 Planeta que Controlan en Ese SISTEMA SOLAR --------
Tabla hash - Save ((Load (Key Estrella_last_nombre) of 0 from Hash_Tichondrianos) + 1) as (Key Estrella_last_nombre) of 0 in Hash_Tichondrianos
-------- Produccion total del recurso que sea --------
Tabla hash - Save ((Load (Key ((Tichondrianos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Tichondrianos) + Planeta_Factor_productor[Planetas_numero]) as (Key ((Tichondrianos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Tichondrianos
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_Produccion[Planetas_numero] Igual a Helium
Entonces: Acciones
Tabla hash - Save ((Load (Key ((Tichondrianos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 from Hash_Tichondrianos) + 5) as (Key ((Tichondrianos + Produccion) + Planeta_Produccion[Planetas_numero])) of 0 in Hash_Tichondrianos
Otros: Acciones
-------- cereales --------
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 from Hash_Tichondrianos) + 1) as (Key (Planeta_Imperio[Planetas_numero] + (Produccion + Cereal))) of 0 in Hash_Tichondrianos
Animación - Change Planetas[Planetas_numero] flying height to (Estrella_Altura + Planetas_escala[Planetas_numero]) at 1000.00
-------- Animacion --------
Animación - Change Planetas[Planetas_numero]'s animation speed to 50.00% of its original speed
Set p_name[Planetas_numero] = (Position of Planetas[Planetas_numero])
-------- Asteroides Apartir de 80 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planetas_escala[Planetas_numero] Mayor que o igual a 80.00
Entonces: Acciones
-------- Numero de Asteroides --------
Tabla hash - Save ((Load (Key Asteroide N) of 0 from Hashtable) + 1) as (Key Asteroide N) of 0 in Hashtable
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + Asteroide N)) of 0 from Hashtable) + 1) as (Key (Planeta_Imperio[Planetas_numero] + Asteroide N)) of 0 in Hashtable
Set P = (p_name[Planetas_numero] offset by (100.00 + Planetas_escala[Planetas_numero]) towards 0.00 degrees)
Unidad - Create 1 Asteroides_tipos[(Random integer number between 1 and 3)] for Jugador 1 (rojo) at P facing Vista edificio predeterminada degrees
-------- Grados --------
Tabla hash - Save (Angle from p_name[Planetas_numero] to P) as (Key (Agrados + (String((Load (Key Asteroide N) of 0 from Hashtable))))) of 0 in Hashtable
-------- Leak --------
Custom script: call RemoveLocation(udg_P)
-------- Se guardan las variables --------
-------- Nombre del Asteroide --------
Tabla hash - Save Handle Of(Last created unit) as (Key (Aunidad + (String((Load (Key Asteroide N) of 0 from Hashtable))))) of 0 in Hashtable
-------- Nombre del Asteroide Para IMPERIO --------
Tabla hash - Save Handle Of(Last created unit) as (Key ((Planeta_Imperio[Planetas_numero] + Asteroide) + (String((Load (Key (Planeta_Imperio[Planetas_numero] + Asteroide N)) of 0 from Hashtable))))) of 0 in Hashtable
-------- Nombre del Asteroide Para Conquista --------
Tabla hash - Save Handle Of(Last created unit) as (Key ((Neutral + Asteroide) + (String(Planetas_numero)))) of 0 in Hashtable
-------- Max recoleccion --------
Tabla hash - Save (Random integer number between 8 and 12) as (Key (Planeta_Imperio[Planetas_numero] + (Asteroide + (Capacidad + (String((Load (Key Asteroide N) of 0 from Hashtable))))))) of 0 in Hashtable
-------- Hierro que da: --------
Tabla hash - Save (Random integer number between 8 and 12) as (Key (<Cadena vacÃ*a> + (Asteroide + (Capacidad + (String(Planetas_numero)))))) of 0 in Hashtable
-------- Save Speed de Asteroide (para todos igual) --------
Tabla hash - Save 0.08 as (Key Asteroide S) of 0 in Hashtable
-------- Save Tamaño de Asteroide (4 veces mas pequeños) --------
Tabla hash - Save (Planetas_escala[Planetas_numero] / 4.00) as (Key Asteroide E) of 0 in Hashtable
Animación - Change (Last created unit)'s size to ((Load (Key Asteroide E) of 0 from Hashtable)%, (Load (Key Asteroide E) of 0 from Hashtable)%, (Load (Key Asteroide E) of 0 from Hashtable)%) of its original size
-------- Cual es Su planeta Orbita --------
Tabla hash - Save Handle OfPlanetas[Planetas_numero] as (Key (Aorbita + (String((Load (Key Asteroide N) of 0 from Hashtable))))) of 0 in Hashtable
-------- Distancia del Asteroide --------
Tabla hash - Save (100.00 + Planetas_escala[Planetas_numero]) as (Key (Adistancia + (String((Load (Key Asteroide N) of 0 from Hashtable))))) of 0 in Hashtable
-------- Altura --------
Animación - Change (Last created unit) flying height to ((Current flying height of Planetas[Planetas_numero]) + (Planetas_escala[Planetas_numero] / 2.00)) at 1000.00
-------- Se añade habilidad --------
Unidad - Add Hierro Satelite to (Last created unit)
Otros: Acciones
-------- Gigantes con Atmosfera apartir de 100 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planetas_escala[Planetas_numero] Mayor que o igual a 100.00
Entonces: Acciones
Tabla hash - Save ((Load (Key Base N) of 0 from Hashtable) + 1) as (Key Base N) of 0 in Hashtable
Tabla hash - Save ((Load (Key Atmosfera N) of 0 from Hashtable) + 1) as (Key Atmosfera N) of 0 in Hashtable
Set P = (Position of Planetas[Planetas_numero])
Unidad - Create 1 Atmosfera for Jugador 1 (rojo) at P facing Vista edificio predeterminada degrees
Custom script: call RemoveLocation(udg_P)
Animación - Change (Last created unit)'s size to ((Planetas_escala[Planetas_numero] / 2.00)%, (Planetas_escala[Planetas_numero] / 2.00)%, (Planetas_escala[Planetas_numero] / 2.00)%) of its original size
Animación - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 80.00% transparency
Animación - Change (Last created unit) flying height to ((Current flying height of Planetas[Planetas_numero]) + (Planetas_escala[Planetas_numero] / 2.00)) at 1000.00
Tabla hash - Save Handle Of(Last created unit) as (Key (Atmosfera + (String(Planetas_numero)))) of 0 in Hashtable
Otros: Acciones
-------- CADENA (texto) 1 --------
Tabla hash - Save ((Load (Key Textos N) of 0 from Hashtable) + 1) as (Key Textos N) of 0 in Hashtable
Texto flotante - Create floating text that reads ((((String(Planetas_numero)) + :: ) + Planeta_nombre[Planetas_numero]) + ( + (String(Planetas_escala[Planetas_numero], 3, 0)))) at p_name[Planetas_numero] with Z offset (((Current flying height of Planetas[Planetas_numero]) - 50.00) - Planetas_escala[Planetas_numero]), using font size 9.00, color (20.00%, 100.00%, 40.00%), and 0.00% transparency
Tabla hash - Save ((Current flying height of Planetas[Planetas_numero]) - (50.00 - Planetas_escala[Planetas_numero])) as (Key (Altura + (Cadena1 + ((String((Load (Key Textos N) of 0 from Hashtable))) + (Estrella + (String((Maná of R_estrella)))))))) of 0 in Hashtable
Set Planeta_texto[Planetas_numero] = (Last created floating text)
-------- se salva en hash para evitar OP limit --------
Tabla hash - Save ((String(Planetas_numero)) + ( :: + (Planeta_nombre[Planetas_numero] + ( E: + (String(Planetas_escala[Planetas_numero], 3, 0)))))) as (Key (Cadena1 + ((String((Load (Key Textos N) of 0 from Hashtable))) + (Estrella + (String((Maná of R_estrella))))))) of 0 in Hashtable
-------- Numero de planetas sistema solar --------
Tabla hash - Save ((Load (Key (S.S + (Numero + (Planetas + (String((Maná of R_estrella))))))) of 0 from Hashtable) + 1) as (Key (S.S + (Numero + (Planetas + (String((Maná of R_estrella))))))) of 0 in Hashtable
-------- Numero de planetas Imperio --------
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + (Numero + (Planetas + Total)))) of 0 from Hashtable) + 1) as (Key (Planeta_Imperio[Planetas_numero] + (Numero + (Planetas + Total)))) of 0 in Hashtable
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
Planeta_temperatura[Planetas_numero] Menor que o igual a 0.00
Entonces: Acciones
Texto flotante - Create floating text that reads (Planeta_Imperio[Planetas_numero] + ( + (D: + ((String(Planeta_distancia[Planetas_numero], 5, 0)) + ( T: + (|cFF00FFFF_ + ((String(Planeta_temperatura[Planetas_numero], 4, 0)) + _|r))))))) at p_name[Planetas_numero] with Z offset ((Estrella_Altura - 75.00) - Planetas_escala[Planetas_numero]), using font size 8.50, color (10.00%, 100.00%, 90.00%), and 0.00% transparency
Set Planeta_texto2[Planetas_numero] = (Last created floating text)
Tabla hash - Save ((Current flying height of Planetas[Planetas_numero]) - (75.00 - Planetas_escala[Planetas_numero])) as (Key (Altura + (Cadena2 + ((String((Load (Key Textos N) of 0 from Hashtable))) + (Estrella + (String((Maná of R_estrella)))))))) of 0 in Hashtable
-------- se salva en hash para evitar OP limit --------
Tabla hash - Save (Planeta_Imperio[Planetas_numero] + ( + (D: + ((String(Planeta_distancia[Planetas_numero], 5, 0)) + ( + (T: + (|cFF00FFFF_ + ((String(Planeta_temperatura[Planetas_numero], 4, 0)) + _|r)))))))) as (Key (Cadena2 + ((String((Load (Key Textos N) of 0 from Hashtable))) + (Estrella + (String((Maná of R_estrella))))))) of 0 in Hashtable
Otros: Acciones
Texto flotante - Create floating text that reads (Planeta_Imperio[Planetas_numero] + ( + (D: + ((String(Planeta_distancia[Planetas_numero], 5, 0)) + ( T: + (|cFFFF3535_ + ((String(Planeta_temperatura[Planetas_numero], 4, 0)) + _|r))))))) at p_name[Planetas_numero] with Z offset ((Estrella_Altura - 75.00) - Planetas_escala[Planetas_numero]), using font size 8.50, color (10.00%, 100.00%, 90.00%), and 0.00% transparency
Set Planeta_texto2[Planetas_numero] = (Last created floating text)
Tabla hash - Save ((Current flying height of Planetas[Planetas_numero]) - (75.00 - Planetas_escala[Planetas_numero])) as (Key (Altura + (Cadena2 + ((String((Load (Key Textos N) of 0 from Hashtable))) + (Estrella + (String((Maná of R_estrella)))))))) of 0 in Hashtable
-------- se salva en hash para evitar OP limit --------
Tabla hash - Save (Planeta_Imperio[Planetas_numero] + ( + (D: + ((String(Planeta_distancia[Planetas_numero], 5, 0)) + ( + (T: + (|cFFFF3535_ + ((String(Planeta_temperatura[Planetas_numero], 4, 0)) + _|r)))))))) as (Key (Cadena2 + ((String((Load (Key Textos N) of 0 from Hashtable))) + (Estrella + (String((Maná of R_estrella))))))) of 0 in Hashtable
Tabla hash - Save ((Load (Key Textos N1) of 0 from Hashtable) + 1) as (Key Textos N1) of 0 in Hashtable
Tabla hash - Save Handle Of(Position of Planetas[Planetas_numero]) as (Key (Punto + (Planeta + ((String((Load (Key Textos N1) of 0 from Hashtable))) + (Estrella + (String((Maná of R_estrella)))))))) of 0 in Hashtable
-------- Altura Real --------
Tabla hash - Save (Current flying height of Planetas[Planetas_numero]) as (Key (Altura + (String(Planetas_numero)))) of 0 in Hashtable
-------- Nombre final --------
Tabla hash - Save Planeta_nombre[Planetas_numero] as (Key (Planeta_Imperio[Planetas_numero] + (Planeta + (String(Planetas_numero))))) of 0 in Hashtable
Tabla hash - Save Handle OfPlanetas[Planetas_numero] as (Key (Load (Key (Planeta_Imperio[Planetas_numero] + (Planeta + (String(Planetas_numero))))) of 0 from Hashtable)) of 0 in Hashtable
-------- Cual es el mas grande=? --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
And - All (Conditions) are true
Condiciones
Planetas_escala[Planetas_numero] Mayor que o igual a Planetas_escala[(Planetas_numero - 1)]
Planetas_numero Mayor que o igual a 2
Entonces: Acciones
Tabla hash - Save ((Load (Key (Planeta_Imperio[Planetas_numero] + Tamaño)) of 0 from Hashtable) + 1) as (Key (Planeta_Imperio[Planetas_numero] + Tamaño)) of 0 in Hashtable
Tabla hash - Save Planeta_nombre[Planetas_numero] as (Key (Planeta_Imperio[Planetas_numero] + ((Planeta + Grande) + (String((Load (Key (Planeta_Imperio[Planetas_numero] + Tamaño)) of 0 from Hashtable)))))) of 0 in Hashtable
Tabla hash - Save Handle OfPlanetas[Planetas_numero] as (Key (Load (Key (Planeta_Imperio[Planetas_numero] + ((Planeta + Grande) + (String((Load (Key (Planeta_Imperio[Planetas_numero] + Tamaño)) of 0 from Hashtable)))))) of 0 from Hashtable)) of 0 in Hashtable
Otros: Acciones
Anillo
Acontecimientos
Tiempo - Every 0.20 seconds of game time
Condiciones
Acciones
Set Uni = (Position of ANILLO)
Set P = ((Position of ANILLO) offset by 150.00 towards 0.00 degrees)
Set P1 = (Position of Last_estrella)
Texto flotante - Change the position of text_anillo to P with Z offset ((Current flying height of ANILLO) - 1.00)
Texto flotante - Change text of text_anillo to (|cFFFF0000_ + ((String(((Estrellas_escala[Estrellas_numero] x 2.00) - ((Distance between P and P1) / 10.00)), 5, 0)) + (_|r + (|cFF00FF80_ + ((String((Distance between P and P1), 5, 0)) + _|r))))) using font size 10.00
-------- Textos --------
Set gp2 = (Units within 3000.00 of Uni matching ((((Unit-type of (Matching unit)) Igual a Estrella I) or ((Unit-type of (Matching unit)) Igual a Estrella II)) and ((Current flying height of (Matching unit)) Igual a (Current flying height of ANILLO))))
Set R_estrella = (Random unit from gp2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
TextosON Igual a False
Entonces: Acciones
Set TextosON = True
For each (Integer X4) from 1 to (Load (Key (S.S + (Numero + (Planetas + (String((Maná of R_estrella))))))) of 0 from Hashtable), do (Actions)
Bucle: Acciones
Set PT = (Load (Key (Punto + (Planeta + ((String(X4)) + (Estrella + (String((Maná of R_estrella)))))))) of 0 in Hashtable)
-------- cadena1 --------
Texto flotante - Create floating text that reads (Load (Key (Cadena1 + ((String(X4)) + (Estrella + (String((Maná of R_estrella))))))) of 0 from Hashtable) at PT with Z offset (Load (Key (Altura + (Cadena1 + ((String(X4)) + (Estrella + (String((Maná of R_estrella)))))))) of 0 from Hashtable), using font size 9.00, color (20.00%, 100.00%, 40.00%), and 0.00% transparency
Set Planeta_texto[X4] = (Last created floating text)
Texto flotante - Mostrar Planeta_texto[X4] for (All players)
-------- cadena2 --------
Texto flotante - Create floating text that reads (Load (Key (Cadena2 + ((String(X4)) + (Estrella + (String((Maná of R_estrella))))))) of 0 from Hashtable) at PT with Z offset (Load (Key (Altura + (Cadena2 + ((String(X4)) + (Estrella + (String((Maná of R_estrella)))))))) of 0 from Hashtable), using font size 8.50, color (100.00%, 100.00%, 90.00%), and 0.00% transparency
Set Planeta_texto2[X4] = (Last created floating text)
Texto flotante - Mostrar Planeta_texto2[X4] for (All players)
Partida - Display to (All players) for 3.00 seconds the text: 1
Otros: Acciones
-------- Informacion de Cuantos Planetas hay en camera. --------
-------- Anillo Altura camera --------
Custom script: call DestroyGroup(udg_gp2)
Custom script: call RemoveLocation(udg_Uni)
Custom script: call RemoveLocation(udg_P)
Custom script: call RemoveLocation(udg_P1)
Anillo subir
Acontecimientos
Jugador - Jugador 1 (rojo) types a chat message containing subir as Una subcadena
Condiciones
Acciones
Detonador - Turn off Anillo <gen>
For each (Integer X) from 1 to (Load (Key (S.S + (Numero + (Planetas + (String((Maná of R_estrella))))))) of 0 from Hashtable), do (Actions)
Bucle: Acciones
Texto flotante - Destroy Planeta_texto[X]
Texto flotante - Destroy Planeta_texto2[X]
Wait 1.00 seconds
Animación - Change ANILLO flying height to ((Current flying height of ANILLO) + (Real((Substring((Entered chat string), 6, 9))))) at 1000.00
Partida - Display to (All players) for 3.00 seconds the text: (String((Real((Entered chat string))), 6, 9))
If there is no fix can someone please tell me how to avoid the OP limit. I need to have more than 100 text-strings save and be able to use them.
I really need them for my map. I tried storing the string into hash and then variable but i enconter the problem above: sometimes Destroy text varible doesnt work.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.