les comento que estoy trabajando en un inventario
las funciones de soltar el ítem en espacios vacíos y si el espacio esta ocupado los ítem se intercambian si no son de la misma id
pero a la hora de agregar la suma me sale un problemas
tengo dos matrices una que se llama hotbar y otra INV
se supone que tengo llaves para que cada acción función cuan la llave esta 0 permite guardar la información en las variables de G y limpia la información que tenia la matriz inv o también pasa los mismo en la matriz hotbar
cuando la llave esta en 1 permite cargar la información de las variables G en espacios vacíos ya sea en la matriz inv o hotbar
bueno la cuestión es que cuando la fusión es 1 y la mando a comparar las variables G_ID=DES_ID para aplicar la suma , si eso esta activo me da un error raro que no entiendo
si hago clic en el ítem estando la función en 0 debería guardar la información pero lo que hace es enviar esa información a la matriz hotbar cuando no debería pasar eso
pero eso sucede si esta activo el sumar y eso que esta dentro de la llave de la función 1 , lo cual función 1 no se activa si no se a cargado los dato
pero si desactivo el sumar dentro de la función 1 todo vuelve a trabajar bien si hacer sumas
aquí les dejo copia de la programación
[click para tomar3]
----+ Mouse: Está el cursor sobre SLOT
----+ Sistema: Es InvOpen verdadero
--------+ Sistema: SLOT.ZONE = ZONE_INV
---------> Sistema: Establecer DES_ID a Inv.En(SLOT.POSX,SLOT.POSY,Z_ID)
---------> Sistema: Establecer DES_QTY a Inv.En(SLOT.POSX,SLOT.POSY,Z_QTY)
---------> Sistema: Establecer DES_X a SLOT.POSX
---------> Sistema: Establecer DES_Y a SLOT.POSY
---------> Sistema: Establecer DES_ZONE a SLOT.ZONE
--------+ Sistema: SLOT.ZONE = ZONE_INVBAR
---------> Sistema: Establecer DES_ID a HotBar.En(SLOT.POSX,SLOT.POSY,Z_ID)
---------> Sistema: Establecer DES_QTY a HotBar.En(SLOT.POSX,SLOT.POSY,Z_QTY)
---------> Sistema: Establecer DES_X a SLOT.POSX
---------> Sistema: Establecer DES_Y a SLOT.POSY
---------> Sistema: Establecer DES_ZONE a SLOT.ZONE
----+ Mouse: [X] Está el cursor sobre SLOT
----+ Sistema: Es InvOpen verdadero
-----> Sistema: Establecer DES_ID a 0
-----> Sistema: Establecer DES_QTY a 0
-----> Sistema: Establecer DES_X a 0
-----> Sistema: Establecer DES_Y a 0
-----> Sistema: Establecer DES_ZONE a 0
----+ Mouse: Al Hacer clic con botón Izquierdo sobre SLOT
----+ Sistema: Es InvOpen verdadero
--------+ Sistema: G_DRAGacti = 0
------------+ Sistema: SLOT.ZONE = ZONE_INV
------------+ Sistema: DES_ID > 0
-------------> Sistema: Establecer G_ID a Inv.En(SLOT.POSX,SLOT.POSY,Z_ID)
-------------> Sistema: Establecer G_QTY a Inv.En(SLOT.POSX,SLOT.POSY,Z_QTY)
-------------> Sistema: Establecer G_X a SLOT.POSX
-------------> Sistema: Establecer G_Y a SLOT.POSY
-------------> Sistema: Establecer G_IDSUMA a Inv.En(SLOT.POSX,SLOT.POSY,Z_ID)
-------------> Sistema: Establecer G_QTYSUMA a Inv.En(SLOT.POSX,SLOT.POSY,Z_QTY)
-------------> Sistema: Establecer G_XSUMA a SLOT.POSX
-------------> Sistema: Establecer G_YSUMA a SLOT.POSY
-------------> Sistema: Establecer G_ZONE a SLOT.ZONE
-------------> Inv: Establecer valor en (G_X, G_Y, Z_ID) a 0
-------------> Inv: Establecer valor en (G_X, G_Y, Z_QTY) a 0
-------------> Sistema: Establecer G_STACKMAX a SLOT.MAXSTACK
-------------> Sistema: Establecer G_STACKEABLE a SLOT.STACKEABLE
-------------> Sistema: Establecer G_DRAGGING a Verdadero
-------------> Sistema: Establecer G_DRAGacti a 1
-------------> Sistema: Establecer UI_DIRTY a 1
------------+ Sistema: SLOT.ZONE = ZONE_INVBAR
------------+ Sistema: DES_ID > 0
-------------> Sistema: Establecer G_ID a HotBar.En(SLOT.POSX,SLOT.POSY,Z_ID)
-------------> Sistema: Establecer G_QTY a HotBar.En(SLOT.POSX,SLOT.POSY,Z_QTY)
-------------> Sistema: Establecer G_X a SLOT.POSX
-------------> Sistema: Establecer G_Y a SLOT.POSY
-------------> Sistema: Establecer G_IDSUMA a HotBar.En(SLOT.POSX,SLOT.POSY,Z_ID)
-------------> Sistema: Establecer G_QTYSUMA a HotBar.En(SLOT.POSX,SLOT.POSY,Z_QTY)
-------------> Sistema: Establecer G_XSUMA a SLOT.POSX
-------------> Sistema: Establecer G_YSUMA a SLOT.POSY
-------------> Sistema: Establecer G_ZONE a SLOT.ZONE
-------------> HotBar: Establecer valor en (G_X, 0, Z_ID) a 0
-------------> HotBar: Establecer valor en (G_X, 0, Z_QTY) a 0
-------------> Sistema: Establecer G_STACKMAX a SLOT.MAXSTACK
-------------> Sistema: Establecer G_STACKEABLE a SLOT.STACKEABLE
-------------> Sistema: Establecer G_DRAGGING a Verdadero
-------------> Sistema: Establecer G_DRAGacti a 1
-------------> Sistema: Establecer UI_DIRTY a 1
--------+ Sistema: G_DRAGacti = 1
------------+ Sistema: SLOT.ZONE = ZONE_INV
----------------+ Sistema: DES_ZONE = G_ZONE
--------------------+ Sistema: DES_ID = 0
--------------------+ Sistema: G_DRAGacti = 1
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_ID) a G_ID
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_QTY) a G_QTY
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_ID) a 0
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_QTY) a 0
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
--------------------+ Sistema: DES_ID ≠ G_ID
--------------------+ Sistema: G_DRAGacti = 1
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_ID) a G_ID
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_QTY) a G_QTY
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_ID) a DES_ID
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_QTY) a DES_QTY
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
--------------------+ Sistema: DES_ID = G_ID
---------------------> Sistema: Establecer DES_SUMADO a G_QTY+DES_QTY
------------------------+ Sistema: DES_SUMADO ≤ G_STACKMAX
-------------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_ID) a G_ID
-------------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_QTY) a DES_SUMADO
-------------------------> Inv: Establecer valor en (G_X, G_Y, Z_ID) a 0
-------------------------> Inv: Establecer valor en (G_X, G_Y, Z_QTY) a 0
-------------------------> Sistema: Establecer G_ID a 0
-------------------------> Sistema: Establecer G_QTY a 0
-------------------------> Sistema: Establecer G_X a 0
-------------------------> Sistema: Establecer G_Y a 0
-------------------------> Sistema: Establecer DES_SUMADO a 0
-------------------------> Sistema: Establecer G_STACKMAX a 0
-------------------------> Sistema: Establecer G_ZONE a 0
-------------------------> Sistema: Establecer G_DRAGGING a Falso
-------------------------> Sistema: Establecer G_DRAGacti a 0
-------------------------> Sistema: Establecer UI_DIRTY a 1
-------------------------> Sistema: Detener bucle
------------------------+ Sistema: DES_SUMADO > G_STACKMAX
-------------------------> Sistema: Establecer DES_RESTANTE a DES_SUMADO-G_STACKMAX
----------------------------+ (no condiciones)
-----------------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_ID) a G_ID
-----------------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_QTY) a G_STACKMAX
-----------------------------> Inv: Establecer valor en (G_XSUMA, G_YSUMA, Z_ID) a DES_ID
-----------------------------> Inv: Establecer valor en (G_XSUMA, G_YSUMA, Z_QTY) a DES_RESTANTE
-----------------------------> Sistema: Establecer G_ID a 0
-----------------------------> Sistema: Establecer G_QTY a 0
-----------------------------> Sistema: Establecer G_X a 0
-----------------------------> Sistema: Establecer G_Y a 0
-----------------------------> Sistema: Establecer DES_SUMADO a 0
-----------------------------> Sistema: Establecer G_STACKMAX a 0
-----------------------------> Sistema: Establecer G_ZONE a 0
-----------------------------> Sistema: Establecer G_DRAGGING a Falso
-----------------------------> Sistema: Establecer G_DRAGacti a 0
-----------------------------> Sistema: Establecer UI_DIRTY a 1
-----------------------------> Sistema: Detener bucle
----------------+ Sistema: DES_ZONE ≠ G_ZONE
--------------------+ Sistema: DES_ID = 0
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_ID) a G_ID
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_QTY) a G_QTY
---------------------> HotBar: Establecer valor en (G_X, 0, Z_ID) a 0
---------------------> HotBar: Establecer valor en (G_X, 0, Z_QTY) a 0
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
--------------------+ Sistema: DES_ID ≠ G_ID
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_ID) a G_ID
---------------------> Inv: Establecer valor en (DES_X, DES_Y, Z_QTY) a G_QTY
---------------------> HotBar: Establecer valor en (G_X, 0, Z_ID) a DES_ID
---------------------> HotBar: Establecer valor en (G_X, 0, Z_QTY) a DES_QTY
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
------------+ Sistema: SLOT.ZONE = ZONE_INVBAR
----------------+ Sistema: DES_ZONE = G_ZONE
--------------------+ Sistema: DES_ID = 0
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_ID) a G_ID
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_QTY) a G_QTY
---------------------> HotBar: Establecer valor en (G_X, 0, Z_ID) a 0
---------------------> HotBar: Establecer valor en (G_X, 0, Z_QTY) a 0
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
--------------------+ Sistema: DES_ID ≠ G_ID
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_ID) a G_ID
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_QTY) a G_QTY
---------------------> HotBar: Establecer valor en (G_X, 0, Z_ID) a DES_ID
---------------------> HotBar: Establecer valor en (G_X, 0, Z_QTY) a DES_QTY
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
----------------+ Sistema: DES_ZONE ≠ G_ZONE
--------------------+ Sistema: DES_ID = 0
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_ID) a G_ID
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_QTY) a G_QTY
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_ID) a 0
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_QTY) a 0
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
--------------------+ Sistema: DES_ID ≠ G_ID
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_ID) a G_ID
---------------------> HotBar: Establecer valor en (DES_X, 0, Z_QTY) a G_QTY
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_ID) a DES_ID
---------------------> Inv: Establecer valor en (G_X, G_Y, Z_QTY) a DES_QTY
---------------------> Sistema: Establecer G_ID a 0
---------------------> Sistema: Establecer G_QTY a 0
---------------------> Sistema: Establecer G_X a 0
---------------------> Sistema: Establecer G_Y a 0
---------------------> Sistema: Establecer G_STACKMAX a 0
---------------------> Sistema: Establecer G_DRAGGING a Falso
---------------------> Sistema: Establecer G_DRAGacti a 0
---------------------> Sistema: Establecer UI_DIRTY a 1
---------------------> Sistema: Detener bucle
este es el json
{"is-c3-clipboard-data":true,"type":"events","items":[{"eventType":"group","disabled":false,"title":"click para tomar3","description":"","isActiveOnStart":true,"children":[{"eventType":"block","conditions":[{"id":"cursor-is-over-object","objectClass":"Mouse","parameters":{"object":"SLOT"}},{"id":"compare-boolean-eventvar","objectClass":"System","parameters":{"variable":"InvOpen"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"SLOT.ZONE","comparison":0,"second-value":"ZONE_INV"}}],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_ID","value":"Inv.At(SLOT.POSX,SLOT.POSY,Z_ID)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_QTY","value":"Inv.At(SLOT.POSX,SLOT.POSY,Z_QTY)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_X","value":"SLOT.POSX"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_Y","value":"SLOT.POSY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_ZONE","value":"SLOT.ZONE"}}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"SLOT.ZONE","comparison":0,"second-value":"ZONE_INVBAR"}}],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_ID","value":"HotBar.At(SLOT.POSX,SLOT.POSY,Z_ID)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_QTY","value":"HotBar.At(SLOT.POSX,SLOT.POSY,Z_QTY)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_X","value":"SLOT.POSX"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_Y","value":"SLOT.POSY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_ZONE","value":"SLOT.ZONE"}}]}]},{"eventType":"block","conditions":[{"id":"cursor-is-over-object","objectClass":"Mouse","parameters":{"object":"SLOT"},"isInverted":true},{"id":"compare-boolean-eventvar","objectClass":"System","parameters":{"variable":"InvOpen"}}],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_ZONE","value":"0"}}]},{"eventType":"block","conditions":[{"id":"on-object-clicked","objectClass":"Mouse","parameters":{"mouse-button":"left","click-type":"clicked","object-clicked":"SLOT"}},{"id":"compare-boolean-eventvar","objectClass":"System","parameters":{"variable":"InvOpen"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"G_DRAGacti","comparison":0,"second-value":"0"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"SLOT.ZONE","comparison":0,"second-value":"ZONE_INV"}},{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":4,"second-value":"0"}}],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"Inv.At(SLOT.POSX,SLOT.POSY,Z_ID)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"Inv.At(SLOT.POSX,SLOT.POSY,Z_QTY)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"SLOT.POSX"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"SLOT.POSY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_IDSUMA","value":"Inv.At(SLOT.POSX,SLOT.POSY,Z_ID)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTYSUMA","value":"Inv.At(SLOT.POSX,SLOT.POSY,Z_QTY)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_XSUMA","value":"SLOT.POSX"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_YSUMA","value":"SLOT.POSY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ZONE","value":"SLOT.ZONE"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_ID","value":"0"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"SLOT.MAXSTACK"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKEABLE","value":"SLOT.STACKEABLE"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"true"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"1"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"SLOT.ZONE","comparison":0,"second-value":"ZONE_INVBAR"}},{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":4,"second-value":"0"}}],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"HotBar.At(SLOT.POSX,SLOT.POSY,Z_ID)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"HotBar.At(SLOT.POSX,SLOT.POSY,Z_QTY)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"SLOT.POSX"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"SLOT.POSY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_IDSUMA","value":"HotBar.At(SLOT.POSX,SLOT.POSY,Z_ID)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTYSUMA","value":"HotBar.At(SLOT.POSX,SLOT.POSY,Z_QTY)"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_XSUMA","value":"SLOT.POSX"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_YSUMA","value":"SLOT.POSY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ZONE","value":"SLOT.ZONE"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_ID","value":"0"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"SLOT.MAXSTACK"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKEABLE","value":"SLOT.STACKEABLE"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"true"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"1"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}}]}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"G_DRAGacti","comparison":0,"second-value":"1"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"SLOT.ZONE","comparison":0,"second-value":"ZONE_INV"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ZONE","comparison":0,"second-value":"G_ZONE"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":0,"second-value":"0"}},{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"G_DRAGacti","comparison":0,"second-value":"1"}}],"actions":[{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_ID","value":"0"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":1,"second-value":"G_ID"}},{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"G_DRAGacti","comparison":0,"second-value":"1"}}],"actions":[{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_ID","value":"DES_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_QTY","value":"DES_QTY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":0,"second-value":"G_ID"}}],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_SUMADO","value":"G_QTY+DES_QTY"}}],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_SUMADO","comparison":3,"second-value":"G_STACKMAX"}}],"actions":[{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_QTY","value":"DES_SUMADO"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_ID","value":"0"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_SUMADO","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ZONE","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_SUMADO","comparison":4,"second-value":"G_STACKMAX"}}],"actions":[{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_RESTANTE","value":"DES_SUMADO-G_STACKMAX"}}],"children":[{"eventType":"block","conditions":[],"actions":[{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_QTY","value":"G_STACKMAX"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_XSUMA","y":"G_YSUMA","z":"Z_ID","value":"DES_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_XSUMA","y":"G_YSUMA","z":"Z_QTY","value":"DES_RESTANTE"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"DES_SUMADO","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ZONE","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]}]}]}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ZONE","comparison":1,"second-value":"G_ZONE"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":0,"second-value":"0"}}],"actions":[{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_ID","value":"0"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":1,"second-value":"G_ID"}}],"actions":[{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"DES_X","y":"DES_Y","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_ID","value":"DES_ID"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_QTY","value":"DES_QTY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]}]}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"SLOT.ZONE","comparison":0,"second-value":"ZONE_INVBAR"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ZONE","comparison":0,"second-value":"G_ZONE"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":0,"second-value":"0"}}],"actions":[{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_ID","value":"0"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":1,"second-value":"G_ID"}}],"actions":[{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_ID","value":"DES_ID"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"G_X","y":"0","z":"Z_QTY","value":"DES_QTY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ZONE","comparison":1,"second-value":"G_ZONE"}}],"actions":[],"children":[{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":0,"second-value":"0"}}],"actions":[{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_ID","value":"0"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]},{"eventType":"block","conditions":[{"id":"compare-two-values","objectClass":"System","parameters":{"first-value":"DES_ID","comparison":1,"second-value":"G_ID"}}],"actions":[{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_ID","value":"G_ID"}},{"id":"set-at-xyz","objectClass":"HotBar","parameters":{"x":"DES_X","y":"0","z":"Z_QTY","value":"G_QTY"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_ID","value":"DES_ID"}},{"id":"set-at-xyz","objectClass":"Inv","parameters":{"x":"G_X","y":"G_Y","z":"Z_QTY","value":"DES_QTY"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_ID","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_QTY","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_X","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_Y","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_STACKMAX","value":"0"}},{"id":"set-boolean-eventvar","objectClass":"System","parameters":{"variable":"G_DRAGGING","value":"false"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"G_DRAGacti","value":"0"}},{"id":"set-eventvar-value","objectClass":"System","parameters":{"variable":"UI_DIRTY","value":"1"}},{"id":"stop-loop","objectClass":"System"}]}]}]}]}]}]}]}