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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Inventario Expandido Shircan.w3x
Variables
Inicialización
Inicialización de refriega
Para probar ambos sistemas
Para probar ambos sistemas Copiar
Para probar ambos sistemas Copiar Copiar
Inventario paso 5 Full con cargas MUI
Inventario Abrir2 MUI Copiar
Inventario Cerrar MUI Copiar
Combinar items iguales
objetos Combina Comprables
objetos Combina Cargados
Escribe debajo el código del guión personalizado especial para el mapa. El texto se incluirá en el guión del mapa después de declarar las variables y antes de los códigos de los detonadores.
Name
Type
is_array
initial_value
Cargas1
integer
Yes
Entero
integer
No
Heroe1
unit
No
Real_Generico
real
Yes
Var_Tipo_Objeto
itemcode
Yes
Inicialización predeterminada de pahttp://earslap.com/projectslab/otomata/?q=10_18_150_530450140330562342rtida de refriega para todos los jugadores
Inicialización de refriega
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Run melee AI scripts (for computer players)
Player Group - Add Player 3 (Teal) to (All players controlled by a Computer player)
Player Group - Make Player Group - Player 3 (Teal) treat (All players controlled by a User player) as an Ally with shared vision and full shared units
Player Group - Make (All players controlled by a User player) treat Player Group - Player 3 (Teal) as an Ally with shared vision
Floating Text - Create floating text that reads Escribir "Bolsa" para probar el inventario extendido con la bolsa de druida.Escribir "Combinar" para probar el inventario que combina los ítems en 1 sumando su cantidad de usos. at (Position of Archmage 0000 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads Escribir "Ambos" para probar ambos sistemas.NOTA: Los sistemas no son combinables entre si, Solo pueden usarse de a 1 por héroe.Atte: Shircan. at (Position of Paladin 0017 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads Para usarlo en tu mapa asegúrate de tener la casilla activada en Archivos > Preferencias [General] casilla "Crear variables desconocidas automáticamente a la vez que se pegan datos del detonador"Si usas este sistema por favor Dame créditos... Dar créditos es como agradecer. at (Position of Mountain King 0003 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Para probar ambos sistemas
Events
Player - Player 1 (Red) types a chat message containing Bolsa (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Trigger - Turn off objetos_Combina_Cargados <gen>
Trigger - Turn off objetos_Combina_Comprables <gen>
Trigger - Turn on Inventario_Abrir2_MUI_Copiar <gen>
Trigger - Turn on Inventario_Cerrar_MUI_Copiar <gen>
Para probar ambos sistemas Copiar
Events
Player - Player 1 (Red) types a chat message containing Combinar (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Trigger - Turn off Inventario_Abrir2_MUI_Copiar <gen>
Trigger - Turn off Inventario_Cerrar_MUI_Copiar <gen>
Trigger - Turn on objetos_Combina_Comprables <gen>
Trigger - Turn on objetos_Combina_Cargados <gen>
Para probar ambos sistemas Copiar Copiar
Events
Player - Player 1 (Red) types a chat message containing Ambos (Unexpected type: 'stringnoformat') as A substring
Conditions
Actions
Trigger - Turn on objetos_Combina_Comprables <gen>
Trigger - Turn on objetos_Combina_Cargados <gen>
Trigger - Turn on Inventario_Abrir2_MUI_Copiar <gen>
Trigger - Turn on Inventario_Cerrar_MUI_Copiar <gen>
No combinable con Combinar items
Inventario Abrir2 MUI Copiar
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Bolsa de Druida
Actions
Set Variable Set Heroe1 = (Hero manipulating item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
-------- Jugador 1 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
Set Variable Set Var_Tipo_Objeto[(Integer A)] = (Item-type of (Item carried by Heroe1 in slot ((Integer A) - 0)))
Set Variable Set Cargas1[(Integer A)] = (Charges remaining in (Item carried by Heroe1 in slot ((Integer A) - 0)))
Item - Remove (Item carried by Heroe1 in slot ((Integer A) - 0))
If (Var_Tipo_Objeto[((6 x (Player number of (Triggering player))) + 1)] Equal to (Item-type of No item)) then do (Set VariableSet Var_Tipo_Objeto[((6 x (Player number of (Triggering player))) + 1)] = "I001") else do (Do nothing)
For each (Integer A) from 7 to 12 , do (Actions)
Loop - Actions
Hero - Create Var_Tipo_Objeto[(Integer A)] and give it to Heroe1
Item - Set charges remaining in (Last created item) to Cargas1[(Integer A)]
Else - Actions
-------- Otros jugadores --------
For each (Integer A) from ((6 x (Player number of (Triggering player))) + 1) to (6 + (6 x (Player number of (Triggering player)))) , do (Actions)
Loop - Actions
Set Variable Set Var_Tipo_Objeto[(Integer A)] = (Item-type of (Item carried by Heroe1 in slot ((Integer A) - (6 x (Player number of (Triggering player))))))
Set Variable Set Cargas1[(Integer A)] = (Charges remaining in (Item carried by Heroe1 in slot ((Integer A) - (6 x (Player number of (Triggering player))))))
Item - Remove (Item carried by Heroe1 in slot ((Integer A) - (6 x (Player number of (Triggering player)))))
If (Var_Tipo_Objeto[((6 x (Player number of (Triggering player))) + 7)] Equal to (Item-type of No item)) then do (Set VariableSet Var_Tipo_Objeto[((6 x (Player number of (Triggering player))) + 7)] = "I001") else do (Do nothing)
For each (Integer A) from ((6 x (Player number of (Triggering player))) + 7) to ((6 x (Player number of (Triggering player))) + 12) , do (Actions)
Loop - Actions
Hero - Create Var_Tipo_Objeto[(Integer A)] and give it to Heroe1
Item - Set charges remaining in (Last created item) to Cargas1[(Integer A)]
No combinable con Combinar items
Inventario Cerrar MUI Copiar
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Close
Actions
Set Variable Set Heroe1 = (Hero manipulating item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
-------- Jugador 1 --------
For each (Integer A) from 7 to 12 , do (Actions)
Loop - Actions
Set Variable Set Var_Tipo_Objeto[(Integer A)] = (Item-type of (Item carried by Heroe1 in slot ((Integer A) - 6)))
Set Variable Set Cargas1[(Integer A)] = (Charges remaining in (Item carried by Heroe1 in slot ((Integer A) - 6)))
Item - Remove (Item carried by Heroe1 in slot ((Integer A) - 6))
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
Hero - Create Var_Tipo_Objeto[(Integer A)] and give it to Heroe1
Item - Set charges remaining in (Last created item) to Cargas1[(Integer A)]
Else - Actions
-------- Otros jugadores --------
For each (Integer A) from ((6 x (Player number of (Triggering player))) + 7) to ((6 x (Player number of (Triggering player))) + 12) , do (Actions)
Loop - Actions
Set Variable Set Var_Tipo_Objeto[(Integer A)] = (Item-type of (Item carried by Heroe1 in slot ((Integer A) - ((6 x (Player number of (Triggering player))) + 6))))
Set Variable Set Cargas1[(Integer A)] = (Charges remaining in (Item carried by Heroe1 in slot ((Integer A) - ((6 x (Player number of (Triggering player))) + 6))))
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
Item - Remove (Item carried by Heroe1 in slot (Integer A))
For each (Integer A) from ((6 x (Player number of (Triggering player))) + 1) to ((6 x (Player number of (Triggering player))) + 6) , do (Actions)
Loop - Actions
Hero - Create Var_Tipo_Objeto[(Integer A)] and give it to Heroe1
Item - Set charges remaining in (Last created item) to Cargas1[(Integer A)]
No combinable con el inventario Extendido
POR AHORA no funciona con el inventario lleno.
objetos Combina Comprables
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Purchasable
Actions
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 1
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 1))
Then - Actions
Set Variable Set Real_Generico[1] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 1)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[1])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 1) to (Integer(Real_Generico[1]))
Else - Actions
Set Variable Set Real_Generico[1] = "0.00"
Set Variable Set Entero = "0"
-------- lado 2 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 2
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 2))
Then - Actions
Set Variable Set Real_Generico[2] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 2)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[2])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 2) to (Integer(Real_Generico[2]))
Else - Actions
Set Variable Set Real_Generico[2] = "0.00"
Set Variable Set Entero = "0"
-------- lado 3 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 3
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 3))
Then - Actions
Set Variable Set Real_Generico[3] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 3)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[3])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 3) to (Integer(Real_Generico[3]))
Else - Actions
Set Variable Set Real_Generico[3] = "0.00"
Set Variable Set Entero = "0"
-------- lado 4 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 4
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 4))
Then - Actions
Set Variable Set Real_Generico[4] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 4)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[4])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 4) to (Integer(Real_Generico[4]))
Else - Actions
Set Variable Set Real_Generico[4] = "0.00"
Set Variable Set Entero = "0"
-------- lado 5 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 5
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 5))
Then - Actions
Set Variable Set Real_Generico[5] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 5)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[5])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 5) to (Integer(Real_Generico[5]))
Else - Actions
Set Variable Set Real_Generico[5] = "0.00"
Set Variable Set Entero = "0"
-------- lado 6 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 6
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 6))
Then - Actions
Set Variable Set Real_Generico[6] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 6)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[6])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 6) to (Integer(Real_Generico[6]))
Else - Actions
Set Variable Set Real_Generico[6] = "0.00"
Set Variable Set Entero = "0"
No combinable con el inventario Extendido
POR AHORA no funciona con el inventario lleno.
objetos Combina Cargados
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Charged
Actions
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 1
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 1))
Then - Actions
Set Variable Set Real_Generico[1] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 1)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[1])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 1) to (Integer(Real_Generico[1]))
Else - Actions
Set Variable Set Real_Generico[1] = "0.00"
Set Variable Set Entero = "0"
-------- lado 2 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 2
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 2))
Then - Actions
Set Variable Set Real_Generico[2] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 2)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[2])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 2) to (Integer(Real_Generico[2]))
Else - Actions
Set Variable Set Real_Generico[2] = "0.00"
Set Variable Set Entero = "0"
-------- lado 3 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 3
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 3))
Then - Actions
Set Variable Set Real_Generico[3] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 3)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[3])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 3) to (Integer(Real_Generico[3]))
Else - Actions
Set Variable Set Real_Generico[3] = "0.00"
Set Variable Set Entero = "0"
-------- lado 4 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 4
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 4))
Then - Actions
Set Variable Set Real_Generico[4] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 4)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[4])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 4) to (Integer(Real_Generico[4]))
Else - Actions
Set Variable Set Real_Generico[4] = "0.00"
Set Variable Set Entero = "0"
-------- lado 5 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 5
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 5))
Then - Actions
Set Variable Set Real_Generico[5] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 5)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[5])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 5) to (Integer(Real_Generico[5]))
Else - Actions
Set Variable Set Real_Generico[5] = "0.00"
Set Variable Set Entero = "0"
-------- lado 6 --------
For each (Integer A) from 1 to 6 , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
And - All (Conditions) are true
Conditions
(Integer A) Not equal to 6
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item carried by (Hero manipulating item) in slot 6))
Then - Actions
Set Variable Set Real_Generico[6] = ((Real((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))))) + (Real((Charges remaining in (Item carried by (Hero manipulating item) in slot 6)))))
Set Variable Set Entero = (Integer A)
Item - Remove (Item carried by (Hero manipulating item) in slot (Integer A))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer(Real_Generico[6])) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot 6) to (Integer(Real_Generico[6]))
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.