{"gameJson":{"status":"success","data":{"entityTypeVariables":{"xPos":{"default":1,"dataType":"number"},"yPos":{"default":1,"dataType":"number"},"keyPressedA":{"default":false,"dataType":"boolean"},"keyPressedD":{"default":false,"dataType":"boolean"},"keyPressedS":{"default":false,"dataType":"boolean"},"keyPressedUp":{"default":false,"dataType":"boolean"},"keyPressedW":{"default":false,"dataType":"boolean"},"direction":{"default":"up","dataType":"string"},"DotBonus":{"default":1,"dataType":"number"},"key":{"default":"S","dataType":"string","key":"key","defaultKey":"key"},"slot":{"default":5,"dataType":"number","key":"slot","defaultKey":"slot"},"level":{"default":1,"dataType":"number"},"xPosOld":{"default":0,"dataType":"number"},"yPosOld":{"default":0,"dataType":"number"},"xPosNew":{"default":0,"dataType":"number"},"yPosNew":{"default":0,"dataType":"number"},"canPlace":{"default":false,"dataType":"boolean"},"ZoomOut":{"default":false,"dataType":"boolean"},"orientation":{"default":"up","dataType":"string"},"attackingUnit":{"dataType":"unit"},"stepsTaken":{"default":0,"dataType":"number"},"stepsToSwap":{"default":6,"dataType":"number"},"_owner":{"dataType":"unit"},"dialogueID":{"default":"none","dataType":"string"},"signNumber":{"default":"none","dataType":"string","key":"dialogueID","defaultKey":"signNumber"},"lastSignID":{"default":"none","dataType":"string"},"signActive":{"default":false,"dataType":"boolean"},"switchItemA":{"dataType":"item"},"switchItemB":{"dataType":"item"},"lastPressed":{"default":0,"dataType":"number"},"framesSinceLastPress":{"default":0,"dataType":"number"},"deathReason":{"dataType":"string"},"sfxTrigger":{"default":"none","dataType":"string"}},"shops":{},"animationTypes":{"dropped":{"name":"dropped","frames":[1],"framesPerSecond":0,"loopCount":0},"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0},"yPiFluUOV9":{"name":"down","frames":[2],"framesPerSecond":0,"loopCount":""},"e4roKatmUr":{"name":"up","frames":[4],"framesPerSecond":0,"loopCount":""},"C6fDncC5gs":{"name":"left","frames":[3],"framesPerSecond":0,"loopCount":""},"6PBffCGtdD":{"name":"right","frames":[2],"framesPerSecond":0,"loopCount":""},"PXQNOZf1KC":{"name":"none","frames":[6],"framesPerSecond":0,"loopCount":""},"use":{"loopCount":0,"framesPerSecond":0,"frames":[2],"name":"animation"},"cCzOFMFToz":{"name":"100%","frames":[1],"framesPerSecond":0,"loopCount":""},"xOcrYQ09v7":{"name":"80%","frames":[2],"framesPerSecond":0,"loopCount":""},"c14QMixa80":{"name":"60%","frames":[3],"framesPerSecond":0,"loopCount":""},"HghVd3zpaY":{"name":"New animation","frames":[4],"framesPerSecond":0,"loopCount":""},"UQ93lRy9L3":{"name":"20%","frames":[5],"framesPerSecond":0,"loopCount":""},"LR1OYwuygV":{"name":"40%","frames":[4],"framesPerSecond":0,"loopCount":""},"ug7i7NHK5N":{"name":"dead","frames":[5],"framesPerSecond":0,"loopCount":0},"shSrWsEiWx":{"name":"right up normal","frames":[22],"framesPerSecond":0,"loopCount":""},"dBU1Obr1wM":{"name":"alternative","frames":[9,10,11,12,13,14,15,16],"framesPerSecond":10,"loopCount":""},"jMYDnoMGa1":{"name":"forward","frames":[10],"framesPerSecond":0,"loopCount":""},"ueNpJbYpuu":{"name":"forward2x","frames":[8],"framesPerSecond":0,"loopCount":""},"ahXVsqztCE":{"name":"alternative2","frames":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"framesPerSecond":12,"loopCount":""},"NxrM9f6QBU":{"name":"turn right","frames":[7],"framesPerSecond":0,"loopCount":""},"VkEcoplyh2":{"name":"turn left","frames":[8],"framesPerSecond":0,"loopCount":""},"xDeMy1vtl8":{"name":"alternative3","frames":[12],"framesPerSecond":0,"loopCount":""},"Jb59fQD85k":{"name":"shot","frames":[9],"framesPerSecond":0,"loopCount":""}},"states":{"unselected":{"name":"unselected","animation":"none","body":"none","particles":{},"sound":{}},"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"},"selected":{"name":"selected","animation":"default","body":"selected","particles":{},"sound":{}},"dropped":{"name":"dropped","animation":"dropped","body":"dropped","particles":{},"sound":{}},"zTzPFYOZkc":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"},"xcrOPe2oWm":""},"map":{"originalTileHeight":64,"originalTileWidth":64,"width":64,"version":1,"type":"map","tilewidth":32,"tilesets":[{"tilewidth":32,"tileheight":32,"tilecount":5355,"spacing":0,"name":"tilesheet_complete","margin":0,"imagewidth":2720,"imageheight":2016,"image":"https://cache.modd.io/asset/spriteImage/1683425963142_tile_grid2-min.png","firstgid":1,"columns":85,"isMaped":true,"rows":63}],"tileheight":32,"tiledversion":"1.1.5","renderorder":"right-down","orientation":"orthogonal","nextobjectid":167,"layers":[{"y":0,"x":0,"width":64,"visible":true,"type":"tilelayer","opacity":1,"name":"floor","height":64,"data":[188,188,188,188,188,196,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,200,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,189,190,605,605,605,605,605,605,605,605,605,605,605,623,623,188,296,188,188,188,196,198,198,198,368,282,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,198,200,380,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,274,275,605,605,605,605,605,605,605,605,605,605,605,623,623,188,188,188,210,188,281,368,368,285,188,281,282,198,198,198,198,198,198,198,198,198,198,198,198,284,368,282,198,284,285,188,188,188,188,188,188,188,188,188,188,294,188,188,188,296,188,188,188,189,189,190,605,605,605,605,605,605,605,605,605,605,623,623,623,188,188,188,188,188,188,188,188,188,294,188,196,198,198,198,198,198,198,283,198,198,283,198,198,200,188,367,368,369,188,188,188,188,210,188,188,296,188,188,188,188,188,188,188,188,188,188,274,358,358,359,605,605,605,605,623,623,623,623,623,2312,2315,622,622,188,188,188,188,188,28,188,188,188,27,28,112,198,198,198,198,198,198,198,198,198,198,198,198,200,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,189,190,605,605,605,605,605,605,605,623,622,2396,2397,2398,2399,2484,622,622,188,188,188,188,196,198,200,188,27,112,198,198,198,198,284,368,282,198,198,198,198,198,198,198,114,28,28,29,188,188,188,188,188,188,188,188,188,188,210,188,188,188,188,188,274,358,358,359,605,605,605,605,605,605,605,623,622,622,2311,2399,2484,622,623,622,188,188,188,188,196,198,114,28,112,198,198,198,198,284,369,188,367,368,368,368,282,198,198,198,198,198,198,200,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,274,359,605,605,605,605,605,605,605,605,605,605,623,622,623,2311,2315,538,623,622,622,188,188,188,188,281,368,368,368,282,198,198,198,198,200,188,188,188,188,188,188,196,198,198,198,198,198,198,200,188,188,188,188,188,188,188,188,188,294,188,188,188,188,274,359,605,605,605,605,605,605,605,605,605,605,605,623,623,622,2311,2315,622,622,622,623,188,188,188,188,380,188,188,188,281,368,368,368,368,285,188,188,188,188,188,188,196,198,198,198,198,198,198,200,188,188,188,188,188,188,188,188,188,188,188,188,188,274,359,605,605,605,605,605,605,605,605,605,605,605,605,623,623,622,2396,2145,2144,622,623,623,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,196,198,198,198,198,198,198,200,188,296,188,188,188,188,188,188,188,188,188,188,274,359,605,605,605,605,605,605,605,605,605,605,605,605,605,623,623,623,623,2311,2229,2144,622,623,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,196,198,198,198,198,198,198,200,188,188,188,188,188,188,188,188,188,188,188,188,190,605,605,605,605,605,605,605,605,605,605,605,605,0,0,623,623,623,622,2311,2313,2315,622,623,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,380,196,198,198,198,198,198,284,285,188,188,188,188,188,188,188,188,188,188,188,274,359,605,605,605,605,605,605,605,605,605,605,0,0,538,538,622,623,622,2142,2227,2313,2315,623,623,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,196,198,198,198,284,368,369,188,188,188,188,188,188,188,188,188,188,188,274,359,605,605,605,605,605,605,605,605,605,605,0,538,538,623,623,623,538,2226,2227,2313,2399,2400,623,623,188,188,188,210,188,188,188,188,188,188,188,188,210,188,188,188,188,188,188,188,281,368,368,368,369,188,188,188,188,188,188,188,188,188,188,188,274,358,359,605,605,605,605,605,605,605,605,605,605,0,538,623,623,538,623,622,622,2311,2313,2399,2484,538,623,538,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,274,358,358,358,358,359,605,605,605,605,605,605,605,605,605,605,605,0,538,538,623,623,538,538,538,2226,2227,2313,2315,538,538,538,538,188,188,188,188,188,296,188,294,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,358,358,358,358,358,358,359,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,0,538,538,538,538,538,538,538,538,2311,2313,2399,2484,538,538,538,538,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,274,358,358,358,358,358,359,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,0,538,538,538,538,2143,2143,2143,2144,538,2311,2313,2229,2230,538,538,538,538,358,358,358,358,272,188,188,188,188,188,188,274,358,358,358,358,358,358,358,358,359,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,0,0,538,538,538,538,2227,2313,2312,2229,2229,2230,2396,2397,2313,2315,538,538,538,538,605,605,605,605,357,358,358,358,358,358,358,359,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,0,0,538,538,538,538,538,538,2312,538,538,2313,2313,2229,2143,2227,2313,2315,538,538,538,538,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,0,0,538,538,538,538,538,538,538,538,2313,2229,538,538,538,2313,2312,2313,2399,2484,538,538,538,538,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,0,0,538,538,538,538,538,538,538,538,538,538,538,2313,538,538,538,2483,2483,2483,2400,538,538,538,538,538,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,605,0,0,0,0,538,538,538,538,538,538,538,538,538,538,538,538,2227,2312,538,538,538,538,538,538,538,538,538,538,538,538,775,775,775,775,775,775,775,775,605,775,689,605,605,605,605,605,605,605,605,605,605,605,605,0,0,0,0,0,605,605,605,0,0,0,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,2227,2313,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,188,188,274,358,289,358,272,775,775,0,0,0,0,0,775,775,775,775,775,188,188,188,188,188,605,605,605,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,2313,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,188,274,359,289,289,289,186,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,605,605,605,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,188,190,289,289,289,289,186,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,605,605,605,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,188,104,105,289,289,289,186,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,605,605,605,605,301,301,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,188,188,275,289,289,289,271,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,605,605,301,301,301,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,188,190,289,289,289,289,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,274,275,289,289,289,289,289,289,289,188,358,358,358,358,358,272,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,289,289,271,358,272,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,271,272,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,538,538,538,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,186,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,538,538,538,538,538,538,538,538,538,538,538,538,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,186,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,538,538,538,538,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,186,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,186,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,188,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,186,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,0,188,188,289,289,289,289,289,289,289,289,289,289,289,289,289,289,289,186,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,188,188,289,289,289,289,289,289,289,289,289,289,289,289,289,289,290,186,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,289,374,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,274,275,289,289,289,289,289,289,289,289,289,289,289,289,289,17,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,289,17,102,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,190,289,289,289,289,289,289,289,289,289,289,289,289,17,102,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,190,289,289,289,17,18,18,18,18,18,18,18,18,102,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,104,18,18,18,102,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,188,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,188,188,2050,2050,1876,188,188,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,188,2050,2050,2050,188,188,1871,1871,1871,188,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,2050,2050,0,0,0,1871,1871,1871,1871,1871,188,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,2050,2050,0,1871,1871,1871,1871,1871,1871,1871,1871,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,2050,2050,0,1871,1871,1871,1871,1871,1871,1871,1871,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,2050,2050,0,1871,1871,1871,1871,1871,1871,1871,1871,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,301,2050,2050,0,0,0,0,0,0,0,0,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,301,301,188,188,301,301,301,301,301,301,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,301,301,301,301,301,301,188,188,188,188,188,188,188,188,188,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,2050,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188,188]},{"y":0,"x":0,"width":64,"visible":true,"type":"tilelayer","opacity":1,"name":"floor2","height":64,"data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1083,0,2648,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2152,2153,2153,2240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1084,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2152,2237,2323,2322,2325,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,684,685,0,776,0,0,0,1090,0,0,0,0,0,0,0,0,0,0,0,0,0,2766,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1084,0,2321,2238,2322,2409,2410,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,776,0,0,769,770,0,0,0,0,0,1087,0,1086,0,0,0,0,1083,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2683,0,0,0,0,0,0,0,2321,2408,2322,2494,0,0,0,0,0,0,0,3191,1089,3189,0,0,3189,0,0,0,0,0,0,0,853,854,855,856,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2492,2407,2325,0,0,0,0,0,0,0,1090,0,0,0,1089,1095,1179,0,1261,0,0,0,0,0,0,0,2313,2315,0,0,0,0,0,0,1260,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1262,0,0,0,0,2492,2494,0,0,0,0,0,0,0,0,0,1177,1095,1095,1095,0,1090,1095,0,0,0,0,0,0,0,2313,2315,0,0,0,2164,2165,2165,2166,2164,2165,2165,2165,0,0,0,0,0,0,0,0,0,0,1262,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1090,0,1095,0,0,0,1177,0,0,1095,0,0,0,0,0,0,0,2313,2315,0,0,0,2249,2250,2250,2251,2249,2250,2250,2421,0,0,0,0,0,0,0,0,1180,0,0,0,0,0,0,0,0,0,0,0,1084,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1089,1095,0,0,1095,0,0,0,0,0,0,0,0,2397,2228,2230,0,0,2335,2335,2334,2335,2334,2250,2250,2337,0,0,0,0,1175,1257,0,1262,0,0,0,1084,0,0,0,0,0,0,0,0,0,0,0,0,0,1082,0,0,1431,1432,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2313,2315,0,0,2421,2505,2505,2419,2250,2335,2334,2337,0,0,0,0,1180,0,0,0,0,0,0,0,0,0,0,0,0,2768,0,0,0,0,0,2364,2365,0,0,0,0,1099,0,0,0,0,0,1256,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,2333,2335,2250,2421,2422,0,0,0,0,0,0,0,1180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1186,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,0,1262,0,2333,2334,2420,2337,0,0,0,0,0,0,0,0,1260,0,1264,0,0,196,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,0,0,0,0,0,2418,2505,2505,2506,0,0,1180,0,1264,1180,0,0,1178,0,1180,0,0,281,0,0,0,0,1264,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,0,0,0,0,0,1262,0,0,0,0,0,0,0,0,1262,0,0,0,0,0,0,0,0,1264,0,1180,0,0,1264,1732,1649,1650,1099,0,0,0,0,0,0,0,1099,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1174,0,0,0,0,0,0,0,0,0,0,0,0,0,1502,1178,0,0,0,1256,0,1817,1819,1818,1736,0,0,1186,0,0,0,0,0,0,0,1186,0,0,0,0,0,0,0,0,0,861,0,2142,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1180,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1817,1818,1734,1819,1736,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,2226,2227,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1178,0,0,0,0,0,1180,0,0,0,0,0,1902,1734,1820,1734,1906,0,0,0,0,0,0,0,0,0,1254,0,0,0,0,0,0,0,861,0,0,2311,0,2399,2483,2397,0,0,0,0,0,0,0,0,0,0,1264,0,0,0,1264,0,0,1178,0,1262,0,0,0,0,0,1264,1180,0,0,0,1180,1264,0,0,0,1988,1989,1906,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,2311,0,0,2144,2482,2397,0,0,0,0,0,0,0,0,0,0,0,1262,0,0,0,0,0,0,0,0,1174,1180,0,0,0,1178,0,0,0,0,0,0,0,0,0,0,0,0,0,1186,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,2396,2397,0,2315,0,2482,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1255,0,0,0,1264,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,2142,2227,0,2315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,2226,2143,0,0,2399,2484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,861,0,0,0,0,0,0,0,0,0,0,0,2226,2227,2399,2483,2483,2484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1168,0,0,0,0,0,0,636,859,0,0,0,0,0,0,0,0,0,0,0,0,861,1169,0,0,603,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2311,2314,2315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1096,0,380,0,1268,0,0,0,0,0,0,0,0,0,1268,0,1435,1428,0,0,380,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2482,2483,2484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1096,0,1085,0,0,1188,0,0,1096,0,0,0,0,0,1093,0,0,0,0,0,1096,0,1168,0,0,0,0,0,0,797,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,202,203,0,0,0,0,0,0,0,0,0,1093,0,0,0,0,296,0,0,0,0,0,688,301,0,0,0,969,969,883,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1093,0,0,202,203,289,289,289,289,205,119,119,120,0,0,0,0,0,0,0,0,1429,1430,0,0,380,859,0,0,0,0,777,0,968,969,969,969,883,0,0,0,0,0,0,0,0,0,0,0,0,0,1194,1195,0,0,0,0,0,0,0,0,0,0,0,0,0,0,287,289,204,289,204,289,289,204,289,205,119,119,119,119,119,120,0,1085,0,1252,0,0,0,130,131,860,860,861,0,0,0,0,0,0,968,969,969,969,883,0,0,0,0,0,0,0,0,0,0,0,0,0,938,0,0,0,0,0,0,0,1101,0,0,0,287,1095,0,1252,0,0,1095,0,0,203,204,289,289,204,289,205,119,120,0,0,0,296,130,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,968,969,969,883,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1268,0,287,1085,0,0,0,374,0,1180,0,0,1251,0,0,0,1255,0,204,205,206,0,0,0,299,324,0,241,0,0,0,0,239,0,0,241,0,0,0,0,0,0,0,968,969,969,883,883,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,296,0,287,289,0,1093,0,0,0,0,0,0,0,0,0,1093,0,1095,1180,0,291,0,0,0,299,0,0,0,0,413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,968,969,969,883,1191,1192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,287,289,0,1168,0,204,0,1256,0,0,374,0,0,1093,0,0,0,1252,291,0,0,0,299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,968,969,969,969,969,969,969,969,883,3703,0,0,0,0,0,0,0,287,288,0,1095,0,0,0,0,0,0,0,1180,0,0,0,1096,0,290,291,0,0,1188,299,0,413,0,0,0,0,413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,968,969,969,969,969,0,0,0,0,287,289,1251,0,0,0,1096,0,0,1169,0,0,1096,0,0,0,204,0,291,0,1258,0,470,385,0,324,0,0,0,241,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1096,0,0,372,373,289,0,0,1093,0,0,0,0,0,0,0,0,1253,0,1093,0,291,0,1093,0,1085,299,0,0,0,0,0,0,239,0,413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,372,373,288,289,0,0,374,0,0,0,0,374,0,0,0,1251,0,291,0,0,0,0,299,0,413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,296,0,457,287,0,374,0,1180,0,0,0,1093,0,0,0,0,0,289,290,291,0,0,1168,0,299,0,0,0,0,0,239,0,240,241,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1172,0,0,0,0,287,0,0,0,0,0,0,0,0,0,0,1096,0,0,374,375,376,0,0,296,0,299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1085,0,202,203,0,0,0,0,0,0,0,0,0,1093,1252,1085,290,375,376,0,0,0,0,0,299,413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1099,0,0,0,0,287,288,1253,1093,0,0,0,0,204,0,0,0,0,0,375,460,461,1256,0,0,0,0,470,385,0,0,413,0,0,241,0,0,413,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,287,0,0,0,1095,1169,1096,0,0,0,374,0,374,375,376,0,0,0,1096,0,1093,0,0,470,385,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1093,0,0,287,374,0,0,375,459,459,459,459,459,459,459,459,460,0,0,0,0,0,0,1085,0,1104,0,470,471,471,471,471,471,471,385,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,1086,458,459,459,459,460,1256,0,0,0,0,0,0,0,0,0,0,0,1258,0,0,0,0,0,0,0,0,0,0,0,0,0,470,471,385,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,296,0,0,0,1167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1167,0,0,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1099,0,0,0,0,1085,0,0,0,1096,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1096,118,119,119,119,119,119,119,206,0,0,0,1172,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1255,0,0,0,0,0,0,0,0,299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,118,203,0,0,0,0,1099,0,205,206,0,0,0,0,1100,0,0,1254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,470,471,385,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,118,119,203,0,0,0,0,0,0,0,0,205,206,0,0,0,0,0,0,0,0,0,0,0,1167,0,0,0,0,0,0,0,0,0,0,1172,0,0,0,0,0,470,471,385,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,203,374,0,0,0,0,0,0,0,0,0,0,205,119,119,206,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,374,0,205,119,119,206,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1258,0,0,299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,205,119,119,119,206,0,0,0,0,0,1254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,290,0,0,0,0,0,0,0,0,0,0,205,206,0,0,0,0,0,0,0,1168,0,0,0,0,0,0,0,0,0,0,0,0,299,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,205,206,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,470,385,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,374,0,0,0,0,0,0,0,0,0,0,205,206,0,0,0,0,0,0,0,0,0,0,0,872,873,873,873,874,0,0,0,470,471,385,0,0,0,0,0,0,0,0,387,385,0,0,0,0,0,0,0,0,0,0,0,0,0,290,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,0,0,872,873,873,873,873,873,957,1043,1043,1043,959,873,874,0,0,0,470,385,0,0,0,0,0,0,387,472,470,471,471,471,471,471,471,0,0,0,0,0,374,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,0,872,957,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,959,873,874,0,0,470,471,471,471,471,471,471,472,0,0,0,0,0,0,0,0,0,0,0,374,0,0,0,0,0,0,374,0,0,2764,0,288,0,0,0,0,0,0,0,0,0,291,0,1258,0,0,1041,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,959,874,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,374,0,0,0,0,291,0,0,0,0,1041,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,959,874,0,0,0,0,0,872,873,873,873,873,873,874,0,0,0,0,0,0,0,0,0,0,1648,1649,1649,1649,1650,0,0,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,0,1041,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,959,873,873,873,873,873,957,1043,1043,1043,1043,1043,959,873,874,0,0,0,0,1423,1424,0,1732,1733,1820,1734,1819,1735,1736,0,0,0,0,0,0,0,290,0,0,0,0,375,376,0,0,0,872,957,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,959,874,0,0,0,0,290,1648,1817,1818,1904,1820,1819,1734,1821,0,0,0,0,0,0,0,0,0,0,0,0,291,1255,0,0,0,1041,957,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1045,0,0,0,0,0,1817,1820,1818,1818,1819,1820,1904,1821,0,0,0,0,0,0,0,0,0,290,0,0,291,0,0,0,0,1041,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1043,1045,0]},{"width":64,"height":64,"y":0,"x":0,"visible":true,"type":"objectgroup","opacity":1,"objects":[],"name":"debris","draworder":"topdown"},{"y":0,"x":0,"width":64,"visible":true,"type":"tilelayer","opacity":1,"name":"walls","height":64,"data":[0,0,0,0,0,2558,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2562,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,2382,2383,2384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2562,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,692,0,0,2190,2191,0,0,2392,2386,2383,2467,0,2469,2470,0,0,0,0,0,0,0,0,0,0,0,0,2639,2727,0,0,2392,2474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,775,683,0,0,686,776,777,0,0,0,0,0,0,0,0,0,0,0,0,2555,0,0,2765,0,0,0,0,0,0,2677,0,0,2555,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,860,768,0,0,771,777,0,0,0,0,0,0,2382,2383,2384,0,0,2382,2723,2724,0,0,0,0,0,0,0,0,0,0,0,0,2555,2598,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1446,1703,1703,0,0,0,1703,1703,1703,1703,1703,1617,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,2551,0,2641,0,2726,2724,2677,0,0,0,0,0,0,0,0,0,0,0,0,0,2469,2383,2383,2637,0,0,0,0,1767,0,0,1516,1517,0,0,0,0,1531,0,0,0,0,0,0,0,0,2843,0,1531,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,2551,0,0,0,0,0,0,0,0,2639,2727,0,0,2392,2386,2723,2637,0,0,0,0,0,2680,2641,0,0,0,0,1852,1853,0,0,0,0,0,0,0,1531,0,0,0,0,0,0,0,0,0,0,1531,0,0,607,0,141,0,0,0,0,0,0,0,0,0,0,2636,2387,2390,2390,2644,0,0,0,0,2555,0,0,0,0,0,0,2551,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1531,0,0,0,0,0,0,0,0,0,0,1531,0,0,607,0,0,0,0,143,0,0,0,0,0,0,0,0,0,0,0,2729,2730,2386,2723,2723,2467,0,0,0,0,0,2948,2551,0,0,0,0,0,0,2556,0,0,0,0,0,0,0,0,1346,1347,0,0,0,1616,1703,1703,1703,1617,0,0,0,0,0,1619,1447,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2551,0,0,0,0,0,0,2556,0,0,0,2279,2280,0,0,0,0,0,0,0,0,0,0,0,0,1702,1703,3184,0,3186,1703,1704,0,0,0,607,0,0,0,0,0,0,0,0,0,2392,2390,2391,0,0,0,0,0,0,0,0,0,0,0,0,0,1765,1766,0,2641,0,0,0,2767,0,0,2556,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3690,0,0,0,0,0,0,0,0,0,0,691,775,692,0,0,145,0,0,0,0,0,0,0,0,2558,0,0,0,2382,2383,2383,2387,2393,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2641,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,775,776,860,777,0,0,0,0,0,0,315,0,0,0,0,2558,0,0,0,2555,0,0,0,0,0,0,0,0,0,0,0,0,2556,0,0,0,0,0,0,0,0,0,3518,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,776,860,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2476,2386,2383,2383,2467,0,0,0,0,0,0,0,0,0,0,0,0,2469,2383,2383,2387,2393,0,0,0,0,0,0,0,3520,0,0,0,0,0,0,0,2599,0,0,0,0,0,0,3690,0,691,776,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,776,0,0,0,0,3629,3630,0,0,0,0,0,0,3705,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,776,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2358,2359,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3519,0,0,0,0,691,776,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3519,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,775,776,861,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,775,776,860,861,0,0,0,0,0,0,0,0,0,0,0,0,0,3798,3799,0,0,0,0,0,0,0,2190,2191,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,775,776,860,861,0,0,0,0,0,0,3629,3630,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,775,776,860,861,0,0,0,3796,3797,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,691,775,775,775,776,860,861,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3794,0,0,0,0,3788,0,0,775,775,775,775,775,775,775,775,775,775,689,0,0,0,0,0,0,0,0,0,0,0,0,691,775,775,775,778,0,0,0,779,775,775,776,860,860,860,861,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,860,860,860,860,860,860,860,860,860,860,774,775,775,775,775,775,775,775,775,775,775,775,775,776,860,860,860,863,0,0,0,864,860,860,861,0,0,0,0,0,3787,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,860,860,860,860,860,860,860,860,860,860,860,860,861,0,0,0,603,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,318,0,0,0,0,0,0,0,0,0,3705,0,0,0,3966,3967,3968,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,603,0,0,0,521,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3702,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,603,0,1591,1592,0,691,692,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,937,938,939,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1344,1345,0,0,0,0,689,1676,1677,691,776,777,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,941,938,1195,0,1191,1278,942,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,774,775,775,776,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1195,0,0,0,0,0,1191,1192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,859,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,316,0,0,0,0,0,937,1195,0,0,1194,0,1192,0,0,1191,939,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1106,0,0,0,1106,0,1110,0,0,0,1110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,325,0,0,327,0,0,1191,240,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1277,1192,0,0,1024,938,1022,0,0,1194,1279,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1194,1195,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,328,0,0,0,0,328,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1026,1278,1192,0,1194,1278,1027,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,328,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1277,1278,1279,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1021,325,240,240,0,0,0,328,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327,0,0,0,0,0,325,1195,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,328,0,0,327,0,0,240,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,327,0,0,328,0,0,0,0,0,328,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,328,0,0,0,0,0,327,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1191,240,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2599,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2129,2213,2213,2127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2129,2130,0,0,2126,2127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2129,2213,2214,0,0,0,0,2212,2127,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2045,0,0,0,0,0,0,0,2041,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2045,0,0,0,0,0,0,0,2041,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2045,0,0,0,0,0,0,0,2041,0,0,0,0,0,0,0,0,1510,1511,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2849,2850,2850,2850,2850,2851,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1959,1873,1873,1873,1873,1873,1873,1873,1969,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2849,3184,0,0,3186,3361,0,0,0,0,0,0,2937,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2933,0,0,0,0,0,0,0,0,0,0,0,0,0,3359,2850,2851,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3017,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2937,0,0,0,0,0,0,0,0,2849,3184,0,0,3186,2851,0,0,0,0,0,0,0,1510,1511,0,0,0,0,0,2763,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2937,0,0,0,2849,3360,3360,3361,0,0,0,0,0,0,3359,3360,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3359,3360,3361,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1338,1339,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3193,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1508,1509,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3017,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"y":0,"x":0,"width":64,"visible":true,"type":"tilelayer","opacity":1,"name":"trees","height":64,"data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2513,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2610,2608,0,0,0,0,0,0,1099,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2695,2693,0,0,0,0,0,0,0,0,0,0,0,0,0,1768,0,1516,1517,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2693,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2693,0,0,0,0,0,0,0,2471,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1346,1347,0,0,0,0,0,0,0,0,0,3099,0,3101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,230,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2471,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2514,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3544,3545,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2273,2274,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3713,3714,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3544,3545,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,233,0,0,0,0,0,0,0,0,0,0,0,0,0,3881,3882,3883,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1350,1351,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,435,522,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1344,1345,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,231,0,0,0,0,0,0,321,321,0,56,0,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,141,1087,143,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,227,0,230,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,315,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,321,0,0,0,0,0,0,1194,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,0,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2514,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3099,0,0,3101,2932,0,0,0,0,0,0,2852,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2932,0,0,0,0,0,0,0,0,0,0,0,0,0,2852,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2932,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2852,0,0,0,0,0,0,0,0,0,3099,0,0,3101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2852,0,0,0,0,0,0,2932,0,0,0,0,0,0,2852,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2852,0,2848,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1338,1339,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2932,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}],"infinite":false,"height":64},"buffTypes":{"canPenetrate":{"unit":"boolean","chance":0.05},"canPushDebris":{"unit":"boolean","chance":0.05},"height":{"unit":"percentage","chance":0.2,"maxBonus":0.3,"minBonus":0.05},"maxStamina":{"unit":"integer","chance":0.1,"maxBonus":120,"minBonus":20},"movementSpeed":{"unit":"integer","chance":0.02,"maxBonus":5,"minBonus":1},"immunity":{"unit":"percentage","chance":0.1,"maxBonus":0.2,"minBonus":0.05},"slowChance":{"unit":"percentage","chance":0.05,"maxBonus":0.1,"minBonus":0.02},"stunChance":{"unit":"percentage","chance":0.05,"maxBonus":0.1,"minBonus":0.02},"recoilForce":{"unit":"integer","chance":0.04,"maxBonus":8,"minBonus":0},"bulletForce":{"unit":"percentage","chance":0.07,"maxBonus":1,"minBonus":0.1},"ammoTotal":{"unit":"percentage","chance":0.2,"maxBonus":0.3,"minBonus":0},"ammoSize":{"unit":"percentage","chance":0.1,"maxBonus":0.3,"minBonus":0},"distanceEnd":{"unit":"percentage","chance":0.3,"maxBonus":500,"minBonus":100},"fireRate":{"unit":"percentage","chance":0.15,"maxBonus":-0.3,"minBonus":0},"reloadRate":{"unit":"percentage","chance":0.1,"maxBonus":-0.3,"minBonus":0}},"projectileTypes":{"zhp6qHTMHf":{"inventoryImage":"https://cache.modd.io/asset/spriteImage/1683328280481_image_2023-05-06_011119584.png","name":"New Projectile","attributes":{},"variables":{},"states":{"zTzPFYOZkc":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"animations":{"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0}},"bodies":{"default":{"bullet":true,"name":"default","type":"dynamic","width":10,"height":24,"z-index":{"layer":3,"depth":1},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":true,"allowSleep":false,"collidesWith":{"units":true,"items":true,"projectiles":false,"walls":true,"debris":false},"angularDamping":1,"linearDamping":0,"rotationSpeed":1,"spriteScale":1,"fixtures":[{"density":1,"friction":0.01,"restitution":0.01,"shape":{"type":"rectangle"},"isSensor":true}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0}}},"destroyTimer":1500,"cellSheet":{"columnCount":1,"rowCount":1,"url":"https://cache.modd.io/asset/spriteImage/1682774834159_arrow-up.png"},"lifeSpan":1500,"effects":{"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""}},"destroyOnContactWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":true},"scripts":{}},"Ur45dU9hi2":{"inventoryImage":"","name":"Fireball","attributes":{},"variables":{},"states":{"zTzPFYOZkc":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"animations":{"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0}},"bodies":{"default":{"bullet":true,"name":"default","type":"dynamic","width":21,"height":30,"z-index":{"layer":3,"depth":1},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":true,"allowSleep":false,"collidesWith":{"units":true,"items":true,"projectiles":false,"walls":true,"debris":false},"angularDamping":1,"linearDamping":0,"rotationSpeed":1,"spriteScale":1,"fixtures":[{"density":1,"friction":0.01,"restitution":0.01,"shape":{"type":"rectangle"},"isSensor":true}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0}}},"destroyTimer":1500,"cellSheet":{"columnCount":1,"rowCount":1,"url":"https://cache.modd.io/asset/spriteImage/1588718525073_Fire_Ball.png"},"lifeSpan":1500,"effects":{"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""}},"destroyOnContactWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":true},"scripts":{},"confinedWithinMapBoundaries":true}},"itemTypes":{"t607ZcW20A":{"controls":{"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"permittedInventorySlots":[],"undroppable":false,"canMerge":true,"backpackAllowed":true},"frames":{},"bulletStartPosition":{"rotation":0,"y":0,"x":0},"name":"Star","handle":"","attributes":{"4eRokBctSq":{"name":"pickUpValue","min":0,"max":5,"dataType":"","value":5,"regenerateSpeed":0,"isVisible":["unitBarFriendly","unitBarNeutral","unitBarHostile"],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"MhAcN8ngjF":{"name":"builderReward","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":"0.1","isVisible":["unitBarFriendly","unitBarNeutral","unitBarHostile"],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"w1hyUME41P":{"name":"secToDeplete","min":0,"max":100,"dataType":"","value":8,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"kCDgANucqE":{"name":"creationTime","min":0,"max":999999,"dataType":"time","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"variables":{"_owner":{"dataType":"unit"}},"price":{"playerAttributes":{},"requiredItemTypes":{}},"cellSheet":{"url":"https://cache.modd.io/asset/spriteImage/1683164233293_star.png","rowCount":1,"columnCount":5},"inventoryImage":null,"isStackable":false,"isPurchasable":false,"canBePurchasedBy":[],"isGun":false,"bulletDestroyedOnCollisionWithWall/unitType":"raycast","type":"consumable","hits":[],"states":{"selected":{"name":"selected","animation":"default","body":"selected","particles":{},"sound":{}},"unselected":{"name":"unselected","animation":"none","body":"none","particles":{},"sound":{}},"dropped":{"name":"dropped","animation":"default","body":"dropped","particles":{},"sound":{}}},"animations":{"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0},"cCzOFMFToz":{"name":"100%","frames":[1],"framesPerSecond":"0.5","loopCount":1},"xOcrYQ09v7":{"name":"80%","frames":[1,2],"framesPerSecond":"0.5","loopCount":1},"c14QMixa80":{"name":"60%","frames":[2,3],"framesPerSecond":0,"loopCount":1},"UQ93lRy9L3":{"name":"20%","frames":[4,5],"framesPerSecond":"0.5","loopCount":1},"LR1OYwuygV":{"name":"40%","frames":[3,4],"framesPerSecond":"0.5","loopCount":1}},"bodies":{"selected":{"name":"selected","type":"static","width":58,"height":58,"z-index":{"layer":3,"depth":2},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":false},"angularDamping":1,"linearDamping":5,"rotationSpeed":3,"spriteScale":1,"fixtures":[{"density":1,"friction":0.01,"restitution":0.01,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":30},"itemAnchor":{"x":0,"y":58},"bullet":false,"affectedByGravity":false},"dropped":{"bullet":false,"name":"dropped","type":"dynamic","width":42,"height":42,"z-index":{"layer":2,"depth":10},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":false,"items":true,"projectiles":false,"walls":true,"debris":false},"angularDamping":1,"linearDamping":1,"rotationSpeed":1,"spriteScale":"1.05","fixtures":[{"density":"1.8","friction":0,"restitution":"0.1","shape":{"type":"circle"},"isSensor":false}],"jointType":"none","unitAnchor":{"x":0,"y":56},"itemAnchor":{"x":0,"y":58},"affectedByGravity":false}},"hideIfUnaffordable":true,"projectileType":"","quantity":1,"maxQuantity":null,"description":null,"reloadRate":2800,"recoilForce":0,"fireRate":70,"bulletDestroyedOnCollisionWithWall/unitForce":14,"knockbackForce":0,"effects":{"use":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""},"reload":{"animation":"","sound":{}},"empty":{"animation":"","sound":{}}},"bulletDestroyedOnCollisionWithWall/unitStartPosition":{"x":0,"y":0,"rotation":0},"bulletDestroyedOnCollisionWithWall/unitDistance":1300,"penetration":false,"destroyTimer":100000,"particles":{},"damage":{},"sound":{},"canBeUsedBy":[],"isUsedOnPickup":true,"removeWhenEmpty":true,"bonus":{"consume":{"coin":0,"playerAttribute":{},"unitAttribute":{}},"passive":{"playerAttribute":{},"unitAttribute":{},"isDisabledInBackpack":false},"isConsumedImmediately":false},"cost":{},"buffTypes":[],"carriedBy":[],"lifeSpan":120000,"confinedWithinMapBoundaries":true,"projectileStreamMode":0,"ignoreServerStream":false,"scripts":{"qQm8neFZzj":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"currentTimeStamp"},{"function":"calculate","items":[{"operator":"%"},{"function":"currentTimeStamp"},1]}],"vars":[]},"variableName":"intFor","disabled":true,"vars":[]},{"type":"setEntityAttribute","attribute":"kCDgANucqE","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"kCDgANucqE","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"condition","conditions":[{"operator":"==","operandType":"number"},{"function":"calculate","items":[{"operator":"%"},{"function":"getEntityAttribute","attribute":"kCDgANucqE","entity":{"function":"thisEntity"}},{"function":"getEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"thisEntity"}}],"vars":[]},0],"then":[{"type":"setEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"setEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"runScript","scriptName":"qqRWN5Vvf4","isEntityScript":true,"runMode":0,"vars":[]},{"type":"createFloatingText","text":{"function":"concat","textA":"","textB":{"function":"concat","textA":{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":"","vars":[]},"vars":[]},"position":{"function":"getEntityPosition","entity":{"function":"thisEntity","vars":[]},"vars":[]},"color":"yellow","disabled":true,"vars":[]}],"else":[],"runMode":0,"vars":[]}],"name":"decrease value","parent":null,"key":"qQm8neFZzj","order":2},"wK16z2GEWU":{"triggers":[{"type":"entityAttributeBecomesZero"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"4eRokBctSq"],"then":[{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[]},"vars":[]}],"else":[],"vars":[]}],"name":"destroy","parent":"YNX41qn4Bf","key":"wK16z2GEWU","order":1},"qqRWN5Vvf4":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}},1]},{"function":"calculate","items":[{"operator":"%"},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}},1]}],"vars":[]},"variableName":"tempInt","runMode":0,"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt","vars":[]},5],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity","vars":[]},"animation":"cCzOFMFToz","runMode":0,"vars":[]}],"else":[],"runMode":0,"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt","vars":[]},4],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity","vars":[]},"animation":"xOcrYQ09v7","runMode":0,"vars":[]}],"else":[],"runMode":0,"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt","vars":[]},3],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity","vars":[]},"animation":"c14QMixa80","runMode":0,"vars":[]}],"else":[],"runMode":0,"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt","vars":[]},2],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity","vars":[]},"animation":"LR1OYwuygV","runMode":0,"vars":[]}],"else":[],"runMode":0,"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt","vars":[]},1],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity","vars":[]},"animation":"UQ93lRy9L3","runMode":0,"vars":[]}],"else":[],"runMode":0,"vars":[]}],"name":"animationHandler","parent":null,"key":"qqRWN5Vvf4","order":4},"VuC8DjR3lV":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"applyTorqueOnEntity","torque":{"function":"getRandomNumberBetween","min":-80,"max":80,"vars":[]},"entity":{"function":"thisEntity","vars":[]},"runMode":2,"vars":[]},{"type":"applyImpulseOnEntityXY","impulse":{"x":{"function":"getRandomNumberBetween","min":{"function":"calculate","items":[{"operator":"*"},{"function":"getVariable","variableName":"itemImpulse"},-1],"vars":[]},"max":{"function":"getVariable","variableName":"itemImpulse","vars":[]},"vars":[]},"y":{"function":"getRandomNumberBetween","min":{"function":"calculate","items":[{"operator":"*"},{"function":"getVariable","variableName":"itemImpulse"},-1],"vars":[]},"max":{"function":"getVariable","variableName":"itemImpulse","vars":[]},"vars":[]}},"entity":{"function":"thisEntity","vars":[]},"runMode":2,"vars":[]}],"name":"torque & impulse on spawn","parent":"YNX41qn4Bf","key":"VuC8DjR3lV","order":0},"YNX41qn4Bf":{"key":"YNX41qn4Bf","folderName":"create / destroy","parent":null,"order":3},"aoLfsrlNMJ":{"triggers":[{"type":"itemIsUsed"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getOwnerOfItem","entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getOwnerOfItem","entity":{"function":"thisEntity"}}},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}}],"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"runMode":0,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},{"type":"createFloatingText","text":{"function":"concat","textA":"+ ","textB":{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"position":{"function":"getEntityPosition","entity":{"function":"getOwnerOfItem","entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"color":"lightGreen","runMode":0,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},{"type":"condition","conditions":[{"operandType":"unitType","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"sbh8dWN9Pa"],"then":[{"type":"setEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"}},"entity":{"function":"thisEntity"}}},{"function":"getEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity"}}],"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"runMode":0,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},{"type":"createFloatingText","text":{"function":"concat","textA":"+ ","textB":{"function":"getEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"position":{"function":"getEntityPosition","entity":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"color":"lightGreen","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]}],"else":[],"disabled":false,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},{"type":"for","variableName":"intFor","start":1,"stop":6,"actions":[{"type":"updateItemQuantity","entity":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"unit":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getItemQuantity","item":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}}},{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"YMjbmDmXwn","entity":{"function":"thisEntity"}},1]}],"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]}],"disabled":true,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringItem","source":"trigger"}]}],"name":"give XP","parent":null,"key":"aoLfsrlNMJ","order":1}},"itemTypes":{"t607ZcW20A":{"scripts":{"HLNZ565cY5":{"name":"pick up"},"rXaby15fFD":{"name":"give XP"},"wJYENHTW1z":{"name":"created"}}}},"delayBeforeUse":0,"damageHitBox":{"width":60,"offsetX":0,"offsetY":50}},"rucjuZOoxx":{"controls":{"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"permittedInventorySlots":[],"undroppable":true,"canMerge":true,"backpackAllowed":true},"frames":{},"bulletStartPosition":{"rotation":0,"y":0,"x":0},"name":"key","handle":"","attributes":{"W0lr8hWl3b":{"name":"update","min":0,"max":1,"dataType":"","value":1,"regenerateSpeed":1,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"variables":{"direction":{"default":"left","dataType":"string"},"key":{"default":"Q","dataType":"string"},"slot":{"default":1,"dataType":"number"}},"price":{"playerAttributes":{},"requiredItemTypes":{}},"cellSheet":{"columnCount":8,"rowCount":1,"url":"https://cache.modd.io/asset/spriteImage/1683328039772_image_2023-05-06_010718743.png"},"inventoryImage":"https://cache.modd.io/asset/spriteImage/1683315010920_image_2023-05-05_213010415.png","isStackable":false,"isPurchasable":false,"canBePurchasedBy":[],"isGun":false,"bulletDestroyedOnCollisionWithWall/unitType":"raycast","hits":[],"states":{"selected":{"name":"selected","animation":"default","body":"selected","particles":{},"sound":{}},"unselected":{"name":"unselected","animation":"none","body":"none","particles":{},"sound":{}},"dropped":{"name":"dropped","animation":"default","body":"dropped","particles":{},"sound":{}}},"animations":{"default":{"framesPerSecond":0,"loopCount":0,"frames":[1],"name":"default"},"yPiFluUOV9":{"name":"down","frames":[3],"framesPerSecond":0,"loopCount":""},"e4roKatmUr":{"name":"up","frames":[4],"framesPerSecond":0,"loopCount":""},"C6fDncC5gs":{"name":"left","frames":[2],"framesPerSecond":0,"loopCount":""},"6PBffCGtdD":{"name":"right","frames":[1],"framesPerSecond":0,"loopCount":""},"PXQNOZf1KC":{"name":"none","frames":[6],"framesPerSecond":0,"loopCount":""},"jMYDnoMGa1":{"name":"forward","frames":[5],"framesPerSecond":0,"loopCount":""},"ueNpJbYpuu":{"name":"forward2x","frames":[6],"framesPerSecond":0,"loopCount":""},"NxrM9f6QBU":{"name":"turn right","frames":[7],"framesPerSecond":0,"loopCount":""},"VkEcoplyh2":{"name":"turn left","frames":[8],"framesPerSecond":0,"loopCount":""}},"bodies":{"selected":{"name":"selected","type":"none","width":22,"height":30,"z-index":{"layer":3,"depth":2},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":false},"angularDamping":1,"linearDamping":5,"rotationSpeed":3,"spriteScale":1,"fixtures":[{"density":1,"friction":0.01,"restitution":0.01,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":30},"itemAnchor":{"x":0,"y":58},"bullet":false,"affectedByGravity":false},"dropped":{"bullet":false,"name":"dropped","type":"dynamic","width":22,"height":30,"z-index":{"layer":1,"depth":2},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":false,"items":false,"projectiles":false,"walls":true,"debris":false},"angularDamping":1,"linearDamping":1,"rotationSpeed":1,"spriteScale":1,"fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"none","unitAnchor":{"x":0,"y":56},"itemAnchor":{"x":0,"y":58}}},"hideIfUnaffordable":true,"projectileType":"","quantity":99,"maxQuantity":99,"description":null,"reloadRate":2800,"recoilForce":0,"fireRate":100,"bulletDestroyedOnCollisionWithWall/unitForce":14,"knockbackForce":0,"effects":{"use":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""},"reload":{"animation":"","sound":{}},"empty":{"animation":"","sound":{}}},"bulletDestroyedOnCollisionWithWall/unitStartPosition":{"x":0,"y":0,"rotation":0},"bulletDestroyedOnCollisionWithWall/unitDistance":1300,"penetration":false,"destroyTimer":100000,"particles":{},"damage":{},"sound":{},"canBeUsedBy":[],"isUsedOnPickup":false,"removeWhenEmpty":false,"bonus":{"consume":{"coin":0,"playerAttribute":{},"unitAttribute":{}},"passive":{"playerAttribute":{},"unitAttribute":{},"isDisabledInBackpack":false},"isConsumedImmediately":false},"cost":{"quantity":1},"buffTypes":[],"carriedBy":[],"lifeSpan":null,"confinedWithinMapBoundaries":true,"projectileStreamMode":1,"ignoreServerStream":true,"scripts":{"eSyL35dleC":{"triggers":[{"type":"entityAttributeBecomesZero"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"sendChatMessage","message":"item update","disabled":true},{"type":"setItemName","name":{"function":"concat","textA":{"function":"concat","textA":"<b></b>","textB":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"HPlfCar4N0","key":"key"}},"entity":{"function":"thisEntity"}}},"textB":{"function":"concat","textA":":  ","textB":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"entity":{"function":"thisEntity"}}}},"item":{"function":"thisEntity"}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"up"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"e4roKatmUr"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683251645000_up.png","item":{"function":"thisEntity"},"comment":"up"}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"left"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"C6fDncC5gs"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683251863845_left.png","item":{"function":"thisEntity"},"comment":"up"}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"right"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"6PBffCGtdD"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683251690306_right.png","item":{"function":"thisEntity"},"comment":"up"}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"down"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"yPiFluUOV9"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683251673340_down.png","item":{"function":"thisEntity"},"comment":"down"}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"none"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"PXQNOZf1KC"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1682780513456_none.png","item":{"function":"thisEntity"},"comment":"none"}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"forward"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"jMYDnoMGa1"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683251738570_forward.png","item":{"function":"thisEntity"},"comment":"none"}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"forward2x"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"ueNpJbYpuu"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683251755438_forward2.png","item":{"function":"thisEntity"},"comment":"none"}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"turn left"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"VkEcoplyh2"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683328280481_image_2023-05-06_011119584.png","item":{"function":"thisEntity"},"comment":"none"}],"else":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"turn right"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"NxrM9f6QBU"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683328392052_image_2023-05-06_011311384.png","item":{"function":"thisEntity"},"comment":"none"}],"else":[]}],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"shot"],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"VkEcoplyh2"},{"type":"changeItemInventoryImage","url":"https://cache.modd.io/asset/spriteImage/1683328280481_image_2023-05-06_011119584.png","item":{"function":"thisEntity"},"comment":"none"}],"else":[],"isExpanded":{"self":true}},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"thisEntity"},"value":1}],"name":"update animation & name","parent":null,"key":"eSyL35dleC","order":2},"J7g6cYx682":{"triggers":[{"type":"itemIsUsed"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"makeUnitSelectItemAtSlot","unit":{"function":"getOwnerOfItem","entity":{"function":"thisEntity"}},"slotIndex":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"slot","dataType":"number","entity":"HPlfCar4N0","key":"slot"}},"entity":{"function":"thisEntity"}},"disabled":false,"runMode":0},{"type":"setVariable","value":{"function":"getOwnerOfItem","entity":{"function":"thisEntity"}},"variableName":"tempUnit"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"lastPressed","dataType":"number","entity":"sbh8dWN9Pa","key":"lastPressed"}},"value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"slot","dataType":"number","entity":"rucjuZOoxx","key":"slot"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"runOnClient":true,"runMode":1,"comment":"for visual keypress feedback"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"value":0,"runOnClient":true,"runMode":1},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getItemQuantity","item":{"function":"thisEntity"}},1],"then":[{"type":"updateItemQuantity","entity":{"function":"thisEntity"},"quantity":0,"comment":"idk why this has to be done","disabled":false}],"else":[],"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getItemQuantity","item":{"function":"thisEntity"}},0],"then":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"deathReason","dataType":"string","entity":"sbh8dWN9Pa","key":"deathReason"}},"value":"tried using an empty key"},{"type":"setEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit"},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit"}},1]}},{"type":"return"}],"else":[],"isExpanded":{"self":true},"comment":"ouchy empty"},{"type":"updateItemQuantity","entity":{"function":"thisEntity"},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getItemQuantity","item":{"function":"thisEntity"}},1]},"comment":"idk why this has to be done","disabled":false},{"type":"updateItemQuantity","entity":{"function":"thisEntity"},"quantity":{"function":"calculate","items":[{"operator":"-"},{"function":"getItemQuantity","item":{"function":"thisEntity"}},1]},"disabled":false,"runMode":0},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"up"],"then":[{"type":"runScript","scriptName":"TwAAbvvmX4","isEntityScript":false}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"left"],"then":[{"type":"runScript","scriptName":"iSffYXq2No","isEntityScript":false}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"right"],"then":[{"type":"runScript","scriptName":"odtG9JeY14","isEntityScript":false}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"down"],"then":[{"type":"runScript","scriptName":"MkX3iOo0zS","isEntityScript":false}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"forward"],"then":[{"type":"runScript","scriptName":"RbQffvY3OJ","isEntityScript":false}],"else":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"forward2x"],"then":[{"type":"runScript","scriptName":"RbQffvY3OJ","isEntityScript":false},{"type":"setTimeOut","duration":100,"actions":[{"type":"runScript","scriptName":"RbQffvY3OJ","isEntityScript":false}]}],"else":[]}],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"turn left"],"then":[{"type":"setVariable","value":"left","variableName":"tempStr"},{"type":"runScript","scriptName":"MmayLdRM6q","isEntityScript":false}],"else":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"turn right"],"then":[{"type":"setVariable","value":"right","variableName":"tempStr"},{"type":"runScript","scriptName":"MmayLdRM6q","isEntityScript":false}],"else":[]}],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"thisEntity"}},"none"],"then":[{"type":"updateItemQuantity","entity":{"function":"getTriggeringItem"},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getItemQuantity","item":{"function":"getTriggeringItem"}},1]},"comment":"return one usage since item wasn't used","disabled":true}],"else":[],"isExpanded":{"self":false}}],"name":"use item","parent":null,"key":"J7g6cYx682","order":2}},"itemTypes":{"avIk3kXa8A":{"scripts":{"shkYEe0Sfp":{"name":"use item"}}}},"delayBeforeUse":0,"damageHitBox":{"width":60,"offsetX":0,"offsetY":50},"type":"consumable","bulletType":"projectile","bulletForce":14,"deployMethod":"setVelocity"},"TanIDE8v59":{"controls":{"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"permittedInventorySlots":[],"undroppable":false,"canMerge":true,"backpackAllowed":true},"frames":{},"bulletStartPosition":{"rotation":0,"y":0,"x":0},"name":"Stick","handle":"","attributes":{"4eRokBctSq":{"name":"pickUpValue","min":0,"max":5,"dataType":"","value":5,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"MhAcN8ngjF":{"name":"builderReward","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":"0.1","isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"w1hyUME41P":{"name":"secToDeplete","min":0,"max":100,"dataType":"","value":8,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"kCDgANucqE":{"name":"creationTime","min":0,"max":999999,"dataType":"time","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"variables":{"_owner":{"dataType":"unit"}},"price":{"playerAttributes":{},"requiredItemTypes":{}},"cellSheet":{"url":"https://cache.modd.io/asset/spriteImage/1683255427207_stick.png","rowCount":1,"columnCount":5},"inventoryImage":null,"isStackable":false,"isPurchasable":false,"canBePurchasedBy":[],"isGun":false,"bulletDestroyedOnCollisionWithWall/unitType":"raycast","hits":[],"states":{"selected":{"name":"selected","animation":"default","body":"selected","particles":{},"sound":{}},"unselected":{"name":"unselected","animation":"none","body":"none","particles":{},"sound":{}},"dropped":{"name":"dropped","animation":"default","body":"dropped","particles":{},"sound":{}}},"animations":{"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0},"cCzOFMFToz":{"name":"100%","frames":[1],"framesPerSecond":"0.5","loopCount":1},"xOcrYQ09v7":{"name":"80%","frames":[1,2],"framesPerSecond":"0.5","loopCount":1},"c14QMixa80":{"name":"60%","frames":[2,3],"framesPerSecond":0,"loopCount":1},"UQ93lRy9L3":{"name":"20%","frames":[4,5],"framesPerSecond":"0.5","loopCount":1},"LR1OYwuygV":{"name":"40%","frames":[3,4],"framesPerSecond":"0.5","loopCount":1}},"bodies":{"selected":{"name":"selected","type":"static","width":58,"height":58,"z-index":{"layer":5,"depth":10},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":false},"angularDamping":1,"linearDamping":5,"rotationSpeed":3,"spriteScale":1,"fixtures":[{"density":1,"friction":0.01,"restitution":0.01,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":30},"itemAnchor":{"x":0,"y":58},"bullet":false,"affectedByGravity":false},"dropped":{"bullet":false,"name":"dropped","type":"dynamic","width":42,"height":42,"z-index":{"layer":5,"depth":10},"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":false,"items":true,"projectiles":false,"walls":true,"debris":false},"angularDamping":1,"linearDamping":1,"rotationSpeed":1,"spriteScale":"1.05","fixtures":[{"density":"1.2","friction":0,"restitution":0,"shape":{"type":"circle"},"isSensor":false}],"jointType":"none","unitAnchor":{"x":0,"y":56},"itemAnchor":{"x":0,"y":58},"affectedByGravity":false}},"hideIfUnaffordable":true,"projectileType":"","quantity":1,"maxQuantity":null,"description":null,"reloadRate":2800,"recoilForce":0,"fireRate":70,"bulletDestroyedOnCollisionWithWall/unitForce":14,"knockbackForce":0,"effects":{"use":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""},"reload":{"animation":"","sound":{}},"empty":{"animation":"","sound":{}}},"bulletDestroyedOnCollisionWithWall/unitStartPosition":{"x":0,"y":0,"rotation":0},"bulletDestroyedOnCollisionWithWall/unitDistance":1300,"penetration":false,"destroyTimer":100000,"particles":{},"damage":{},"sound":{},"canBeUsedBy":[],"isUsedOnPickup":true,"removeWhenEmpty":true,"bonus":{"consume":{"coin":0,"playerAttribute":{},"unitAttribute":{}},"passive":{"playerAttribute":{},"unitAttribute":{},"isDisabledInBackpack":false},"isConsumedImmediately":false},"cost":{},"buffTypes":[],"carriedBy":[],"lifeSpan":120000,"confinedWithinMapBoundaries":true,"projectileStreamMode":0,"ignoreServerStream":false,"scripts":{"rXaby15fFD":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getOwnerOfItem","entity":{"function":"thisEntity"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getOwnerOfItem","entity":{"function":"thisEntity"}}},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}}]},"runMode":0},{"type":"createFloatingText","text":{"function":"concat","textA":"+ ","textB":{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}}},"position":{"function":"getEntityPosition","entity":{"function":"getOwnerOfItem","entity":{"function":"thisEntity"}}},"color":"lightGreen","runMode":0},{"type":"condition","conditions":[{"operandType":"unitType","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"}},"entity":{"function":"thisEntity"}},"sbh8dWN9Pa"],"then":[{"type":"setEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"}},"entity":{"function":"thisEntity"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"}},"entity":{"function":"thisEntity"}}},{"function":"getEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity"}}]},"runMode":0},{"type":"createFloatingText","text":{"function":"concat","textA":"+ ","textB":{"function":"getEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity"}}},"position":{"function":"getEntityPosition","entity":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"}},"entity":{"function":"thisEntity"}}},"color":"lightGreen"}],"else":[]},{"type":"for","variableName":"intFor","start":1,"stop":6,"actions":[{"type":"updateItemQuantity","entity":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getItemQuantity","item":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}}},{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"YMjbmDmXwn","entity":{"function":"thisEntity"}},1]}]}}],"disabled":true}],"name":"give XP","parent":"TCGG7KGfCq","key":"rXaby15fFD","order":0},"qQm8neFZzj":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"currentTimeStamp"},{"function":"calculate","items":[{"operator":"%"},{"function":"currentTimeStamp"},1]}]},"variableName":"intFor"},{"type":"setEntityAttribute","attribute":"kCDgANucqE","entity":{"function":"thisEntity"},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"kCDgANucqE","entity":{"function":"thisEntity"}},1]}},{"type":"condition","conditions":[{"operator":"==","operandType":"number"},{"function":"calculate","items":[{"operator":"%"},{"function":"getEntityAttribute","attribute":"kCDgANucqE","entity":{"function":"thisEntity"}},{"function":"getEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"thisEntity"}}]},0],"then":[{"type":"setEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity"},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"MhAcN8ngjF","entity":{"function":"thisEntity"}},1]}},{"type":"setEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}},1]}},{"type":"runScript","scriptName":"qqRWN5Vvf4","isEntityScript":true,"runMode":0},{"type":"createFloatingText","text":{"function":"concat","textA":"","textB":{"function":"concat","textA":{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}},"textB":""}},"position":{"function":"getEntityPosition","entity":{"function":"thisEntity"}},"color":"yellow","disabled":true}],"else":[],"runMode":0}],"name":"decrease value","parent":null,"key":"qQm8neFZzj","order":1},"wK16z2GEWU":{"triggers":[{"type":"entityAttributeBecomesZero"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute"}},"4eRokBctSq"],"then":[{"type":"destroyEntity","entity":{"function":"thisEntity"}}],"else":[]}],"name":"destroy","parent":"YNX41qn4Bf","key":"wK16z2GEWU","order":1},"qqRWN5Vvf4":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}},1]},{"function":"calculate","items":[{"operator":"%"},{"function":"getEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"thisEntity"}},1]}]},"variableName":"tempInt","runMode":0},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt"},5],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"cCzOFMFToz","runMode":0}],"else":[],"runMode":0},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt"},4],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"xOcrYQ09v7","runMode":0}],"else":[],"runMode":0},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt"},3],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"c14QMixa80","runMode":0}],"else":[],"runMode":0},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt"},2],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"LR1OYwuygV","runMode":0}],"else":[],"runMode":0},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"tempInt"},1],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"UQ93lRy9L3","runMode":0}],"else":[],"runMode":0}],"name":"animationHandler","parent":null,"key":"qqRWN5Vvf4","order":3},"VuC8DjR3lV":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"applyTorqueOnEntity","torque":{"function":"getRandomNumberBetween","min":-80,"max":80},"entity":{"function":"thisEntity"},"runMode":2},{"type":"applyImpulseOnEntityXY","impulse":{"x":{"function":"getRandomNumberBetween","min":{"function":"calculate","items":[{"operator":"*"},{"function":"getVariable","variableName":"itemImpulse"},-1]},"max":{"function":"getVariable","variableName":"itemImpulse"}},"y":{"function":"getRandomNumberBetween","min":{"function":"calculate","items":[{"operator":"*"},{"function":"getVariable","variableName":"itemImpulse"},-1]},"max":{"function":"getVariable","variableName":"itemImpulse"}}},"entity":{"function":"thisEntity"},"runMode":2}],"name":"torque & impulse on spawn","parent":"YNX41qn4Bf","key":"VuC8DjR3lV","order":0},"YNX41qn4Bf":{"key":"YNX41qn4Bf","folderName":"create / destroy","parent":null,"order":2},"TCGG7KGfCq":{"key":"TCGG7KGfCq","folderName":"not used","parent":null,"order":-1}},"itemTypes":{"t607ZcW20A":{"scripts":{"HLNZ565cY5":{"name":"pick up"},"rXaby15fFD":{"name":"give XP"},"wJYENHTW1z":{"name":"created"}}}},"delayBeforeUse":0,"damageHitBox":{"width":60,"offsetX":0,"offsetY":50},"type":"weapon"}},"music":{},"sound":{"7haH4SOJpZ":{"name":"Walk","file":"https://minotalen.github.io/grid/sfx/12_Step_wood_03.wav ","volume":26},"OpMUn6DWHj":{"name":"Hit","file":"https://minotalen.github.io/grid/sfx/15_Hit_on_wood_2.wav","volume":49},"zFQ43tk3JS":{"name":"bump into","file":"https://minotalen.github.io/grid/sfx/08_landing_on_stone_1.wav","volume":9},"fQiB68osTG":{"name":"star pickup","file":"https://minotalen.github.io/grid/sfx/013_Confirm_03.wav","volume":8},"meQgdYUxpx":{"name":"star drop","file":"https://minotalen.github.io/grid/sfx/03_fruit_drop_2.wav","volume":16}},"scripts":{"playerLeavesGame":{"triggers":[{"type":"playerLeavesGame"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"forAllUnits","unitGroup":{"player":{"function":"getTriggeringPlayer"},"function":"allUnitsOwnedByPlayer","fighter":{"function":"getTriggeringPlayer"}},"actions":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"deathReason","dataType":"string","entity":"sbh8dWN9Pa","key":"deathReason"}},"value":"closed the tab"},{"type":"setEntityAttribute","attribute":"health","entity":{"function":"selectedUnit"},"value":0},{"entity":{"function":"getLastCreatedUnit"},"type":"destroyEntity","disabled":false},{"entity":{"function":"selectedUnit"},"type":"destroyEntity","disabled":false},{"type":"saveUnitData","unit":{"function":"selectedUnit"},"disabled":true}],"comment":"when a player leaves, destroy all units owned by that player"},{"type":"savePlayerData","player":{"function":"getTriggeringPlayer"}}],"name":"player leaves","parent":"nMaxirJjvT","key":"playerLeavesGame","order":2},"initialize":{"isProtected":true,"triggers":[{"type":"gameStart"}],"actions":[{"type":"for","variableName":"intFor","start":0,"stop":50,"actions":[{"type":"spawnItem","itemType":"t607ZcW20A","position":{"function":"getRandomPositionInRegion","region":{"function":"getEntireMapRegion"}},"disabled":false}]},{"type":"createUnitAtPosition","unitType":"ZEgq7P7cTN","entity":{"function":"getVariable","variableName":"NPC units"},"position":{"function":"xyCoordinate","x":1616,"y":1104},"angle":0,"actionId":"tLSrhgKPOC"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"dialogueID","dataType":"string","entity":"ZEgq7P7cTN","key":"dialogueID"}},"value":"Intro"},{"type":"playEntityAnimation","entity":{"function":"getLastCreatedUnit"},"animation":"shSrWsEiWx"},{"type":"createUnitAtPosition","unitType":"ZEgq7P7cTN","entity":{"function":"getVariable","variableName":"NPC units"},"position":{"function":"xyCoordinate","x":2192,"y":224},"angle":0,"actionId":"cdN8aJGxX8"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"dialogueID","dataType":"string","entity":"ZEgq7P7cTN","key":"dialogueID"}},"value":"Intro2"},{"type":"playEntityAnimation","entity":{"function":"getLastCreatedUnit"},"animation":"shSrWsEiWx","disabled":true},{"type":"createEntityForPlayerAtPositionWithDimensions","entityType":"unitTypes","entity":"sbh8dWN9Pa","position":{"function":"xyCoordinate","x":1547,"y":1913},"angle":0,"height":50,"width":50,"player":{"variableName":"tempPlayer","function":"getVariable"},"actionId":"v8J1dhke9D"}],"name":"initialize","parent":"nMaxirJjvT","key":"initialize","order":0},"hM60Cm7iVG":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operator":">","operandType":"number"},{"function":"getNumberOfItemsPresent"},{"function":"getVariable","variableName":"mapItemLimit"}],"then":[{"type":"return"}],"else":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getPlayerCount"},1],"then":[{"type":"spawnItem","itemType":"t607ZcW20A","position":{"function":"getRandomPositionInRegion","region":{"function":"getEntireMapRegion"}},"disabled":false},{"type":"setEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"getLastCreatedItem"},"value":{"function":"getRandomNumberBetween","min":2,"max":8}},{"type":"setEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"getLastCreatedItem"},"value":{"function":"getRandomNumberBetween","min":7,"max":10}}],"else":[]},{"type":"spawnItem","itemType":"t607ZcW20A","position":{"function":"getRandomPositionInRegion","region":{"function":"getEntireMapRegion"}},"disabled":false},{"type":"setEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"getLastCreatedItem"},"value":{"function":"getRandomNumberBetween","min":2,"max":4}},{"type":"setEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"getLastCreatedItem"},"value":{"function":"getRandomNumberBetween","min":7,"max":10}},{"type":"spawnItem","itemType":"t607ZcW20A","position":{"function":"getRandomPositionInRegion","region":{"function":"getEntireMapRegion"}},"disabled":false},{"type":"setEntityAttribute","attribute":"4eRokBctSq","entity":{"function":"getLastCreatedItem"},"value":{"function":"getRandomNumberBetween","min":2,"max":4}},{"type":"setEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"getLastCreatedItem"},"value":{"function":"getRandomNumberBetween","min":7,"max":10}},{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"currentTimeStamp"},{"function":"calculate","items":[{"operator":"%"},{"function":"currentTimeStamp"},1]}]},"variableName":"intFor","disabled":true},{"type":"condition","conditions":[{"operator":"==","operandType":"number"},{"function":"calculate","items":[{"operator":"%"},{"function":"getVariable","variableName":"intFor"},3]},0],"then":[{"type":"condition","conditions":[{"operator":">=","operandType":"number"},{"function":"getPlayerCount"},1],"then":[{"type":"spawnItem","itemType":"t607ZcW20A","position":{"function":"getRandomPositionInRegion","region":{"function":"getEntireMapRegion"}},"disabled":true},{"type":"setVariable","value":{"function":"getLastCreatedUnit"},"variableName":"tempUnit","comment":"","disabled":true},{"type":"runScript","scriptName":"iWbDveNzoP","isEntityScript":false,"disabled":true}],"else":[],"disabled":false}],"else":[],"disabled":true}],"name":"spawn stars","parent":null,"key":"hM60Cm7iVG","order":10},"IYGHmU1fBx":{"key":"IYGHmU1fBx","folderName":"movement","parent":null,"order":4,"expanded":true},"TwAAbvvmX4":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getTriggeringUnit"},"variableName":"tempUnit"},{"type":"condition","conditions":[{"operator":">","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1],"then":[{"type":"runScript","scriptName":"LZgdtONCgM","isEntityScript":false},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"yPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"yPosNew"}},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1]}},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"up"},{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"e4roKatmUr"},{"type":"runScript","scriptName":"8CEkCzfKCF","isEntityScript":false}],"else":[]}],"name":"move up","parent":"IYGHmU1fBx","key":"TwAAbvvmX4","order":0},"8CEkCzfKCF":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getTriggeringUnit"},"variableName":"tempUnit","disabled":true},{"type":"runScript","scriptName":"Pbxhaiv7yb","isEntityScript":false,"disabled":true},{"type":"runScript","scriptName":"RejGqVpXAD","isEntityScript":false},{"type":"runScript","scriptName":"ACwWqkvk72","isEntityScript":false},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getVariable","variableName":"tempBool"},true],"then":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"deathReason","dataType":"string","entity":"sbh8dWN9Pa","key":"deathReason"}},"value":"walked into a wall"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"sfxTrigger","dataType":"string","entity":"sbh8dWN9Pa","key":"sfxTrigger"}},"value":"bump","comment":""},{"type":"setEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit"},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}}]}}],"else":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getVariable","variableName":"unitCollision"},true],"then":[{"type":"runScript","scriptName":"hPpDpeeMLk","isEntityScript":false},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"sfxTrigger","dataType":"string","entity":"sbh8dWN9Pa","key":"sfxTrigger"}},"value":"hit","comment":""}],"else":[{"type":"runScript","scriptName":"R0CJ83xc5G","isEntityScript":false},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"sfxTrigger","dataType":"string","entity":"sbh8dWN9Pa","key":"sfxTrigger"}},"value":"walk"}]},{"type":"sendChatMessageToPlayer","message":"Wall Collision","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}},"disabled":true}],"comment":"wall collision"},{"type":"runScript","scriptName":"pEnZnGi8lU","isEntityScript":false},{"type":"moveEntity","entity":{"function":"getVariable","variableName":"tempUnit"},"position":{"function":"xyCoordinate","x":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]},"y":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]}},"disabled":false}],"name":"moveTo(tempUnit)","parent":"IYGHmU1fBx","key":"8CEkCzfKCF","order":6},"MkX3iOo0zS":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getTriggeringUnit"},"variableName":"tempUnit"},{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridSize"}],"then":[{"type":"runScript","scriptName":"LZgdtONCgM","isEntityScript":false},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"yPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"yPosNew"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1]},"comment":""},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"down","comment":""},{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"yPiFluUOV9"},{"type":"runScript","scriptName":"8CEkCzfKCF","isEntityScript":false}],"else":[]}],"name":"move down","parent":"IYGHmU1fBx","key":"MkX3iOo0zS","order":1},"odtG9JeY14":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getTriggeringUnit"},"variableName":"tempUnit"},{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridSize"}],"then":[{"type":"runScript","scriptName":"LZgdtONCgM","isEntityScript":false},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"xPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"xPosNew"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1]},"comment":""},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"right"},{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"default"},{"type":"runScript","scriptName":"8CEkCzfKCF","isEntityScript":false},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"isPositionInWall","position":{"x":{"function":"calculate","items":[{"operator":"*"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getTriggeringUnit"}},1]},{"function":"getVariable","variableName":"gridStep"}]},"y":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getTriggeringUnit"}}}},false],"then":[],"else":[{"type":"sendChatMessageToPlayer","message":"You can't move there becaues that's inside a wall.","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}}},{"type":"updateItemQuantity","entity":{"function":"getItemCurrentlyHeldByUnit","entity":{"function":"getTriggeringUnit"}},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getItemQuantity","item":{"function":"getTriggeringItem"}},1]},"comment":"return one usage since item wasn't used"}],"disabled":true}],"else":[{"type":"updateItemQuantity","entity":{"function":"getItemCurrentlyHeldByUnit","entity":{"function":"getTriggeringUnit"}},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getItemQuantity","item":{"function":"getTriggeringItem"}},1]},"comment":"return one usage since item wasn't used","disabled":true}]}],"name":"move right","parent":"IYGHmU1fBx","key":"odtG9JeY14","order":3},"iSffYXq2No":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getTriggeringUnit"},"variableName":"tempUnit"},{"type":"condition","conditions":[{"operator":">","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1],"then":[{"type":"runScript","scriptName":"LZgdtONCgM","isEntityScript":false},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"xPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"xPosNew"}},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1]}},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"left"},{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"C6fDncC5gs"},{"type":"runScript","scriptName":"8CEkCzfKCF","isEntityScript":false}],"else":[]}],"name":"move left","parent":"IYGHmU1fBx","key":"iSffYXq2No","order":2},"iWbDveNzoP":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"comment","comment":"moves tempUnit to a random x/y position"},{"type":"runScript","scriptName":"YOBXiOj2Jd","isEntityScript":false},{"type":"moveEntity","entity":{"function":"getVariable","variableName":"tempUnit"},"position":{"function":"xyCoordinate","x":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]},"y":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]}},"disabled":false},{"type":"runScript","scriptName":"ACwWqkvk72","isEntityScript":false},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getVariable","variableName":"tempBool"},true],"then":[],"else":[{"type":"runScript","scriptName":"iWbDveNzoP","isEntityScript":false,"disabled":false},{"type":"sendChatMessageToPlayer","message":"Wall Collision","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}},"disabled":true}]}],"name":"spawnRandomPos(tempUnit)","parent":"XiIko1G3Xe","key":"iWbDveNzoP","order":1},"YOBXiOj2Jd":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"xPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"xPosNew"}},"value":{"function":"getRandomNumberBetween","min":8,"max":24},"comment":""},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"yPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"yPosNew"}},"value":{"function":"getRandomNumberBetween","min":4,"max":15},"comment":""},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getVariable","variableName":"alignToGrid"},true],"then":[],"else":[],"comment":"if alignToGrid is set true, the grid coordinates are aligned to the grid"},{"type":"setVariable","value":false,"variableName":"alignToGrid"},{"type":"runScript","scriptName":"ACwWqkvk72","isEntityScript":false},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getVariable","variableName":"tempBool"},true],"then":[{"type":"runScript","scriptName":"YOBXiOj2Jd","isEntityScript":false}],"else":[]}],"name":"randomPos(tempUnit)","parent":"XiIko1G3Xe","key":"YOBXiOj2Jd","order":0},"T30WaMKFZk":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchA"},"entity":{"function":"getTriggeringUnit"}}},"variableName":"switchADir","disabled":true},{"type":"setVariable","value":{"function":"getRandomNumberBetween","min":1,"max":6},"variableName":"switchA","comment":""},{"type":"setVariable","value":{"function":"getRandomNumberBetween","min":1,"max":6},"variableName":"switchB","comment":""},{"type":"condition","conditions":[{"operator":"!=","operandType":"number"},{"function":"getVariable","variableName":"switchA"},{"function":"getVariable","variableName":"switchB"}],"then":[{"type":"forAllPlayers","playerGroup":{"function":"humanPlayers"},"actions":[{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"selectedPlayer"}},"actions":[{"type":"condition","conditions":[{"operator":"!=","operandType":"unitType"},{"function":"getUnitTypeOfUnit","entity":{"function":"selectedUnit"}},"sbh8dWN9Pa"],"then":[{"type":"continue"}],"else":[]},{"type":"setVariable","value":{"function":"selectedUnit"},"variableName":"tempUnit"},{"type":"setVariable","value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchA"},"entity":{"function":"selectedUnit"}}},"variableName":"switchADir"},{"type":"setEntityVariable","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchA"},"entity":{"function":"selectedUnit"}},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchB"},"entity":{"function":"selectedUnit"}}}},{"type":"setEntityVariable","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchB"},"entity":{"function":"selectedUnit"}},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"value":{"function":"getVariable","variableName":"switchADir"},"comment":""},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchA"},"entity":{"function":"selectedUnit"}},"value":0},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchB"},"entity":{"function":"selectedUnit"}},"value":0}]}]},{"type":"updateUiTextForTimeForPlayer","target":"top","value":{"function":"concat","textA":"","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchA"},"entity":{"function":"getVariable","variableName":"tempUnit"}}},"textB":{"function":"concat","textA":{"function":"concat","textA":"⟷","textB":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"switchB"},"entity":{"function":"getVariable","variableName":"tempUnit"}}}},"textB":""}}},"player":{"function":"undefinedValue"},"time":3000},{"type":"updateUiTextForTimeForPlayer","target":"top","value":{"function":"concat","textA":"Switching ","textB":{"function":"concat","textA":{"function":"getVariable","variableName":"switchA"},"textB":{"function":"concat","textA":{"function":"concat","textA":" and ","textB":{"function":"getVariable","variableName":"switchB"}},"textB":"."}}},"player":{"function":"undefinedValue"},"time":3000,"disabled":true},{"type":"sendChatMessage","message":{"function":"concat","textA":"Switching ","textB":{"function":"concat","textA":{"function":"getVariable","variableName":"switchA"},"textB":{"function":"concat","textA":" and ","textB":{"function":"concat","textA":{"function":"getVariable","variableName":"switchB"},"textB":"..."}}}},"disabled":true}],"else":[]}],"name":"(old) switchKey","parent":"vRlDlpVw0c","key":"T30WaMKFZk","order":0},"cLu5acQ3PP":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"makeUnitSelectItemAtSlot","unit":{"function":"getOwnerOfItem","entity":{"function":"getTriggeringItem"}},"slotIndex":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"slot","dataType":"number","entity":"HPlfCar4N0","key":"slot"}},"entity":{"function":"getTriggeringItem"}}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"getTriggeringItem"}},"up"],"then":[{"type":"runScript","scriptName":"TwAAbvvmX4","isEntityScript":false}],"else":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"getTriggeringItem"}},"left"],"then":[{"type":"runScript","scriptName":"iSffYXq2No","isEntityScript":false}],"else":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"getTriggeringItem"}},"right"],"then":[{"type":"runScript","scriptName":"odtG9JeY14","isEntityScript":false}],"else":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"}},"entity":{"function":"getTriggeringItem"}},"down"],"then":[{"type":"runScript","scriptName":"MkX3iOo0zS","isEntityScript":false}],"else":[]},{"type":"updateItemQuantity","entity":{"function":"getTriggeringItem"},"quantity":{"function":"calculate","items":[{"operator":"-"},{"function":"getItemQuantity","item":{"function":"getTriggeringItem"}},1]}}],"name":"use item old","parent":"vRlDlpVw0c","key":"cLu5acQ3PP","order":2},"7f4jIoDqj2":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"currentTimeStamp"},{"function":"calculate","items":[{"operator":"%"},{"function":"currentTimeStamp"},1]}]},"variableName":"intFor"},{"type":"sendChatMessage","message":{"function":"concat","textA":{"function":"calculate","items":[{"operator":"%"},{"function":"getVariable","variableName":"intFor"},12]},"textB":"..."},"disabled":true},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"getVariable","variableName":"intFor"},{"function":"getVariable","variableName":"swapFrequency"}]},0],"then":[{"type":"runScript","scriptName":"T30WaMKFZk","isEntityScript":false}],"else":[]}],"name":"(old) force swap","parent":"vRlDlpVw0c","key":"7f4jIoDqj2","order":1},"iG3divrUxc":{"key":"iG3divrUxc","folderName":"wall collision","parent":null,"order":5,"expanded":true},"ACwWqkvk72":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"xPosNew"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]},"variableName":"tempX","comment":""},{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"yPosNew"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]},"variableName":"tempY"},{"type":"sendChatMessageToPlayer","message":{"function":"concat","textA":{"function":"getVariable","variableName":"tempX"},"textB":{"function":"concat","textA":",   ","textB":{"function":"concat","textA":{"function":"getVariable","variableName":"tempY"},"textB":"."}}},"player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true},{"type":"sendChatMessageToPlayer","message":"restoring old positions ","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"isPositionInWall","position":{"x":{"function":"getVariable","variableName":"tempX"},"y":{"function":"getVariable","variableName":"tempY"}}},true],"then":[{"type":"setVariable","value":true,"variableName":"tempBool"}],"else":[{"type":"setVariable","value":false,"variableName":"tempBool"}]}],"name":"isInsideWall(tempUnit), tempBool","parent":"iG3divrUxc","key":"ACwWqkvk72","order":0},"LZgdtONCgM":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"xPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"xPosNew"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0]},"comment":""},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"yPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"yPosNew"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0]},"comment":""},{"type":"sendChatMessageToPlayer","message":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"textB":{"function":"concat","textA":",   ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"textB":"loaded. "}}},"player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true}],"name":"XYPos.storeNew(tempUnit)","parent":"iG3divrUxc","key":"LZgdtONCgM","order":1},"R0CJ83xc5G":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"xPosNew"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0]},"comment":""},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"yPosNew"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0]},"comment":""},{"type":"sendChatMessageToPlayer","message":{"function":"concat","textA":{"function":"getVariable","variableName":"tempX"},"textB":{"function":"concat","textA":",   ","textB":{"function":"concat","textA":{"function":"getVariable","variableName":"tempY"},"textB":" loaded."}}},"player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true},{"type":"sendChatMessageToPlayer","message":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"9SDtGUOM4N","key":"xPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"textB":{"function":"concat","textA":",   ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"9SDtGUOM4N","key":"yPos"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"textB":" saved."}}},"player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true}],"name":"XYPos.saveToOld(tempUnit)","parent":"iG3divrUxc","key":"R0CJ83xc5G","order":2},"w9gN91BzMI":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"9SDtGUOM4N","key":"canPlace"}},"entity":{"function":"getTriggeringUnit"}},true],"then":[{"type":"showInputModalToPlayer","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}},"inputLabel":"Make user builder:"}],"else":[]}],"name":"builderPrompt","parent":"DefsTu5X6E","key":"w9gN91BzMI","order":2},"EMNDbZsAKN":{"triggers":[{"type":"playerCustomInput"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"forAllPlayers","playerGroup":{"function":"humanPlayers"},"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getPlayerName","entity":{"function":"selectedPlayer"}},{"function":"playerCustomInput","player":{"function":"getTriggeringPlayer"}}],"then":[{"type":"updateUiTextForTimeForPlayer","target":"center-lg","value":"You have been made builder. Place items with left click.","player":{"function":"selectedPlayer"},"time":5000,"disabled":false},{"type":"sendChatMessageToPlayer","message":"You have been made builder. Place items with left click.","player":{"function":"selectedPlayer"},"disabled":true},{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"selectedPlayer"}},"actions":[{"type":"setVariable","value":{"function":"selectedUnit"},"variableName":"tempUnit","disabled":false},{"type":"runScript","scriptName":"8wov7ofQfC","isEntityScript":false}]}],"else":[]}]}],"name":"builderByName","parent":"DefsTu5X6E","key":"EMNDbZsAKN","order":3},"nMaxirJjvT":{"key":"nMaxirJjvT","folderName":"init/join/leave","parent":null,"order":-1,"expanded":false},"XiIko1G3Xe":{"key":"XiIko1G3Xe","folderName":"functions","parent":null,"order":3,"expanded":true},"DefsTu5X6E":{"key":"DefsTu5X6E","folderName":"Wizard","parent":null,"order":2,"expanded":false},"vRlDlpVw0c":{"key":"vRlDlpVw0c","folderName":"scrap","parent":null,"order":8,"expanded":false},"Pbxhaiv7yb":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"up"],"then":[{"type":"playEntityAnimation","entity":{"function":"getTriggeringUnit"},"animation":"yPiFluUOV9"},{"type":"setEntityVariable","entity":{"function":"getTriggeringUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"up"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"right"],"then":[{"type":"playEntityAnimation","entity":{"function":"getTriggeringUnit"},"animation":"yPiFluUOV9"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"down"],"then":[{"type":"rotateEntityToRadiansLT","entity":{"function":"getVariable","variableName":"tempUnit"},"radians":180},{"type":"playEntityAnimation","entity":{"function":"getTriggeringUnit"},"animation":"yPiFluUOV9"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"left"],"then":[{"type":"rotateEntityToRadiansLT","entity":{"function":"getVariable","variableName":"tempUnit"},"radians":270},{"type":"playEntityAnimation","entity":{"function":"getTriggeringUnit"},"animation":"yPiFluUOV9"}],"else":[],"disabled":false}],"name":"updateOrientation(ttempUnit)","parent":"IYGHmU1fBx","key":"Pbxhaiv7yb","order":7},"PyqLvAT7c2":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":99999,"variableName":"lowestValue","comment":""},{"type":"forAllItems","itemGroup":{"function":"allItemsOwnedByUnit","entity":{"function":"getVariable","variableName":"tempUnit"}},"actions":[{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getItemQuantity","item":{"function":"selectedItem"}},{"function":"getVariable","variableName":"lowestValue"}],"then":[{"type":"setVariable","value":{"function":"selectedItem"},"variableName":"tempItem","comment":""},{"type":"setVariable","value":{"function":"getItemQuantity","item":{"function":"selectedItem"}},"variableName":"lowestValue"}],"else":[]}],"comment":"find the item with the fewest charges"},{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"calculate","items":[{"operator":"/"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}},2]},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"/"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}},2]},1]}]},"variableName":"tempInt","comment":""},{"type":"condition","conditions":[{"operator":"!=","operandType":"number"},{"function":"getVariable","variableName":"tempInt"},0],"then":[{"type":"updateItemQuantity","entity":{"function":"getVariable","variableName":"tempItem"},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"tempInt"},{"function":"getItemQuantity","item":{"function":"getVariable","variableName":"tempItem"}}]}},{"type":"updateItemQuantity","entity":{"function":"getVariable","variableName":"tempItem"},"quantity":{"function":"getMin","num1":{"function":"getItemMaxQuantity","item":{"function":"getVariable","variableName":"tempItem"}},"num2":{"function":"getItemQuantity","item":{"function":"getVariable","variableName":"tempItem"}}}},{"type":"createFloatingText","text":{"function":"concat","textA":"+ ","textB":{"function":"concat","textA":{"function":"getVariable","variableName":"tempInt"},"textB":{"function":"concat","textA":" ","textB":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"entity":{"function":"getVariable","variableName":"tempItem"}}}}},"position":{"function":"getEntityPosition","entity":{"function":"getVariable","variableName":"tempUnit"}},"color":"lightGreen"}],"else":[]}],"name":"refreshLowestCharges(tempunit)","parent":"qn5bb2zp0s","key":"PyqLvAT7c2","order":1},"ETpoPF3d3V":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"currentTimeStamp"},{"function":"calculate","items":[{"operator":"%"},{"function":"currentTimeStamp"},1]}]},"variableName":"intFor"},{"type":"condition","conditions":[{"operator":"==","operandType":"number"},{"function":"calculate","items":[{"operator":"%"},{"function":"getVariable","variableName":"intFor"},10]},0],"then":[{"type":"forAllPlayers","playerGroup":{"function":"humanPlayers"},"actions":[{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"selectedPlayer"}},"actions":[{"type":"setVariable","value":{"function":"selectedUnit"},"variableName":"tempUnit","comment":""},{"type":"runScript","scriptName":"PyqLvAT7c2","isEntityScript":false}]}]}],"else":[]}],"name":"refreshUnitCharges","parent":"qn5bb2zp0s","key":"ETpoPF3d3V","order":0},"qn5bb2zp0s":{"key":"qn5bb2zp0s","folderName":"item","parent":null,"order":7,"expanded":true},"HierGAKLnB":{"key":"HierGAKLnB","folderName":"unit collision","parent":null,"order":6,"expanded":false},"RejGqVpXAD":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"xPosNew"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]},"variableName":"tempX","comment":""},{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"+"},{"function":"getVariable","variableName":"gridOffset"},{"function":"calculate","items":[{"operator":"*"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPosNew","dataType":"number","entity":"9SDtGUOM4N","key":"yPosNew"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getVariable","variableName":"gridStep"}]}]},"variableName":"tempY"},{"type":"setVariable","value":{"function":"getLastCreatedUnit"},"variableName":"tempUnit2","disabled":true},{"type":"createUnitAtPosition","unitType":"JLuMFEsJSK","entity":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"position":{"function":"xyCoordinate","x":{"function":"getVariable","variableName":"tempX"},"y":{"function":"getVariable","variableName":"tempY"}},"angle":0},{"type":"setVariable","value":false,"variableName":"unitCollision","comment":""},{"type":"forAllPlayers","playerGroup":{"function":"allPlayers"},"actions":[{"type":"condition","conditions":[{"operandType":"player","operator":"=="},{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"selectedPlayer"}],"then":[{"type":"continue"}],"else":[],"comment":"don't collide with own unit"},{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"selectedPlayer"}},"actions":[{"type":"condition","conditions":[{"operator":"!=","operandType":"unitType"},{"function":"selectedUnitType"},"ZjN23ZekKt"],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"regionOverlapsWithRegion","regionA":{"function":"entityBounds","entity":{"function":"getLastCreatedUnit"}},"regionB":{"function":"entityBounds","entity":{"function":"selectedUnit"}}},true],"then":[{"type":"sendChatMessageToPlayer","message":"collided with unit","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true},{"type":"setVariable","value":{"function":"selectedUnit"},"variableName":"tempUnit2","comment":"set the unit we're colliding with at tempUnit2"},{"type":"setVariable","value":true,"variableName":"unitCollision","comment":""},{"type":"break"}],"else":[]}],"else":[],"comment":"don't collide with animated grass"}]}]},{"type":"destroyEntity","entity":{"function":"getLastCreatedUnit"},"disabled":false,"comment":"destroys the collision checker"}],"name":"isEntityAt(tempUnit), unitCollision","parent":"HierGAKLnB","key":"RejGqVpXAD","order":0},"hPpDpeeMLk":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"deathReason","dataType":"string","entity":"sbh8dWN9Pa","key":"deathReason"}},"value":{"function":"concat","textA":"got killed by ","textB":{"function":"entityName","entity":{"function":"getVariable","variableName":"tempUnit2"}}}},{"type":"setEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit2"},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit2"}},{"function":"getMax","num1":0,"num2":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"getVariable","variableName":"tempUnit2"}}]}}]}},{"type":"condition","conditions":[{"operator":"!=","operandType":"number"},{"function":"getEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"getVariable","variableName":"tempUnit2"}},0],"then":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"deathReason","dataType":"string","entity":"sbh8dWN9Pa","key":"deathReason"}},"value":{"function":"concat","textA":"got in a fight with a ","textB":{"function":"entityName","entity":{"function":"getVariable","variableName":"tempUnit2"}}}},{"type":"setEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit"},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"health","entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"getVariable","variableName":"tempUnit2"}}]}},{"type":"createFloatingText","text":{"function":"concat","textA":"-","textB":{"function":"getEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"getVariable","variableName":"tempUnit2"}}},"position":{"function":"getEntityPosition","entity":{"function":"getVariable","variableName":"tempUnit"}},"color":"red"}],"else":[]},{"type":"sendChatMessageToPlayer","message":{"function":"concat","textA":"You attacked ","textB":{"function":"concat","textA":{"function":"entityName","entity":{"function":"getVariable","variableName":"tempUnit2"}},"textB":""}},"player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true},{"type":"condition","conditions":[{"operandType":"unitType","operator":"=="},{"function":"getUnitTypeOfUnit","entity":{"function":"getVariable","variableName":"tempUnit2"}},"6DBuOODRNU"],"then":[{"type":"setVariable","value":"TanIDE8v59","variableName":"tempItemType","comment":""},{"type":"setVariable","value":{"function":"getPositionX","position":{"function":"getRandomPositionInRegion","region":{"function":"entityBounds","entity":{"function":"getVariable","variableName":"tempUnit2"}}}},"variableName":"tempX"},{"type":"setVariable","value":{"function":"getPositionY","position":{"function":"getRandomPositionInRegion","region":{"function":"entityBounds","entity":{"function":"getVariable","variableName":"tempUnit2"}}}},"variableName":"tempY"},{"type":"runScript","scriptName":"v3KDB4LMvF","isEntityScript":false},{"type":"setVariable","value":{"function":"undefinedValue"},"variableName":"tempUnit2"}],"else":[],"disabled":true}],"name":"attackUnit(tempUnit, tempUnit2)","parent":"HierGAKLnB","key":"hPpDpeeMLk","order":1},"8wov7ofQfC":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operator":">","operandType":"number"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}},1],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"sbh8dWN9Pa","key":"canPlace"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},false],"then":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"9SDtGUOM4N","key":"canPlace"}},"value":true,"comment":""},{"type":"sendChatMessageToPlayer","message":"You are now a Wizard. Drop Stars with left click.","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":false},{"type":"setUnitNameLabel","unit":{"function":"getVariable","variableName":"tempUnit"},"name":{"function":"concat","textA":"★ ","textB":{"function":"getPlayerName","entity":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}}}}},{"type":"setEntityAttributeRegenerationRate","attribute":"z3wCUcvtXW","entity":{"function":"getVariable","variableName":"tempUnit"},"value":0.1,"disabled":true},{"type":"setEntityAttributeRegenerationRate","attribute":"z3wCUcvtXW","entity":{"function":"getVariable","variableName":"tempUnit"},"value":{"function":"calculate","items":[{"operator":"+"},0.05,{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}},0.01]}]}},{"type":"setEntityAttribute","attribute":"z3wCUcvtXW","entity":{"function":"getVariable","variableName":"tempUnit"},"value":0},{"type":"openDialogueForPlayer","dialogue":"JnmGvBk3y1","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}}}],"else":[]}],"else":[]}],"name":"makeWizard(tempUnit)","parent":"DefsTu5X6E","key":"8wov7ofQfC","order":0},"OFk72ydAoq":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getRandomNumberBetween","min":1,"max":{"function":"getNumberOfUnitsOfUnitType","unitType":"sbh8dWN9Pa"}},"variableName":"intFor"},{"type":"setVariable","value":{"function":"getVariable","variableName":"intFor"},"variableName":"tempInt"},{"type":"forAllUnits","unitGroup":{"function":"allUnits"},"actions":[{"type":"condition","conditions":[{"operandType":"unitType","operator":"=="},{"function":"getUnitTypeOfUnit","entity":{"function":"selectedUnit"}},"sbh8dWN9Pa"],"then":[{"type":"decreaseVariableByNumber","variable":"intFor","number":1},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getVariable","variableName":"intFor"},0],"then":[{"type":"setVariable","value":{"function":"selectedUnit"},"variableName":"tempUnit","disabled":false},{"type":"runScript","scriptName":"8wov7ofQfC","isEntityScript":false}],"else":[]}],"else":[]}]}],"name":"randomBuilder","parent":"DefsTu5X6E","key":"OFk72ydAoq","order":4},"cIdAea2aEj":{"order":3,"parent":"nMaxirJjvT","key":"cIdAea2aEj","actions":[{"type":"setPlayerVariable","player":{"function":"getVariable","variableName":"tempPlayer"},"variable":{"function":"getPlayerVariable","variable":{"text":"name","dataType":"string","entity":"humanPlayer","key":"name"}},"value":{"function":"getPlayerName","entity":{"function":"getVariable","variableName":"tempPlayer"}}},{"type":"createUnitAtPosition","unitType":"sbh8dWN9Pa","position":{"region":{"function":"getEntireMapRegion"},"function":"getRandomPositionInRegion"},"entity":{"function":"getVariable","variableName":"tempPlayer"},"angle":0},{"unit":{"function":"getLastCreatedUnit"},"fighter":{"function":"getTriggeringPlayer"},"type":"playerCameraTrackUnit","player":{"function":"getVariable","variableName":"tempPlayer"}},{"type":"setVariable","value":{"function":"getLastCreatedUnit"},"variableName":"tempUnit","disabled":false,"comment":""},{"type":"assignPlayerType","entity":{"function":"getVariable","variableName":"tempPlayer"},"playerType":"humanPlayer"},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getPlayerCount"},1],"then":[{"type":"runScript","scriptName":"8wov7ofQfC","isEntityScript":false}],"else":[],"isExpanded":{"self":false}}],"conditions":[],"triggers":[],"name":"respawn(tempPlayer)"},"Sce6VhYLyM":{"order":1,"parent":"nMaxirJjvT","key":"Sce6VhYLyM","actions":[{"type":"setVariable","value":{"function":"getTriggeringPlayer"},"variableName":"tempPlayer"},{"type":"loadPlayerDataAndApplyIt","player":{"function":"getVariable","variableName":"tempPlayer"},"unit":{"function":"undefinedValue"},"disabled":false},{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"getVariable","variableName":"tempPlayer"}},"actions":[{"type":"destroyEntity","entity":{"function":"selectedUnit"}}]},{"type":"runScript","scriptName":"cIdAea2aEj","isEntityScript":false},{"type":"openDialogueForPlayer","dialogue":"RdFmI3TZ6Q","player":{"function":"getTriggeringPlayer"}}],"conditions":[],"triggers":[{"type":"playerJoinsGame"}],"name":"player joins"},"RbQffvY3OJ":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"up"],"then":[{"type":"runScript","scriptName":"TwAAbvvmX4","isEntityScript":false}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"right"],"then":[{"type":"runScript","scriptName":"odtG9JeY14","isEntityScript":false,"comment":""}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"down"],"then":[{"type":"runScript","scriptName":"MkX3iOo0zS","isEntityScript":false}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"left"],"then":[{"type":"runScript","scriptName":"iSffYXq2No","isEntityScript":false}],"else":[],"disabled":false}],"name":"move forward","parent":"IYGHmU1fBx","key":"RbQffvY3OJ","order":4},"nQWxxkfmUe":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getNumberOfUnitsOfUnitType","unitType":"6DBuOODRNU"},10],"then":[{"type":"setVariable","value":{"function":"getPositionX","position":{"function":"getRandomPositionInRegion","region":{"function":"getVariable","variableName":"forest"}}},"variableName":"tempX"},{"type":"setVariable","value":{"function":"getPositionY","position":{"function":"getRandomPositionInRegion","region":{"function":"getVariable","variableName":"forest"}}},"variableName":"tempY"},{"type":"runScript","scriptName":"3GqyJCI1ax","isEntityScript":false,"disabled":true},{"type":"createUnitAtPosition","unitType":"6DBuOODRNU","entity":{"function":"getVariable","variableName":"NPC units"},"position":{"function":"xyCoordinate","x":{"function":"getVariable","variableName":"tempX"},"y":{"function":"getVariable","variableName":"tempY"}},"angle":0},{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"getVariable","variableName":"NPC units"}},"actions":[{"type":"condition","conditions":[{"operator":"!=","operandType":"unit"},{"function":"getLastCreatedUnit"},{"function":"selectedUnit"}],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"regionOverlapsWithRegion","regionA":{"function":"entityBounds","entity":{"function":"getLastCreatedUnit"}},"regionB":{"function":"entityBounds","entity":{"function":"selectedUnit"}}},true],"then":[{"type":"destroyEntity","entity":{"function":"getLastCreatedUnit"}}],"else":[]}],"else":[]}]}],"else":[],"isExpanded":{"self":true},"disabled":false}],"name":"spawn trees","parent":"jpcpSHbL6a","key":"nQWxxkfmUe","order":0},"v3KDB4LMvF":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operator":">","operandType":"number"},{"function":"getNumberOfItemsPresent"},{"function":"getVariable","variableName":"mapItemLimit"}],"then":[{"type":"return"}],"else":[]},{"type":"spawnItem","itemType":{"function":"getVariable","variableName":"tempItemType"},"position":{"function":"xyCoordinate","x":{"function":"getVariable","variableName":"tempX"},"y":{"function":"getVariable","variableName":"tempY"}},"disabled":false}],"name":"spawn(tempItemType, tempX, tempY))","parent":null,"key":"v3KDB4LMvF","order":11},"DIRSMkR7k1":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getNumberOfUnitsOfUnitType","unitType":"ZjN23ZekKt"},32],"then":[{"type":"setVariable","value":{"function":"getPositionX","position":{"function":"getRandomPositionInRegion","region":{"function":"getVariable","variableName":"grass"}}},"variableName":"tempX"},{"type":"setVariable","value":{"function":"getPositionY","position":{"function":"getRandomPositionInRegion","region":{"function":"getVariable","variableName":"grass"}}},"variableName":"tempY"},{"type":"runScript","scriptName":"3GqyJCI1ax","isEntityScript":false,"disabled":false},{"type":"createUnitAtPosition","unitType":"ZjN23ZekKt","entity":{"function":"getVariable","variableName":"NPC units"},"position":{"function":"xyCoordinate","x":{"function":"getVariable","variableName":"tempX"},"y":{"function":"getVariable","variableName":"tempY"}},"angle":0,"runMode":0},{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"getVariable","variableName":"NPC units"}},"actions":[{"type":"condition","conditions":[{"operator":"!=","operandType":"unit"},{"function":"getLastCreatedUnit"},{"function":"selectedUnit"}],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"regionOverlapsWithRegion","regionA":{"function":"entityBounds","entity":{"function":"getLastCreatedUnit"}},"regionB":{"function":"entityBounds","entity":{"function":"selectedUnit"}}},true],"then":[{"type":"destroyEntity","entity":{"function":"getLastCreatedUnit"}}],"else":[]}],"else":[]}],"disabled":true}],"else":[],"isExpanded":{"self":true},"runMode":0,"disabled":false}],"name":"spawn grass","parent":"jpcpSHbL6a","key":"DIRSMkR7k1","order":1},"jpcpSHbL6a":{"key":"jpcpSHbL6a","folderName":"spawn","parent":"nMaxirJjvT","order":4,"expanded":false},"cBFyr5fvQN":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getNumberOfUnitsOfUnitType","unitType":"zldFwP5bzq"},96],"then":[{"type":"setVariable","value":{"function":"getPositionX","position":{"function":"getRandomPositionInRegion","region":{"function":"getVariable","variableName":"rocks"}}},"variableName":"tempX"},{"type":"setVariable","value":{"function":"getPositionY","position":{"function":"getRandomPositionInRegion","region":{"function":"getVariable","variableName":"rocks"}}},"variableName":"tempY"},{"type":"runScript","scriptName":"3GqyJCI1ax","isEntityScript":false,"disabled":false},{"type":"createUnitAtPosition","unitType":"zldFwP5bzq","entity":{"function":"getVariable","variableName":"NPC units"},"position":{"function":"xyCoordinate","x":{"function":"getVariable","variableName":"tempX"},"y":{"function":"getVariable","variableName":"tempY"}},"angle":0,"runMode":0},{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"getVariable","variableName":"NPC units"}},"actions":[{"type":"condition","conditions":[{"operator":"!=","operandType":"unit"},{"function":"getLastCreatedUnit"},{"function":"selectedUnit"}],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"regionOverlapsWithRegion","regionA":{"function":"entityBounds","entity":{"function":"getLastCreatedUnit"}},"regionB":{"function":"entityBounds","entity":{"function":"selectedUnit"}}},true],"then":[{"type":"destroyEntity","entity":{"function":"getLastCreatedUnit"}},{"type":"runScript","scriptName":"cBFyr5fvQN","isEntityScript":false}],"else":[]}],"else":[]}],"disabled":false}],"else":[],"isExpanded":{"self":true},"runMode":0,"disabled":false}],"name":"spawn rocks","parent":"jpcpSHbL6a","key":"cBFyr5fvQN","order":2},"JyeoWM5FQY":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"openWebsiteForPlayer","string":"https://discord.gg/DJ7ApQnW","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}}}],"name":"open discord","parent":"aSeL6kIIsd","key":"JyeoWM5FQY","order":1},"3rFkWYqdVZ":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getPlayerCount"},1],"then":[{"type":"return"}],"else":[]},{"type":"setVariable","value":false,"variableName":"tempBool"},{"type":"forAllPlayers","playerGroup":{"function":"humanPlayers"},"actions":[{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"selectedPlayer"}},"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"sbh8dWN9Pa","key":"canPlace"}},"entity":{"function":"selectedUnit"}},true],"then":[{"type":"setEntityVariable","entity":{"function":"selectedUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"sbh8dWN9Pa","key":"canPlace"}},"value":true,"disabled":true},{"type":"setVariable","value":true,"variableName":"tempBool"}],"else":[]}]}]},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getVariable","variableName":"tempBool"},false],"then":[{"type":"runScript","scriptName":"OFk72ydAoq","isEntityScript":false}],"else":[]}],"name":"builderExists","parent":"DefsTu5X6E","key":"3rFkWYqdVZ","order":5},"MmayLdRM6q":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getTriggeringUnit"},"variableName":"tempUnit"},{"type":"runScript","scriptName":"LZgdtONCgM","isEntityScript":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getVariable","variableName":"tempStr"},"left"],"then":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"up"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"C6fDncC5gs"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"left"},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"right"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"e4roKatmUr"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"up"},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"down"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"6PBffCGtdD"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"right","comment":""},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"left"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"yPiFluUOV9"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"down","comment":""},{"type":"return"}],"else":[],"disabled":false}],"else":[],"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getVariable","variableName":"tempStr"},"right"],"then":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"down"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"C6fDncC5gs"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"left"},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"left"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"e4roKatmUr"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"up"},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"up"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"6PBffCGtdD"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"right","comment":""},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"right"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"yPiFluUOV9"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"down","comment":""},{"type":"return"}],"else":[],"disabled":false}],"else":[],"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getVariable","variableName":"tempStr"},"flip"],"then":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"right"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"C6fDncC5gs"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"left"},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"down"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"e4roKatmUr"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"up"},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"left"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"6PBffCGtdD"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"right","comment":""},{"type":"return"}],"else":[],"disabled":false},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"up"],"then":[{"type":"playEntityAnimation","entity":{"function":"getVariable","variableName":"tempUnit"},"animation":"yPiFluUOV9"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"}},"value":"down","comment":""},{"type":"return"}],"else":[],"disabled":false}],"else":[],"isExpanded":{"self":true}}],"name":"turn(tempUnit, tempStr:'left,right,flip')","parent":"IYGHmU1fBx","key":"MmayLdRM6q","order":5},"u7SJVui1VN":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"comment","comment":"switches the direction of the 2 prepared key items"},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}},1],"then":[{"type":"return"}],"else":[],"comment":"don't switch first level"},{"type":"condition","conditions":[{"operator":"==","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0],"then":[{"type":"return"}],"else":[],"comment":"don't switch if not prepped","disabled":true},{"type":"setVariable","value":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"variableName":"tempItem"},{"type":"setVariable","value":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"variableName":"tempItem2"},{"type":"updateUiTextForTimeForPlayer","target":"top","value":{"function":"concat","textA":"","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"entity":{"function":"getVariable","variableName":"tempItem"}},"textB":{"function":"concat","textA":{"function":"concat","textA":" ⟷ ","textB":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"entity":{"function":"getVariable","variableName":"tempItem2"}}},"textB":""}}},"player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"time":3000,"disabled":true},{"type":"setVariable","value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"entity":{"function":"getVariable","variableName":"tempItem"}},"variableName":"switchADir"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"entity":{"function":"getVariable","variableName":"tempItem2"}}},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempItem2"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"HPlfCar4N0","key":"direction"}},"value":{"function":"getVariable","variableName":"switchADir"},"comment":""},{"type":"changeInventorySlotColor","item":{"function":"getVariable","variableName":"tempItem"},"string":"Black"},{"type":"changeInventorySlotColor","item":{"function":"getVariable","variableName":"tempItem2"},"string":"Black"},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"getVariable","variableName":"tempItem"},"value":0},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"getVariable","variableName":"tempItem2"},"value":0},{"type":"runScript","scriptName":"2JGDt1zcVE","isEntityScript":false}],"name":"switchKey(tempUnit)","parent":"XiIko1G3Xe","key":"u7SJVui1VN","order":4},"q6yTBBymHD":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"sbh8dWN9Pa","key":"canPlace"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},true],"then":[{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"9SDtGUOM4N","key":"canPlace"}},"value":false,"comment":""},{"type":"sendChatMessageToPlayer","message":"You have been made builder. Place items with left click.","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true},{"type":"setUnitNameLabel","unit":{"function":"getVariable","variableName":"tempUnit"},"name":{"function":"concat","textA":"","textB":{"function":"getPlayerName","entity":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}}}}},{"type":"setEntityAttributeRegenerationRate","attribute":"z3wCUcvtXW","entity":{"function":"getVariable","variableName":"tempUnit"},"value":0},{"type":"setEntityAttribute","attribute":"z3wCUcvtXW","entity":{"function":"getVariable","variableName":"tempUnit"},"value":0},{"type":"openDialogueForPlayer","dialogue":"JnmGvBk3y1","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true}],"else":[]}],"name":"removeWizard(tempUnit)","parent":"DefsTu5X6E","key":"q6yTBBymHD","order":1},"3GqyJCI1ax":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"getVariable","variableName":"tempX"},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"-"},{"function":"getVariable","variableName":"tempX"},{"function":"getVariable","variableName":"gridOffset"}]},{"function":"getVariable","variableName":"gridSize"}]}]},"variableName":"tempX","comment":""},{"type":"setVariable","value":{"function":"calculate","items":[{"operator":"-"},{"function":"getVariable","variableName":"tempY"},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"-"},{"function":"getVariable","variableName":"tempY"},{"function":"getVariable","variableName":"gridOffset"}]},{"function":"getVariable","variableName":"gridSize"}]}]},"variableName":"tempY","comment":""}],"name":"alignToGrid(tempX, tempY)","parent":"XiIko1G3Xe","key":"3GqyJCI1ax","order":2},"wTHUtQ9azj":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"comment","comment":"gives visual feedback for key presses and switching"},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}]},0],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"Bisque","runMode":0,"disabled":true},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"Bisque","runMode":0,"disabled":true},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"RosyBrown","runMode":0},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"RosyBrown","runMode":0}],"else":[],"comment":"prepare the switch and highlight the keys that are about to swap","runMode":0,"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},5]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}]},0],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"RosyBrown","runMode":0},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"RosyBrown","runMode":0}],"else":[],"comment":"prepare the switch and highlight the keys that are about to swap","runMode":0,"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},4]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}]},0],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"RosyBrown","runMode":0},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"RosyBrown","runMode":0}],"else":[],"comment":"prepare the switch and highlight the keys that are about to swap","runMode":0,"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},3]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}]},0],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"LightSalmon","runMode":0},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"LightSalmon","runMode":0}],"else":[],"comment":"","runMode":0,"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},2]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}]},0],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"Salmon","runMode":0},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"Salmon","runMode":0}],"else":[],"runMode":0,"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}]},0],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"Tomato","runMode":0},{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"Tomato","runMode":0}],"else":[],"runMode":0,"isExpanded":{"self":true,"then":true}},{"type":"condition","conditions":[{"operator":">","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},3],"then":[{"type":"return"}],"else":[],"runMode":0},{"type":"condition","conditions":[{"operator":"!=","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"lastPressed","dataType":"number","entity":"sbh8dWN9Pa","key":"lastPressed"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0],"then":[{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},0],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"lastPressed","dataType":"number","entity":"sbh8dWN9Pa","key":"lastPressed"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"SteelBlue","runMode":0}],"else":[],"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"lastPressed","dataType":"number","entity":"sbh8dWN9Pa","key":"lastPressed"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"DeepSkyBlue","runOnClient":true,"runMode":1}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},2],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"lastPressed","dataType":"number","entity":"sbh8dWN9Pa","key":"lastPressed"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"LightSkyBlue","runOnClient":true,"runMode":1}],"else":[],"isExpanded":{"self":false}},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},3],"then":[{"type":"changeInventorySlotColor","item":{"function":"getItemInInventorySlot","slot":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"lastPressed","dataType":"number","entity":"sbh8dWN9Pa","key":"lastPressed"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"string":"PowderBlue","runOnClient":true,"runMode":1}],"else":[],"isExpanded":{"self":false}}],"else":[],"comment":"highlight the last pressed key","runMode":0,"isExpanded":{"self":true}},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"framesSinceLastPress","dataType":"number","entity":"sbh8dWN9Pa","key":"framesSinceLastPress"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},1]},"runMode":0}],"name":"itemVisualFeedback(tempUnit)","parent":"xheE5DDP4Z","key":"wTHUtQ9azj","order":0},"2JGDt1zcVE":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}},1],"then":[{"type":"return"}],"else":[],"comment":"don't switch first level"},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"value":{"function":"getRandomNumberBetween","min":1,"max":6}},{"type":"setEntityVariable","entity":{"function":"getVariable","variableName":"tempUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"value":{"function":"getRandomNumberBetween","min":1,"max":6}},{"type":"condition","conditions":[{"operator":"==","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemA","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemA"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"switchItemB","dataType":"number","entity":"sbh8dWN9Pa","key":"switchItemB"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}],"then":[{"type":"runScript","scriptName":"2JGDt1zcVE","isEntityScript":false,"comment":"recursive until the random numbers difer"}],"else":[{"type":"runScript","scriptName":"wTHUtQ9azj","isEntityScript":false,"comment":"","disabled":true}]}],"name":"switchPrep(tempUnit)","parent":"XiIko1G3Xe","key":"2JGDt1zcVE","order":3},"irhL2jtcdJ":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"sendPostRequest","string":{"function":"concat","textA":"{\"content\": \"","textB":{"function":"concat","textA":{"function":"getVariable","variableName":"tempStr"},"textB":"\"}"}},"url":"https://discord.com/api/webhooks/1104564564118474853/JLUbzaWZU0JSyH8se8A6yShuDJhNWXWRUOXYEuHHRThpbzEcTJe1mVoM9m766UM20Qf4","varName":"!postrequest"}],"name":"sendDeathToDiscord(tempStr)","parent":"aSeL6kIIsd","key":"irhL2jtcdJ","order":0},"iP5g2eEC7P":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"forAllPlayers","playerGroup":{"function":"humanPlayers"},"actions":[{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"selectedPlayer"}},"actions":[{"type":"condition","conditions":[{"operator":"<=","operandType":"number"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"level","dataType":"number","entity":"sbh8dWN9Pa","key":"level"}},"entity":{"function":"selectedUnit"}},3],"then":[{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"mathFloor","value":{"function":"getVariable","variableName":"secondsSinceServerLaunch"}},30]},0],"then":[{"type":"sendChatMessageToPlayer","message":"Stuck? Press <kbd>H</kbd> to view the guides.","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}}}],"else":[],"comment":"TODO: rewrite this so instead of global it uses player var"}],"else":[]}]}],"isExpanded":{"actions":true}},{"type":"increaseVariableByNumber","variable":"secondsSinceServerLaunch","number":1}],"name":"help reminder","parent":null,"key":"iP5g2eEC7P","order":12},"aSeL6kIIsd":{"key":"aSeL6kIIsd","folderName":"discord","parent":null,"order":9,"expanded":false},"xheE5DDP4Z":{"key":"xheE5DDP4Z","folderName":"juice","parent":null,"order":1,"expanded":true},"pEnZnGi8lU":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"thisEntity"},"variableName":"tempUnit","disabled":true},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"sfxTrigger","dataType":"string","entity":"sbh8dWN9Pa","key":"sfxTrigger"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"none"],"then":[{"type":"return"}],"else":[],"isExpanded":{"self":false},"comment":"don't play any sound if none"},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"sfxTrigger","dataType":"string","entity":"sbh8dWN9Pa","key":"sfxTrigger"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"walk"],"then":[{"type":"playSoundAtPosition","sound":"7haH4SOJpZ","position":{"function":"getEntityPosition","entity":{"function":"getVariable","variableName":"tempUnit"}}}],"else":[],"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"sfxTrigger","dataType":"string","entity":"sbh8dWN9Pa","key":"sfxTrigger"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"hit"],"then":[{"type":"playSoundAtPosition","sound":"OpMUn6DWHj","position":{"function":"getEntityPosition","entity":{"function":"getVariable","variableName":"tempUnit"}}}],"else":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"sfxTrigger","dataType":"string","entity":"sbh8dWN9Pa","key":"sfxTrigger"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},"bump"],"then":[{"type":"playSoundAtPosition","sound":"zFQ43tk3JS","position":{"function":"getEntityPosition","entity":{"function":"getVariable","variableName":"tempUnit"}}}],"else":[]}],"name":"sfxHandle(tempUnit,sfxTrigger)","parent":"xheE5DDP4Z","key":"pEnZnGi8lU","order":1}},"unitTypes":{"JLuMFEsJSK":{"backpackSize":0,"defaultItem":[],"controls":{"permittedInventorySlots":[],"movementMethod":"velocity","movementControlScheme":"wasd","abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"e":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"w2VrnZHyom","cost":{},"isEntityScript":true}},"g":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"yP67J1MMRN","cost":{},"isEntityScript":true}},"button1":{"keyUp":{"scriptName":"DOrbWp0AGz","cost":{},"isEntityScript":true},"keyDown":{"scriptName":"YFeMQ20gBX","cost":{},"isEntityScript":true}}},"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"movementType":"wasd","absoluteRotation":false},"inventoryImage":"","animations":{"default":{"framesPerSecond":0,"loopCount":0,"frames":[1],"name":"default"}},"canBePurchasedBy":[],"isPurchasable":false,"states":{"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"sound":{"KK9JlU1UQy":{"name":"Cough","file":"https://modd.s3.amazonaws.com/asset/sound/1517554516253_man_cough.mp3"},"fEhDyJ8knx":{"name":"Scream","file":"https://modd.s3.amazonaws.com/asset/sound/1517556903046_man_scream1.mp3"}},"particles":{},"body":{"spriteScale":1,"fixtures":[{"shape":{"type":"rectangle"},"restitution":0.01,"friction":0.01,"density":3}],"isFlying":false,"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"angularDamping":1,"linearDamping":5,"rotationSpeed":2,"type":"dynamic","height":40,"width":40,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"unit":true,"item":true,"debris":true},"z-index":{"layer":3,"depth":3},"name":"Human-body"},"spawnPosition":{"y":2200,"x":1500},"attributes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#ffff0f","showAsHUD":true,"displayValue":true,"isVisible":["centerBar"],"regenerateSpeed":0,"value":100,"dataType":"","max":100,"min":0,"name":"health "}},"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"w":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"a":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"s":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"d":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"button1":{"keyUp":"stopUsingItem","keyDown":"startUsingItem","mobilePosition":{"x":326,"y":132}},"up":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"down":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"left":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"right":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"e":{"keyUp":"","keyDown":"pickUp","mobilePosition":{"x":366,"y":85}},"f":{"keyUp":"","keyDown":"pickUp"},"g":{"keyUp":"","keyDown":"drop","mobilePosition":{"x":365,"y":33}},"b":{"keyUp":"","keyDown":"shop","mobilePosition":{"x":419,"y":32}}},"baseSpeed":53,"price":{},"skin":"https://s3-us-west-1.amazonaws.com/modd/halloween-0.18/spritesheet/man.png","canBuyItem":true,"handle":"human","name":"Collision Checker","inventorySize":5,"cellSheet":{"columnCount":1,"rowCount":1,"url":"https://cache.modd.io/asset/spriteImage/1588722464182_Blue_Box_Crate.png"},"bodies":{"default":{"bullet":true,"name":"default","type":"dynamic","width":16,"height":16,"z-index":{"layer":3,"depth":3},"fixedRotation":true,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":false,"collidesWith":{"units":false,"items":false,"projectiles":false,"walls":false,"debris":false},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":1,"fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0},"affectedByGravity":false}},"variables":{"attackingUnit":{"dataType":"unit"}},"effects":{"attacked":{"projectileType":"","sound":{},"animation":"","tween":""},"create":{"projectileType":"","sound":{},"animation":""},"destroy":{"projectileType":"","sound":{},"animation":""}},"confinedWithinMapBoundaries":true,"ai":{"pathFindingMethod":"simple","idleBehaviour":"stay","sensorResponse":"none","attackResponse":"none","maxTravelDistance":300,"sensorRadius":150,"maxAttackRange":400},"defaultItems":[],"scripts":{"aOfNfXie57":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":false,"variableName":"unitCollision","disabled":true},{"type":"sendChatMessageToPlayer","message":"collision false","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit"}},"disabled":true},{"type":"setUnitNameLabel","unit":{"function":"thisEntity"},"name":{"function":"entityName","entity":{"function":"getVariable","variableName":"tempUnit"}}}],"name":"created","parent":null,"key":"aOfNfXie57","order":3},"P3ftFuGEbC":{"triggers":[{"type":"entityTouchesUnit"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operator":"!=","operandType":"unit"},{"function":"getLastTouchedUnit","vars":[]},{"function":"getVariable","variableName":"tempUnit","vars":[]}],"then":[{"type":"setVariable","value":true,"variableName":"unitCollision","comment":"","vars":[]},{"type":"setVariable","value":{"function":"getLastTouchedUnit","vars":[]},"variableName":"tempUnit2","vars":[]},{"type":"sendChatMessageToPlayer","message":"collision true","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit","vars":[]},"vars":[]},"disabled":false,"vars":[]},{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[]},"vars":[]}],"else":[],"disabled":true,"vars":[]}],"name":"collided","parent":null,"key":"P3ftFuGEbC","order":3}}},"sbh8dWN9Pa":{"backpackSize":6,"equipmentAllowed":5,"ai":{"maxAttackRange":400,"sensorRadius":150,"maxTravelDistance":"","attackResponse":"fight","sensorResponse":"none","idleBehaviour":"stay","pathFindingMethod":"simple","letGoDistance":"","enabled":true},"defaultItem":[{"name":"Gun","value":"Gun","key":"gun"},{"name":"Crowbar","value":"Crowbar","key":"crowbar"}],"confinedWithinMapBoundaries":true,"controls":{"permittedInventorySlots":[],"abilities":{"movementWheel":{},"lookWheel":{},"q":{"keyUp":{"cost":{},"isEntityScript":true},"keyDown":{"scriptName":"XajBFs3QXK","cost":{"quantity":null,"unitAttributes":{}},"isEntityScript":true},"mobilePosition":{"x":24,"y":160}},"w":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"ty7pNvbU6B","cost":{},"isEntityScript":true},"mobilePosition":{"x":69,"y":160}},"e":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"JPOp61D8nw","cost":{},"isEntityScript":true},"mobilePosition":{"x":114,"y":161}},"a":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"Jn5vawdyC3","cost":{},"isEntityScript":true},"mobilePosition":{"x":24,"y":209}},"s":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"Uo7Kht6k9k","cost":{},"isEntityScript":true},"mobilePosition":{"x":68,"y":210}},"d":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"H87pigDdyn","cost":{},"isEntityScript":true},"mobilePosition":{"x":112,"y":209}},"x":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"T30WaMKFZk","cost":{}}},"button1":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"j5X5rVfwDl","cost":{},"isEntityScript":true}},"u":{"keyUp":{"scriptName":"k15ROBHOOC","cost":{},"isEntityScript":true},"keyDown":{"scriptName":"81RXRfAaFT","cost":{},"isEntityScript":true}},"h":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"Db37uYfoEJ","cost":{},"isEntityScript":true}}},"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"movementType":"wasd","movementControlScheme":"wasd","movementMethod":"velocity","absoluteRotation":false,"unitAbilities":{}},"inventoryImage":"","animations":{"default":{"name":"default","frames":[1],"loopCount":0,"framesPerSecond":0},"C6fDncC5gs":{"name":"left","frames":[3],"framesPerSecond":0,"loopCount":""},"yPiFluUOV9":{"name":"down","frames":[2],"framesPerSecond":0,"loopCount":""},"e4roKatmUr":{"name":"up","frames":[4],"framesPerSecond":0,"loopCount":""},"6PBffCGtdD":{"name":"right","frames":[1],"framesPerSecond":0,"loopCount":""}},"canBePurchasedBy":[],"isPurchasable":false,"states":{"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"sound":{"KK9JlU1UQy":{"name":"Cough","file":"https://modd.s3.amazonaws.com/asset/sound/1517554516253_man_cough.mp3"},"fEhDyJ8knx":{"name":"Scream","file":"https://modd.s3.amazonaws.com/asset/sound/1517556903046_man_scream1.mp3"}},"particles":{},"body":{"spriteScale":1,"fixtures":[{"shape":{"type":"rectangle"},"restitution":0.01,"friction":0.01,"density":3}],"isFlying":false,"fixedRotation":false,"bulletDestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"angularDamping":1,"linearDamping":5,"rotationSpeed":2,"type":"dynamic","height":40,"width":40,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"unit":true,"item":true,"debris":true},"z-index":{"layer":3,"depth":3},"name":"Human-body"},"spawnPosition":{"y":2200,"x":1500},"attributes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#55ff0f","showAsHUD":true,"displayValue":true,"isVisible":["unitBarFriendly","unitBarNeutral","unitBarHostile","centerBar"],"regenerateSpeed":".05","value":29,"dataType":"","max":29,"min":0,"name":"health ","showWhen":"whenIsLessThanMax"},"crTAhSw1QS":{"name":"XP","min":0,"max":8,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":["centerBar"],"displayValue":true,"showWhen":"","showAsHUD":true,"color":"#caff00","decimalPlaces":0},"1EwASqxRMD":{"name":"level","min":0,"max":12,"dataType":"","value":1,"regenerateSpeed":0,"isVisible":["centerBar"],"displayValue":true,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"z3wCUcvtXW":{"name":"stars","min":0,"max":12,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":["unitBarFriendly","unitBarNeutral","unitBarHostile"],"displayValue":true,"showWhen":"whenIsGreaterThanMin","showAsHUD":true,"color":"#e2f80d","decimalPlaces":2},"9GAx9TJq8y":{"name":"attack","min":0,"max":100,"dataType":"","value":3,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"aQhoXCHK9u":{"name":"defense","min":0,"max":100,"dataType":"","value":1,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"tluak6Uefw":{"name":"counter attack","min":0,"max":99,"dataType":"","value":1,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"w":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"a":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"s":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"d":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"g":{"keyUp":"","keyDown":"drop"},"e":{"keyUp":"","keyDown":"pickUp"},"button1":{"keyUp":"stopUse","keyDown":"use"}},"baseSpeed":53,"price":{},"skin":"https://s3-us-west-1.amazonaws.com/modd/halloween-0.18/spritesheet/man.png","canBuyItem":true,"handle":"human","name":"Grid Unit","inventorySize":6,"cellSheet":{"url":"https://cache.modd.io/asset/spriteImage/1682878131901_New_Project_-_2023-04-30T110837.705.png","rowCount":1,"columnCount":4},"bodies":{"default":{"bullet":false,"name":"default","type":"dynamic","width":50,"height":50,"z-index":{"layer":3,"depth":3},"fixedRotation":true,"bulletDestroyedOnCollisionWithWall/unit":false,"allowSleep":false,"collidesWith":{"units":false,"items":true,"projectiles":true,"walls":true,"debris":true},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":"1.5","fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0},"affectedByGravity":false}},"variables":{"xPos":{"default":16,"dataType":"number"},"yPos":{"default":16,"dataType":"number","key":"yPos","defaultKey":"yPos"},"DotBonus":{"default":1,"dataType":"number"},"level":{"default":1,"dataType":"number","key":"level","defaultKey":"level"},"xPosNew":{"default":0,"dataType":"number"},"yPosNew":{"default":0,"dataType":"number"},"canPlace":{"default":false,"dataType":"boolean"},"ZoomOut":{"default":false,"dataType":"boolean"},"orientation":{"default":"up","dataType":"string","key":"orientation","defaultKey":"orientation"},"stepsToSwap":{"default":6,"dataType":"number"},"stepsTaken":{"default":0,"dataType":"number"},"lastSignID":{"default":"none","dataType":"string"},"switchItemA":{"default":0,"dataType":"number"},"switchItemB":{"default":0,"dataType":"number"},"lastPressed":{"default":0,"dataType":"number"},"framesSinceLastPress":{"default":0,"dataType":"number"},"deathReason":{"dataType":"string"},"sfxTrigger":{"default":"none","dataType":"string"}},"effects":{"idle":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"attacked":{"projectileType":"","sound":{},"animation":"","tween":"recoil","runScript":""},"move":{"projectileType":"","sound":{},"animation":"","tween":"wobble","runScript":""},"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"blood","sound":{},"animation":"","runScript":""}},"defaultItems":[],"scripts":{"ddO66abnnn":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"thisEntity","vars":[]},"variableName":"tempUnit","comment":"","vars":[]},{"type":"runScript","scriptName":"YOBXiOj2Jd","isEntityScript":false,"disabled":false,"vars":[]},{"type":"runScript","scriptName":"8CEkCzfKCF","isEntityScript":false,"vars":[]},{"type":"runScript","scriptName":"YaDiyjMb3e","isEntityScript":true,"vars":[]}],"name":"created","parent":"9pcpmCCDnw","key":"ddO66abnnn","order":0},"5w9GjDMejB":{"key":"5w9GjDMejB","folderName":"keyPresses","parent":null,"order":1,"expanded":true},"ty7pNvbU6B":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"useItemOnce","item":{"function":"getItemInInventorySlot","slot":2,"entity":{"function":"thisEntity","vars":[]},"vars":[]},"disabled":false,"vars":[]},{"type":"runScript","scriptName":"9RgR0HluFv","isEntityScript":true,"vars":[]}],"name":"key W","parent":"5w9GjDMejB","key":"ty7pNvbU6B","order":1},"Jn5vawdyC3":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"useItemOnce","item":{"function":"getItemInInventorySlot","slot":4,"entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]},{"type":"runScript","scriptName":"9RgR0HluFv","isEntityScript":true,"vars":[]}],"name":"key A","parent":"5w9GjDMejB","key":"Jn5vawdyC3","order":3},"XajBFs3QXK":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"useItemOnce","item":{"function":"getItemInInventorySlot","slot":1,"entity":{"function":"thisEntity","vars":[]},"vars":[]},"disabled":false,"vars":[]},{"type":"runScript","scriptName":"9RgR0HluFv","isEntityScript":true,"vars":[]}],"name":"key Q","parent":"5w9GjDMejB","key":"XajBFs3QXK","order":0},"JPOp61D8nw":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"useItemOnce","item":{"function":"getItemInInventorySlot","slot":3,"entity":{"function":"thisEntity","vars":[]},"vars":[]},"disabled":false,"vars":[]},{"type":"runScript","scriptName":"9RgR0HluFv","isEntityScript":true,"vars":[]}],"name":"key E","parent":"5w9GjDMejB","key":"JPOp61D8nw","order":2},"Uo7Kht6k9k":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"useItemOnce","item":{"function":"getItemInInventorySlot","slot":5,"entity":{"function":"thisEntity","vars":[]},"vars":[]},"disabled":false,"vars":[]},{"type":"runScript","scriptName":"9RgR0HluFv","isEntityScript":true,"vars":[]}],"name":"key S","parent":"5w9GjDMejB","key":"Uo7Kht6k9k","order":4},"H87pigDdyn":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"useItemOnce","item":{"function":"getItemInInventorySlot","slot":6,"entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]},{"type":"runScript","scriptName":"9RgR0HluFv","isEntityScript":true,"vars":[]}],"name":"key D","parent":"5w9GjDMejB","key":"H87pigDdyn","order":5},"4LL5At8s2z":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"itemType","operator":"=="},{"function":"getItemTypeOfItem","entity":{"function":"getItemInInventorySlot","slot":1,"entity":{"function":"getLastCreatedUnit"}}},"rucjuZOoxx"],"then":[{"type":"return"}],"else":[],"comment":"don't generate starting items if unit already has items"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward","comment":"","disabled":true},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"none","comment":"","disabled":true},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"none","comment":"","disabled":true},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward2x","comment":"","disabled":true},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key  item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn left","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"Q","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward2x","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"W","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn right","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"E","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn left","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"A","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"S","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn right","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"D","comment":""},{"type":"for","variableName":"intFor","start":1,"stop":6,"actions":[{"type":"setEntityVariable","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"intFor"},"entity":{"function":"thisEntity"}},"variable":{"function":"getEntityVariable","variable":{"text":"slot","dataType":"number","entity":"rucjuZOoxx","key":"slot"}},"value":{"function":"getVariable","variableName":"intFor"}},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"intFor"},"entity":{"function":"thisEntity"}},"value":0},{"type":"updateItemQuantity","entity":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}},"quantity":30},{"type":"changeInventorySlotColor","item":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}},"string":"Black"}],"disabled":false}],"name":"loadout 2","parent":"N0MSbCvqSH","key":"4LL5At8s2z","order":1},"lnFsKolTnR":{"triggers":[{"type":"entityAttributeBecomesFull"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"crTAhSw1QS"],"then":[{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]},{"function":"entityAttributeMax","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]}],"then":[{"type":"return","vars":[]}],"else":[],"comment":"don't level up at max level","isExpanded":{"self":false},"vars":[]},{"type":"setEntityAttributeMax","attribute":"crTAhSw1QS","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"thisEntity"}},1.5],"vars":[]},"comment":"increase XP needed for next level up\n","vars":[]},{"type":"setEntityAttribute","attribute":"crTAhSw1QS","entity":{"function":"thisEntity","vars":[]},"value":0,"vars":[]},{"type":"for","variableName":"intFor","start":1,"stop":6,"actions":[{"type":"updateItemQuantity","entity":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor","vars":[]},"unit":{"function":"thisEntity","vars":[]},"vars":[]},"quantity":{"function":"calculate","items":[{"operator":"+"},{"function":"getItemQuantity","item":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}}},{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}},5]}],"vars":[]},"vars":[]},{"type":"updateItemQuantity","entity":{"function":"selectedItem","vars":[]},"quantity":{"function":"calculate","items":[{"operator":"-"},99,{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}},5]}],"vars":[]},"disabled":true,"vars":[]}],"disabled":false,"comment":"update item quantities (+level*5)","isExpanded":{"self":false},"vars":[]},{"type":"setEntityAttributeMax","attribute":"z3wCUcvtXW","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"entityAttributeMax","attribute":"z3wCUcvtXW","entity":{"function":"thisEntity"}},{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}},1]}],"vars":[]},"vars":[]},{"type":"setEntityAttributeMax","attribute":"health","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"entityAttributeMax","attribute":"health","entity":{"function":"thisEntity"}},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}}],"vars":[]},"vars":[]},{"type":"setEntityAttribute","attribute":"health","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}},{"function":"getEntityAttribute","attribute":"health","entity":{"function":"thisEntity"}}],"vars":[]},"vars":[]},{"type":"setEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"up"],"then":[{"type":"setEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"sendChatMessageToPlayer","message":"level up, gained 1 attack","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]}],"else":[],"isExpanded":{"self":false},"comment":"+atk","vars":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"down"],"then":[{"type":"setEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"sendChatMessageToPlayer","message":"level up, gained 1 attack","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]}],"else":[],"isExpanded":{"self":false},"comment":"+atk","vars":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"left"],"then":[{"type":"setEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"sendChatMessageToPlayer","message":"level up, gained 1 defense","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]}],"else":[],"comment":"+def","isExpanded":{"self":false},"vars":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"orientation","dataType":"string","entity":"9SDtGUOM4N","key":"orientation"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"right"],"then":[{"type":"setEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]},{"type":"sendChatMessageToPlayer","message":"level up, gained 1 defense","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]}],"else":[],"comment":"+def","isExpanded":{"self":false},"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]},2],"then":[{"type":"runScript","scriptName":"2JGDt1zcVE","isEntityScript":false,"vars":[]}],"else":[],"isExpanded":{"self":false},"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]},3],"then":[{"type":"forAllItems","itemGroup":{"function":"allItemsOwnedByUnit","entity":{"function":"thisEntity","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"entity":{"function":"selectedItem","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"none"],"then":[{"type":"setEntityVariable","entity":{"function":"selectedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward","comment":"","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"selectedItem","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"value":0,"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},{"type":"return","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"else":[],"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"else":[],"isExpanded":{"self":false},"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]},5],"then":[{"type":"forAllItems","itemGroup":{"function":"allItemsOwnedByUnit","entity":{"function":"thisEntity","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"entity":{"function":"selectedItem","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"none"],"then":[{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getRandomNumberBetween","min":0.001,"max":1,"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},0.5],"then":[{"type":"setEntityVariable","entity":{"function":"selectedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn left","comment":"","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"else":[{"type":"setEntityVariable","entity":{"function":"selectedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn right","comment":"","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"selectedItem","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"value":0,"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},{"type":"return","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"else":[],"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"else":[],"isExpanded":{"self":false},"vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]},6],"then":[{"type":"forAllItems","itemGroup":{"function":"allItemsOwnedByUnit","entity":{"function":"thisEntity","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"avIk3kXa8A","key":"direction"},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"entity":{"function":"selectedItem","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"forward"],"then":[{"type":"setEntityVariable","entity":{"function":"selectedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward2x","comment":"","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"selectedItem","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},"value":0,"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]},{"type":"return","vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"else":[],"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"vars":[{"id":"selectedItem","source":"forAllItems"},{"id":"getSelectedItem","source":"forAllItems"}]}],"else":[],"isExpanded":{"self":false},"vars":[]},{"type":"runScript","scriptName":"GXNGbZqcq0","isEntityScript":true,"vars":[]},{"type":"runScript","scriptName":"YaDiyjMb3e","isEntityScript":true,"vars":[]}],"else":[],"vars":[]}],"name":"level up","parent":null,"key":"lnFsKolTnR","order":4},"j5X5rVfwDl":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"forAllPlayers","playerGroup":{"function":"humanPlayers","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"}]},"actions":[{"type":"condition","conditions":[{"operandType":"player","operator":"=="},{"function":"selectedPlayer","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"}]},{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"}]}],"then":[{"type":"continue","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"}]}],"else":[],"isExpanded":{"self":false},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"}]},{"type":"forAllUnits","unitGroup":{"function":"allUnitsOwnedByPlayer","player":{"function":"selectedPlayer","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"regionOverlapsWithRegion","regionA":{"function":"dynamicRegion","x":{"function":"getPositionX","position":{"function":"getMouseCursorPosition","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"y":{"function":"getPositionY","position":{"function":"getMouseCursorPosition","player":{"function":"getOwner","entity":{"function":"getVariable","variableName":"tempUnit","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"width":1,"height":1,"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"regionB":{"function":"entityBounds","entity":{"function":"selectedUnit","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},true],"then":[{"type":"setVariable","value":{"function":"selectedUnit","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"variableName":"tempUnit","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},{"type":"runScript","scriptName":"8wov7ofQfC","isEntityScript":false,"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},{"type":"setVariable","value":{"function":"thisEntity","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},"variableName":"tempUnit","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},{"type":"runScript","scriptName":"q6yTBBymHD","isEntityScript":false,"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]},{"type":"return","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]}],"else":[],"comment":"","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]}],"vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"},{"id":"selectedUnit","source":"forAllUnits"},{"id":"getSelectedUnit","source":"forAllUnits"}]}],"comment":"click on another user to make them builder","vars":[{"id":"selectedPlayer","source":"forAllPlayers"},{"id":"getSelectedPlayer","source":"forAllPlayers"}]},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"9SDtGUOM4N","key":"canPlace"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"condition","conditions":[{"operator":">=","operandType":"number"},{"function":"getEntityAttribute","attribute":"z3wCUcvtXW","entity":{"function":"thisEntity","vars":[]},"vars":[]},1],"then":[{"type":"spawnItem","itemType":"t607ZcW20A","position":{"function":"getMouseCursorPosition","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]},"disabled":false,"vars":[]},{"type":"moveEntity","entity":{"function":"getLastCreatedUnit","vars":[]},"position":{"function":"xyCoordinate","x":{"function":"calculate","items":[{"operator":"+"},{"function":"getPositionX","position":{"function":"getEntityPosition","entity":{"function":"getLastCreatedUnit"}}},{"function":"getRandomNumberBetween","min":-3,"max":3}],"vars":[]},"y":{"function":"calculate","items":[{"operator":"+"},{"function":"getPositionY","position":{"function":"getEntityPosition","entity":{"function":"getLastCreatedUnit"}}},{"function":"getRandomNumberBetween","min":-3,"max":3}],"vars":[]},"vars":[]},"disabled":true,"vars":[]},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"}},"value":{"function":"thisEntity"},"vars":[]},{"type":"setEntityAttribute","attribute":"z3wCUcvtXW","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"z3wCUcvtXW","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]}],"else":[],"vars":[]}],"else":[],"vars":[]}],"name":"onClick","parent":"HP6j9lWHBr","key":"j5X5rVfwDl","order":2},"HP6j9lWHBr":{"key":"HP6j9lWHBr","folderName":"wizard","parent":null,"order":2,"expanded":false},"QLndWv5Lkz":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"9SDtGUOM4N","key":"canPlace"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"ZoomOut","dataType":"boolean","entity":"9SDtGUOM4N","key":"ZoomOut"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},false],"then":[{"type":"setEntityVariable","entity":{"function":"thisEntity"},"variable":{"function":"getEntityVariable","variable":{"text":"ZoomOut","dataType":"boolean","entity":"9SDtGUOM4N","key":"ZoomOut"}},"value":true,"vars":[]},{"type":"playerCameraSetZoom","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"zoom":3200,"vars":[]},{"type":"positionCamera","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"position":{"function":"centerOfRegion","region":{"function":"getEntireMapRegion","vars":[]},"vars":[]},"vars":[]}],"else":[{"type":"setEntityVariable","entity":{"function":"thisEntity"},"variable":{"function":"getEntityVariable","variable":{"text":"ZoomOut","dataType":"boolean","entity":"9SDtGUOM4N","key":"ZoomOut"}},"value":false,"vars":[]},{"type":"playerCameraSetZoom","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"zoom":800,"vars":[]},{"type":"playerCameraTrackUnit","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"unit":{"function":"thisEntity","vars":[]},"vars":[]}],"vars":[]}],"else":[],"vars":[]}],"name":"zoom toggle","parent":"HP6j9lWHBr","key":"QLndWv5Lkz","order":3},"j3s4HeNmHG":{"triggers":[{"type":"frameTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"comment","comment":"pick up resources on contact","vars":[]},{"type":"forAllEntities","entityGroup":{"function":"entitiesInRegion","region":{"function":"entityBounds","entity":{"function":"thisEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"actions":[{"type":"condition","conditions":[{"operandType":"itemType","operator":"=="},{"function":"getItemTypeOfItem","entity":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"TanIDE8v59"],"then":[{"type":"makeUnitPickupItem","unit":{"function":"thisEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"item":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},{"type":"return","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"else":[],"isExpanded":{"then":true},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getEntityType","entity":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"item"],"then":[{"type":"condition","conditions":[{"operandType":"itemType","operator":"=="},{"function":"getItemTypeOfItem","entity":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"t607ZcW20A"],"then":[{"type":"condition","conditions":[{"operator":"!=","operandType":"unit"},{"function":"thisEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"entity":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"then":[{"type":"makeUnitPickupItem","unit":{"function":"thisEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"item":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},{"type":"setPlayerAttribute","attribute":"z3wCUcvtXW","entity":{"function":"getOwner","entity":{"function":"getSelectedEntity","vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getPlayerAttribute","attribute":"z3wCUcvtXW","entity":{"function":"getOwner","entity":{"function":"thisEntity"}}},1],"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"else":[],"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"else":[],"isExpanded":{"then":false},"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"else":[],"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"vars":[{"id":"selectedEntity","source":"forAllEntities"},{"id":"getSelectedEntity","source":"forAllEntities"}]}],"name":"auto resource pickup","parent":null,"key":"j3s4HeNmHG","order":5},"MWWvRPuFM7":{"triggers":[{"type":"entityAttributeBecomesZero"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"health"],"then":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"9SDtGUOM4N","key":"canPlace"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"runScript","scriptName":"OFk72ydAoq","isEntityScript":false,"vars":[]}],"else":[],"comment":"assign new builder (not needed anymore)","disabled":true,"vars":[]},{"type":"setVariable","value":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"variableName":"tempPlayer","vars":[]},{"type":"setPlayerAttribute","attribute":"INANvNcL3I","entity":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getPlayerAttribute","attribute":"INANvNcL3I","entity":{"function":"getOwner","entity":{"function":"thisEntity"}}},1],"vars":[]},"comment":"counts amount of time player has died in total","vars":[]},{"type":"setPlayerAttribute","attribute":"Vaw3XmnaPv","entity":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getPlayerAttribute","attribute":"Vaw3XmnaPv","entity":{"function":"getOwner","entity":{"function":"thisEntity"}}},1],"vars":[]},"comment":"gives tokens based on level","vars":[]},{"type":"sendChatMessageToPlayer","message":{"function":"concat","textA":{"function":"concat","textA":"This unit made ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":"steps in this world before perishing as a ","vars":[]},"vars":[]},"textB":null,"vars":[]},"player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"disabled":true,"vars":[]},{"type":"setVariable","value":{"function":"concat","textA":{"function":"entityName","entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":{"function":"concat","textA":" made ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":{"function":"concat","textA":" steps before they ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"deathReason","dataType":"string","entity":"sbh8dWN9Pa","key":"deathReason"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":{"function":"concat","textA":". L: ","textB":{"function":"concat","textA":{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":{"function":"concat","textA":" Position: [ ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"xPos","dataType":"number","entity":"sbh8dWN9Pa","key":"xPos"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":{"function":"concat","textA":" / ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"yPos","dataType":"number","entity":"sbh8dWN9Pa","key":"yPos"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":" ]","vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"variableName":"tempStr","comment":"","vars":[]},{"type":"condition","conditions":[{"operator":"!=","operandType":"string"},{"function":"getPlayerName","entity":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]},"minotalen"],"then":[{"type":"condition","conditions":[{"operator":">=","operandType":"number"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity","vars":[]},"vars":[]},2],"then":[{"type":"sendChatMessage","message":{"function":"getVariable","variableName":"tempStr","vars":[]},"vars":[]},{"type":"runScript","scriptName":"irhL2jtcdJ","isEntityScript":false,"vars":[]}],"else":[],"comment":"don't care for immediate quits and normie controls","vars":[]}],"else":[],"comment":"no debug logs for mino :(","vars":[]},{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[]},"vars":[]},{"type":"runScript","scriptName":"cIdAea2aEj","isEntityScript":false,"vars":[]}],"else":[],"vars":[]}],"name":"unit death","parent":"9pcpmCCDnw","key":"MWWvRPuFM7","order":5},"mexA48Qku9":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityAttribute","attribute":"health","entity":{"function":"thisEntity","vars":[]},"value":0,"vars":[]}],"name":"destroy self","parent":"9pcpmCCDnw","key":"mexA48Qku9","order":4},"jf4wSda709":{"triggers":[{"type":"entityAttributeBecomesFull"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"z3wCUcvtXW"],"then":[{"type":"updateUiTextForTimeForPlayer","target":"top","value":{"function":"concat","textA":"","textB":"Left click to place stars!","vars":[]},"player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"time":3000,"vars":[]}],"else":[],"vars":[]}],"name":"stars full","parent":"HP6j9lWHBr","key":"jf4wSda709","order":4},"zwjn06YZNl":{"triggers":[{"type":"frameTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getVariable","variableName":"placeBool"},true],"then":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getPlayerName","entity":{"function":"getOwner","entity":{"function":"thisEntity"}}},"minotalen"],"then":[{"type":"spawnItem","itemType":"t607ZcW20A","position":{"function":"getMouseCursorPosition","player":{"function":"getOwner","entity":{"function":"thisEntity"}}},"disabled":false,"runMode":2},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"_owner","dataType":"unit","entity":"t607ZcW20A","key":"_owner"}},"value":{"function":"thisEntity"},"disabled":true}],"else":[]}],"else":[],"runMode":2,"runOnClient":true}],"name":"CSP test","parent":"rlD4W1pYyh","key":"zwjn06YZNl","order":0},"81RXRfAaFT":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getPlayerName","entity":{"function":"getOwner","entity":{"function":"thisEntity"}}},"minotalen"],"then":[{"type":"setVariable","value":true,"variableName":"placeBool"}],"else":[]}],"name":"spawn enable ","parent":"rlD4W1pYyh","key":"81RXRfAaFT","order":1},"k15ROBHOOC":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":false,"variableName":"placeBool","comment":""}],"name":"spawn disable","parent":"rlD4W1pYyh","key":"k15ROBHOOC","order":2},"rlD4W1pYyh":{"key":"rlD4W1pYyh","folderName":"CSP debug","parent":null,"order":3,"expanded":false},"9pcpmCCDnw":{"key":"9pcpmCCDnw","folderName":"create / destroy","parent":null,"order":-1,"expanded":false},"GXNGbZqcq0":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setUnitNameLabel","unit":{"function":"thisEntity","vars":[]},"name":{"function":"concat","textA":"","textB":{"function":"concat","textA":{"function":"getPlayerName","entity":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]},"textB":{"function":"concat","textA":" (","textB":{"function":"concat","textA":{"function":"getEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":{"function":"concat","textA":"/","textB":{"function":"concat","textA":{"function":"getEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":")","vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"vars":[]},"disabled":false,"vars":[]},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"sbh8dWN9Pa","key":"canPlace"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"setEntityAttributeRegenerationRate","attribute":"z3wCUcvtXW","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},0.05,{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}},0.01]}],"vars":[]},"disabled":true,"vars":[]},{"type":"setUnitNameLabel","unit":{"function":"thisEntity","vars":[]},"name":{"function":"concat","textA":"★ ","textB":{"function":"entityName","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]},"disabled":false,"vars":[]}],"else":[],"vars":[]},{"type":"setUnitNameLabel","unit":{"function":"thisEntity","vars":[]},"name":"         ","disabled":true,"vars":[]}],"name":"set name","parent":"9pcpmCCDnw","key":"GXNGbZqcq0","order":3},"djqbaBpSs4":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[],"name":"chat commands","parent":null,"key":"djqbaBpSs4","order":6},"N0MSbCvqSH":{"key":"N0MSbCvqSH","folderName":"starter items","parent":"9pcpmCCDnw","order":1,"expanded":false},"q2Hw7e7ty3":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"itemType","operator":"=="},{"function":"getItemTypeOfItem","entity":{"function":"getItemInInventorySlot","slot":1,"entity":{"function":"getLastCreatedUnit"}}},"rucjuZOoxx"],"then":[{"type":"return"}],"else":[],"comment":"don't generate starting items if unit already has items"},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key  item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn left","comment":"","disabled":true},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward","comment":"","disabled":true},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"none","comment":"","disabled":false},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"Q","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"up","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"W","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"turn right","comment":"","disabled":true},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"forward2x","comment":"","disabled":true},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"none","comment":"","disabled":false},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"E","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"left","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"A","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"down","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"S","comment":""},{"type":"giveNewItemToUnit","itemType":"rucjuZOoxx","unit":{"function":"thisEntity"},"comment":"make new key item"},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"direction","dataType":"string","entity":"rucjuZOoxx","key":"direction"}},"value":"right","comment":""},{"type":"setEntityVariable","entity":{"function":"getLastCreatedItem"},"variable":{"function":"getEntityVariable","variable":{"text":"key","dataType":"string","entity":"rucjuZOoxx","key":"key"}},"value":"D","comment":""},{"type":"for","variableName":"intFor","start":1,"stop":6,"actions":[{"type":"setEntityVariable","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"intFor"},"entity":{"function":"thisEntity"}},"variable":{"function":"getEntityVariable","variable":{"text":"slot","dataType":"number","entity":"rucjuZOoxx","key":"slot"}},"value":{"function":"getVariable","variableName":"intFor"}},{"type":"setEntityAttribute","attribute":"W0lr8hWl3b","entity":{"function":"getItemInInventorySlot","slot":{"function":"getVariable","variableName":"intFor"},"entity":{"function":"thisEntity"}},"value":0},{"type":"updateItemQuantity","entity":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}},"quantity":50},{"type":"changeInventorySlotColor","item":{"function":"getItemAtSlot","slot":{"function":"getVariable","variableName":"intFor"},"unit":{"function":"thisEntity"}},"string":"Black"}],"disabled":false}],"name":"loadout 1","parent":"N0MSbCvqSH","key":"q2Hw7e7ty3","order":0},"9RgR0HluFv":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityVariable","entity":{"function":"thisEntity"},"variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"9SDtGUOM4N","key":"stepsTaken"}},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"9SDtGUOM4N","key":"stepsTaken"}},"entity":{"function":"thisEntity"}},1]},"vars":[]},{"type":"setPlayerAttribute","attribute":"z3wCUcvtXW","entity":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]},{"type":"setVariable","value":{"function":"thisEntity","vars":[]},"variableName":"tempUnit","vars":[]},{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"9SDtGUOM4N","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"9SDtGUOM4N","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}],"vars":[]},0],"then":[{"type":"runScript","scriptName":"u7SJVui1VN","isEntityScript":false,"vars":[]}],"else":[{"type":"condition","conditions":[{"operandType":"number","operator":"=="},{"function":"calculate","items":[{"operator":"%"},{"function":"calculate","items":[{"operator":"+"},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"}},"entity":{"function":"getVariable","variableName":"tempUnit"}},3]},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsToSwap","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsToSwap"}},"entity":{"function":"getVariable","variableName":"tempUnit"}}],"vars":[]},0],"then":[{"type":"runScript","scriptName":"2JGDt1zcVE","isEntityScript":false,"vars":[]}],"else":[],"comment":"prepare the switch and highlight the keys that are about to swap","disabled":true,"vars":[]}],"isExpanded":{"self":true},"vars":[]},{"type":"runScript","scriptName":"wTHUtQ9azj","isEntityScript":false,"runMode":0,"vars":[]}],"name":"step handler","parent":"5w9GjDMejB","key":"9RgR0HluFv","order":7},"YaDiyjMb3e":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"sbh8dWN9Pa","key":"canPlace"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"playerCameraSetZoom","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"zoom":{"function":"calculate","items":[{"operator":"+"},800,{"function":"calculate","items":[{"operator":"*"},40,{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}}]}],"vars":[]},"comment":"increase camera zoom for builder","vars":[]},{"type":"setEntityAttributeRegenerationRate","attribute":"z3wCUcvtXW","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"+"},0.05,{"function":"calculate","items":[{"operator":"*"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}},0.01]}],"vars":[]},"vars":[]}],"else":[{"type":"playerCameraSetZoom","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"zoom":{"function":"calculate","items":[{"operator":"+"},750,{"function":"calculate","items":[{"operator":"*"},30,{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"thisEntity"}}]}],"vars":[]},"comment":"increase camera zoom for players","vars":[]}],"isExpanded":{"self":true,"else":true,"then":true},"comment":"camera zoom increase","vars":[]}],"name":"set zoom & star regen","parent":"HP6j9lWHBr","key":"YaDiyjMb3e","order":1},"eVY3kONsI7":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"thisEntity","vars":[]},"variableName":"tempUnit","runMode":0,"vars":[]},{"type":"runScript","scriptName":"wTHUtQ9azj","isEntityScript":false,"runMode":0,"vars":[]}],"name":"visuals","parent":null,"key":"eVY3kONsI7","order":7},"Db37uYfoEJ":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"openDialogueForPlayer","dialogue":"L6v4gVWJ6E","player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"vars":[]}],"name":"H - open guides screen","parent":"5w9GjDMejB","key":"Db37uYfoEJ","order":6},"NWmwWe8qJV":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setUnitNameLabel","unit":{"function":"thisEntity","vars":[]},"name":"         ","disabled":false,"comment":"level 1 unit is nameless","vars":[]},{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"canPlace","dataType":"boolean","entity":"sbh8dWN9Pa","key":"canPlace"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"setUnitNameLabel","unit":{"function":"thisEntity","vars":[]},"name":{"function":"concat","textA":"★ ","textB":"","vars":[]},"disabled":false,"vars":[]}],"else":[],"vars":[]}],"name":"clear name","parent":"9pcpmCCDnw","key":"NWmwWe8qJV","order":2},"Oq9JwwndO4":{"triggers":[{"type":"entityEntersRegion"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"nameOfRegion","region":{"function":"getTriggeringRegion","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"goal"],"then":[{"type":"setVariable","value":{"function":"thisEntity","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"variableName":"tempUnit","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},{"type":"runScript","scriptName":"8wov7ofQfC","isEntityScript":false,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},{"type":"runScript","scriptName":"YOBXiOj2Jd","isEntityScript":false,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},{"type":"runScript","scriptName":"8CEkCzfKCF","isEntityScript":false,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},{"type":"runScript","scriptName":"YaDiyjMb3e","isEntityScript":true,"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},{"type":"setEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"1EwASqxRMD","entity":{"function":"getVariable","variableName":"tempUnit"}},1],"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"comment":"reduce by a level cause why not","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},{"type":"setEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"getVariable","variableName":"tempUnit","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"9GAx9TJq8y","entity":{"function":"getVariable","variableName":"tempUnit"}},1],"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"comment":"same for ATK and DEF so looping loses you stats","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},{"type":"setEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"getVariable","variableName":"tempUnit","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"aQhoXCHK9u","entity":{"function":"getVariable","variableName":"tempUnit"}},1],"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]},"comment":"","vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]}],"else":[],"vars":[{"id":"getTriggeringUnit","source":"trigger"},{"id":"getTriggeringRegion","source":"trigger"}]}],"name":"enter goal: become wizard","parent":"HP6j9lWHBr","key":"Oq9JwwndO4","order":0}},"isUnTargetable":false,"unitTypes":{"9SDtGUOM4N":{"scripts":{"hUZDdqqdZc":{"name":"move up"},"dDFuVoZU0A":{"name":"go to current pos"},"Xt8E9Q31Do":{"name":"move down"},"fDBq78BzbT":{"name":"keyUpPress"},"Jn5vawdyC3":{"name":"key A"},"XajBFs3QXK":{"name":"key Q"},"JPOp61D8nw":{"name":"key E"},"Uo7Kht6k9k":{"name":"key S"},"H87pigDdyn":{"name":"key D"},"lnFsKolTnR":{"name":"level up"},"j5X5rVfwDl":{"name":"onClick"},"QLndWv5Lkz":{"name":"zoom toggle"}}},"sbh8dWN9Pa":{"scripts":{"MWWvRPuFM7":{"name":"unit death"},"mexA48Qku9":{"name":"kill self"},"zwjn06YZNl":{"name":"CSP test"},"81RXRfAaFT":{"name":"spawn enable "},"k15ROBHOOC":{"name":"spawn disable"},"Db37uYfoEJ":{"name":"h - open guides screen"}}}},"frames":{},"id":"sbh8dWN9Pa","streamMode":1},"ZEgq7P7cTN":{"backpackSize":0,"defaultItem":[],"controls":{"permittedInventorySlots":[],"movementMethod":"velocity","movementControlScheme":"wasd","abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"e":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"w2VrnZHyom","cost":{},"isEntityScript":true}},"g":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"yP67J1MMRN","cost":{},"isEntityScript":true}},"button1":{"keyUp":{"scriptName":"DOrbWp0AGz","cost":{},"isEntityScript":true},"keyDown":{"scriptName":"YFeMQ20gBX","cost":{},"isEntityScript":true}}},"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"movementType":"wasd","absoluteRotation":false},"inventoryImage":"https://cache.modd.io/asset/spriteImage/1683258732740_sign.png","animations":{"default":{"name":"default","frames":[25],"loopCount":0,"framesPerSecond":0},"shSrWsEiWx":{"name":"right up normal","frames":[22],"framesPerSecond":0,"loopCount":""}},"canBePurchasedBy":[],"isPurchasable":false,"states":{"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"sound":{"KK9JlU1UQy":{"name":"Cough","file":"https://modd.s3.amazonaws.com/asset/sound/1517554516253_man_cough.mp3"},"fEhDyJ8knx":{"name":"Scream","file":"https://modd.s3.amazonaws.com/asset/sound/1517556903046_man_scream1.mp3"}},"particles":{},"body":{"spriteScale":1,"fixtures":[{"shape":{"type":"rectangle"},"restitution":0.01,"friction":0.01,"density":3}],"isFlying":false,"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"angularDamping":1,"linearDamping":5,"rotationSpeed":2,"type":"dynamic","height":40,"width":40,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"unit":true,"item":true,"debris":true},"z-index":{"layer":3,"depth":3},"name":"Human-body"},"spawnPosition":{"y":2200,"x":1500},"attributes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#ffff0f","showAsHUD":true,"displayValue":true,"isVisible":["centerBar"],"regenerateSpeed":0,"value":100,"dataType":"","max":100,"min":0,"name":"health "},"tluak6Uefw":{"name":"counter attack","min":0,"max":99,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"w":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"a":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"s":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"d":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"button1":{"keyUp":"stopUsingItem","keyDown":"startUsingItem","mobilePosition":{"x":326,"y":132}},"up":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"down":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"left":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"right":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"e":{"keyUp":"","keyDown":"pickUp","mobilePosition":{"x":366,"y":85}},"f":{"keyUp":"","keyDown":"pickUp"},"g":{"keyUp":"","keyDown":"drop","mobilePosition":{"x":365,"y":33}},"b":{"keyUp":"","keyDown":"shop","mobilePosition":{"x":419,"y":32}}},"baseSpeed":53,"price":{},"skin":"https://s3-us-west-1.amazonaws.com/modd/halloween-0.18/spritesheet/man.png","canBuyItem":true,"handle":"human","name":"Sign","inventorySize":5,"cellSheet":{"url":"https://cache.modd.io/asset/spriteImage/1683258572122_signs.png","rowCount":3,"columnCount":9},"bodies":{"default":{"bullet":false,"name":"default","type":"static","width":64,"height":64,"z-index":{"layer":3,"depth":3},"fixedRotation":true,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":true},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":"1.5","fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":true}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0},"affectedByGravity":false}},"variables":{"dialogueID":{"default":"none","dataType":"string"}},"effects":{"idle":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"attacked":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"move":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""}},"confinedWithinMapBoundaries":true,"ai":{"pathFindingMethod":"simple","idleBehaviour":"stay","sensorResponse":"none","attackResponse":"none","maxTravelDistance":300,"sensorRadius":150,"maxAttackRange":400,"letGoDistance":"","enabled":false},"defaultItems":[],"scripts":{"NYzCMNw5lg":{"triggers":[{"type":"unitEntersSensor"},{"type":"entityTouchesUnit"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"dialogueID","dataType":"string","entity":"ZEgq7P7cTN","key":"dialogueID"}},"entity":{"function":"thisEntity"}},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"lastSignID","dataType":"string","entity":"sbh8dWN9Pa","key":"lastSignID"}},"entity":{"function":"getTriggeringUnit"}}],"then":[{"type":"return"}],"else":[],"comment":"don't read same sign twice"},{"type":"setEntityVariable","entity":{"function":"getTriggeringUnit"},"variable":{"function":"getEntityVariable","variable":{"text":"lastSignID","dataType":"string","entity":"sbh8dWN9Pa","key":"lastSignID"}},"value":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"dialogueID","dataType":"string","entity":"ZEgq7P7cTN","key":"dialogueID"}},"entity":{"function":"thisEntity"}}},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"dialogueID","dataType":"string","entity":"ZEgq7P7cTN","key":"dialogueID"}},"entity":{"function":"thisEntity"}},"Intro"],"then":[{"type":"openDialogueForPlayer","dialogue":"PU6nSRZop7","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}}}],"else":[]},{"type":"condition","conditions":[{"operandType":"string","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"dialogueID","dataType":"string","entity":"ZEgq7P7cTN","key":"dialogueID"}},"entity":{"function":"thisEntity"}},"Intro2"],"then":[{"type":"openDialogueForPlayer","dialogue":"RKgiU1o1vd","player":{"function":"getOwner","entity":{"function":"getTriggeringUnit"}}}],"else":[]}],"name":"unit enters","parent":null,"key":"NYzCMNw5lg","order":-1},"AWf4k1EgbH":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"signActive","dataType":"boolean","entity":"ZEgq7P7cTN","key":"signActive"}},"entity":{"function":"thisEntity"}},true],"then":[{"type":"createFloatingText","text":"Read Me","position":{"function":"getEntityPosition","entity":{"function":"thisEntity"}},"color":"blue"}],"else":[],"disabled":true},{"type":"setUnitNameLabel","unit":{"function":"thisEntity"},"name":"Sign"}],"name":"active indicator","parent":null,"key":"AWf4k1EgbH","order":1}},"isUnTargetable":false,"frames":{},"unitTypes":{"ZEgq7P7cTN":{"scripts":{"NYzCMNw5lg":{"name":"unit enters"},"AWf4k1EgbH":{"name":"active indicator"}}}}},"6DBuOODRNU":{"ai":{"maxTravelDistance":300,"attackResponse":"none","sensorResponse":"none","idleBehaviour":"stay","pathFindingMethod":"simple"},"controls":{"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"e":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"w2VrnZHyom","cost":{},"isEntityScript":true}},"g":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"yP67J1MMRN","cost":{},"isEntityScript":true}},"button1":{"keyUp":{"scriptName":"DOrbWp0AGz","cost":{},"isEntityScript":true},"keyDown":{"scriptName":"YFeMQ20gBX","cost":{},"isEntityScript":true}}},"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":true,"rotateToFaceMouseCursor":false},"movementType":"wasd","movementControlScheme":"ad","movementMethod":"velocity","permittedInventorySlots":[],"absoluteRotation":false},"variables":{},"bodies":{"default":{"itemAnchor":{"upperAngle":0,"lowerAngle":0,"y":0,"x":0},"unitAnchor":{"rotation":0,"y":33,"x":0},"jointType":"weldJoint","fixtures":[{"isSensor":false,"shape":{"type":"rectangle"},"restitution":0,"friction":0,"density":1}],"spriteScale":"1.5","rotationSpeed":1,"linearDamping":8,"angularDamping":1,"collidesWith":{"debris":false,"walls":true,"projectiles":false,"items":true,"units":true},"allowSleep":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"fixedRotation":true,"z-index":{"depth":3,"layer":3},"height":240,"width":144,"type":"static","name":"default","bullet":false,"affectedByGravity":false}},"cellSheet":{"columnCount":8,"rowCount":2,"url":"https://cache.modd.io/asset/spriteImage/1683247848652_trees.png"},"inventorySize":5,"name":"Tree","handle":"human","canBuyItem":true,"skin":"https://s3-us-west-1.amazonaws.com/modd/halloween-0.18/spritesheet/man.png","price":{},"baseSpeed":53,"abilities":{"space":{"keyUp":"","keyDown":"jump"},"right":{"keyDown":"moveRight","keyUp":"stopMovingRight"},"left":{"keyDown":"moveLeft","keyUp":"stopMovingLeft"},"d":{"keyDown":"moveRight","keyUp":"stopMovingRight"},"button1":{"keyDown":"use","keyUp":"stopUse"},"e":{"keyDown":"pickUp","keyUp":""},"g":{"keyDown":"drop","keyUp":""},"a":{"keyDown":"moveLeft","keyUp":"stopMovingLeft"},"lookWheel":{"mobilePosition":{"x":407,"y":204}},"movementWheel":{"mobilePosition":{"x":35,"y":204}},"b":{"keyUp":"","keyDown":"shop"}},"attributes":{"health":{"name":"health ","min":0,"max":20,"dataType":"","value":20,"regenerateSpeed":"0.05","isVisible":["centerBar","unitBarFriendly","unitBarNeutral","unitBarHostile"],"displayValue":false,"showAsHUD":true,"color":"#6dec04","decimalPlaces":0,"showWhen":"whenIsLessThanMax"},"speed":{"displayValue":true,"color":"#00fff0","showAsHUD":true,"isVisible":[],"regenerateSpeed":0,"value":10,"max":200,"min":0,"name":"speed","dataType":"","decimalPlaces":0},"aQhoXCHK9u":{"name":"defense","min":0,"max":100,"dataType":"","value":4,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"tluak6Uefw":{"name":"counter attack","min":0,"max":null,"dataType":"","value":3,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"spawnPosition":{"x":1500,"y":2200},"body":{"name":"Human-body","z-index":{"depth":3,"layer":3},"collidesWith":{"debris":true,"item":true,"unit":true,"walls":true,"projectiles":true,"items":true,"units":true},"width":40,"height":40,"type":"dynamic","rotationSpeed":2,"linearDamping":5,"angularDamping":1,"allowSleep":true,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"fixedRotation":false,"isFlying":false,"fixtures":[{"density":3,"friction":0.01,"restitution":0.01,"shape":{"type":"rectangle"}}],"spriteScale":1},"particles":{},"sound":{"fEhDyJ8knx":{"file":"https://modd.s3.amazonaws.com/asset/sound/1517556903046_man_scream1.mp3","name":"Scream"},"KK9JlU1UQy":{"file":"https://modd.s3.amazonaws.com/asset/sound/1517554516253_man_cough.mp3","name":"Cough"}},"states":{"default":{"body":"default","animation":"default","particles":{},"sound":{},"name":"default"}},"isPurchasable":false,"canBePurchasedBy":[],"animations":{"default":{"framesPerSecond":8,"loopCount":null,"frames":[1,2,3,4,5,6,7,8],"name":"default"},"dBU1Obr1wM":{"name":"alternative","frames":[9,10,11,12,13,14,15,16],"framesPerSecond":8,"loopCount":""}},"inventoryImage":"","defaultItem":[],"defaultItems":[],"backpackSize":0,"scripts":{"He9VkdxXpu":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setUnitNameLabel","unit":{"function":"thisEntity"},"name":"Tree"},{"type":"condition","conditions":[{"operator":">","operandType":"number"},{"function":"getRandomNumberBetween","min":0,"max":2},1],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"dBU1Obr1wM"}],"else":[]}],"name":"creation","parent":null,"key":"He9VkdxXpu","order":1},"todNj8E17L":{"triggers":[{"type":"entityAttributeBecomesZero"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"health"],"then":[{"type":"sendChatMessageToPlayer","message":{"function":"concat","textA":{"function":"concat","textA":"This unit made ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":"steps in this world before perishing as a ","vars":[]},"vars":[]},"textB":null,"vars":[]},"player":{"function":"getOwner","entity":{"function":"thisEntity","vars":[]},"vars":[]},"disabled":true,"vars":[]},{"type":"sendChatMessage","message":{"function":"concat","textA":{"function":"entityName","entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":{"function":"concat","textA":" made ","textB":{"function":"concat","textA":{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"stepsTaken","dataType":"number","entity":"sbh8dWN9Pa","key":"stepsTaken"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},"textB":" steps before perishing.","vars":[]},"vars":[]},"vars":[]},"vars":[],"disabled":true},{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[]},"vars":[]}],"else":[],"vars":[]}],"name":"unit death","parent":null,"key":"todNj8E17L","order":2}},"unitTypes":{"6DBuOODRNU":{"scripts":{"He9VkdxXpu":{"name":"creation"},"todNj8E17L":{"name":"unit death"}}}}},"ZjN23ZekKt":{"backpackSize":0,"defaultItem":[],"controls":{"permittedInventorySlots":[],"movementMethod":"velocity","movementControlScheme":"wasd","abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"e":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"w2VrnZHyom","cost":{},"isEntityScript":true}},"g":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"yP67J1MMRN","cost":{},"isEntityScript":true}},"button1":{"keyUp":{"scriptName":"DOrbWp0AGz","cost":{},"isEntityScript":true},"keyDown":{"scriptName":"YFeMQ20gBX","cost":{},"isEntityScript":true}}},"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"movementType":"wasd","absoluteRotation":false},"inventoryImage":"https://cache.modd.io/asset/spriteImage/1683259297757_grassinv.png","animations":{"default":{"name":"default","frames":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"loopCount":null,"framesPerSecond":12},"dBU1Obr1wM":{"name":"alternative","frames":[17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"framesPerSecond":12,"loopCount":""},"ahXVsqztCE":{"name":"alternative2","frames":[33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"framesPerSecond":12,"loopCount":""}},"canBePurchasedBy":[],"isPurchasable":false,"states":{"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"sound":{"KK9JlU1UQy":{"name":"Cough","file":"https://modd.s3.amazonaws.com/asset/sound/1517554516253_man_cough.mp3"},"fEhDyJ8knx":{"name":"Scream","file":"https://modd.s3.amazonaws.com/asset/sound/1517556903046_man_scream1.mp3"}},"particles":{},"body":{"spriteScale":1,"fixtures":[{"shape":{"type":"rectangle"},"restitution":0.01,"friction":0.01,"density":3}],"isFlying":false,"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"angularDamping":1,"linearDamping":5,"rotationSpeed":2,"type":"dynamic","height":40,"width":40,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"unit":true,"item":true,"debris":true},"z-index":{"layer":3,"depth":3},"name":"Human-body"},"spawnPosition":{"y":2200,"x":1500},"attributes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#ffff0f","showAsHUD":true,"displayValue":true,"isVisible":["centerBar"],"regenerateSpeed":0,"value":100,"dataType":"","max":100,"min":0,"name":"health "},"kCDgANucqE":{"name":"creationTime","min":0,"max":999999,"dataType":"time","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"w1hyUME41P":{"name":"secToDestroy","min":0,"max":100,"dataType":"","value":30,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"tluak6Uefw":{"name":"counter attack","min":0,"max":99,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"w":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"a":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"s":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"d":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"button1":{"keyUp":"stopUsingItem","keyDown":"startUsingItem","mobilePosition":{"x":326,"y":132}},"up":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"down":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"left":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"right":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"e":{"keyUp":"","keyDown":"pickUp","mobilePosition":{"x":366,"y":85}},"f":{"keyUp":"","keyDown":"pickUp"},"g":{"keyUp":"","keyDown":"drop","mobilePosition":{"x":365,"y":33}},"b":{"keyUp":"","keyDown":"shop","mobilePosition":{"x":419,"y":32}}},"baseSpeed":53,"price":{},"skin":"https://s3-us-west-1.amazonaws.com/modd/halloween-0.18/spritesheet/man.png","canBuyItem":true,"handle":"human","name":"Grass","inventorySize":5,"cellSheet":{"url":"https://cache.modd.io/asset/spriteImage/1683259127495_grass.png","rowCount":3,"columnCount":16},"bodies":{"default":{"bullet":false,"name":"default","type":"static","width":64,"height":64,"z-index":{"layer":2,"depth":10},"fixedRotation":true,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":false,"items":false,"projectiles":false,"walls":false,"debris":false},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":1,"fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":true}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0},"affectedByGravity":false}},"variables":{},"effects":{"idle":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"attacked":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"move":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""}},"confinedWithinMapBoundaries":true,"ai":{"pathFindingMethod":"simple","idleBehaviour":"stay","sensorResponse":"none","attackResponse":"none","maxTravelDistance":300,"sensorRadius":150,"maxAttackRange":400,"letGoDistance":"","enabled":false},"defaultItems":[],"scripts":{"NYzCMNw5lg":{"triggers":[{"type":"unitEntersSensor"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[],"name":"unit enters","parent":null,"key":"NYzCMNw5lg","order":-1},"AWf4k1EgbH":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"signActive","dataType":"boolean","entity":"ZEgq7P7cTN","key":"signActive"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"createFloatingText","text":"Read Me","position":{"function":"getEntityPosition","entity":{"function":"thisEntity","vars":[]},"vars":[]},"color":"blue","vars":[]}],"else":[],"disabled":true,"vars":[]}],"name":"active indicator","parent":null,"key":"AWf4k1EgbH","order":1},"3mBLPIXG6C":{"triggers":[{"type":"entityAttributeBecomesZero"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"w1hyUME41P"],"then":[{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[]},"vars":[]}],"else":[],"vars":[]}],"name":"destroy","parent":null,"key":"3mBLPIXG6C","order":3},"8TI1i25r2H":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]}],"name":"timer down","parent":null,"key":"8TI1i25r2H","order":3},"6JqwzqynDD":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getRandomNumberBetween","min":0.001,"max":1,"vars":[]},"variableName":"tempInt","vars":[]},{"type":"condition","conditions":[{"operator":">=","operandType":"number"},{"function":"getVariable","variableName":"tempInt","vars":[]},{"function":"calculate","items":[{"operator":"/"},2,3],"vars":[]}],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity","vars":[]},"animation":"dBU1Obr1wM","vars":[]},{"type":"setUnitNameLabel","unit":{"function":"thisEntity","vars":[]},"name":"Tree","disabled":true,"vars":[]},{"type":"return","vars":[]}],"else":[],"isExpanded":{"self":false},"vars":[]},{"type":"condition","conditions":[{"operator":">=","operandType":"number"},{"function":"getVariable","variableName":"tempInt","vars":[]},{"function":"calculate","items":[{"operator":"/"},1,3],"vars":[]}],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity","vars":[]},"animation":"ahXVsqztCE","vars":[]},{"type":"setUnitNameLabel","unit":{"function":"thisEntity","vars":[]},"name":"Tree","vars":[]},{"type":"return","vars":[]}],"else":[],"isExpanded":{"self":false},"vars":[]},{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getRandomNumberBetween","min":0.001,"max":1,"vars":[]},0.5],"then":[{"type":"flipEntitySprite","entity":{"function":"thisEntity","vars":[]},"flip":"horizontal","vars":[]}],"else":[],"vars":[]}],"name":"creation","parent":null,"key":"6JqwzqynDD","order":5},"N5nQrcXvOE":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[],"name":"New Script","parent":null,"key":"N5nQrcXvOE","order":5}},"isUnTargetable":false,"frames":{},"unitTypes":{"ZEgq7P7cTN":{"scripts":{"NYzCMNw5lg":{"name":"unit enters"},"AWf4k1EgbH":{"name":"active indicator"}}},"ZjN23ZekKt":{"scripts":{"8TI1i25r2H":{"name":"timer down"}}}}},"zldFwP5bzq":{"backpackSize":0,"defaultItem":[],"controls":{"permittedInventorySlots":[],"movementMethod":"velocity","movementControlScheme":"wasd","abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"e":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"w2VrnZHyom","cost":{},"isEntityScript":true}},"g":{"keyUp":{"scriptName":"","cost":{}},"keyDown":{"scriptName":"yP67J1MMRN","cost":{},"isEntityScript":true}},"button1":{"keyUp":{"scriptName":"DOrbWp0AGz","cost":{},"isEntityScript":true},"keyDown":{"scriptName":"YFeMQ20gBX","cost":{},"isEntityScript":true}}},"mouseBehaviour":{"flipSpriteHorizontallyWRTMouse":false,"rotateToFaceMouseCursor":true},"movementType":"wasd","absoluteRotation":false},"inventoryImage":"https://cache.modd.io/asset/spriteImage/1683261825366_image_2023-05-05_064344899.png","animations":{"default":{"name":"default","frames":[1],"loopCount":null,"framesPerSecond":12},"dBU1Obr1wM":{"name":"alternative","frames":[4],"framesPerSecond":12,"loopCount":""},"ahXVsqztCE":{"name":"alternative2","frames":[10],"framesPerSecond":12,"loopCount":""},"xDeMy1vtl8":{"name":"alternative3","frames":[12],"framesPerSecond":0,"loopCount":""}},"canBePurchasedBy":[],"isPurchasable":false,"states":{"default":{"name":"default","sound":{},"particles":{},"animation":"default","body":"default"}},"sound":{"KK9JlU1UQy":{"name":"Cough","file":"https://modd.s3.amazonaws.com/asset/sound/1517554516253_man_cough.mp3"},"fEhDyJ8knx":{"name":"Scream","file":"https://modd.s3.amazonaws.com/asset/sound/1517556903046_man_scream1.mp3"}},"particles":{},"body":{"spriteScale":1,"fixtures":[{"shape":{"type":"rectangle"},"restitution":0.01,"friction":0.01,"density":3}],"isFlying":false,"fixedRotation":false,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"angularDamping":1,"linearDamping":5,"rotationSpeed":2,"type":"dynamic","height":40,"width":40,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"unit":true,"item":true,"debris":true},"z-index":{"layer":3,"depth":3},"name":"Human-body"},"spawnPosition":{"y":2200,"x":1500},"attributes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#ffff0f","showAsHUD":true,"displayValue":true,"isVisible":["centerBar"],"regenerateSpeed":0,"value":30,"dataType":"","max":100,"min":0,"name":"health "},"kCDgANucqE":{"name":"creationTime","min":0,"max":999999,"dataType":"time","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"w1hyUME41P":{"name":"secToDestroy","min":0,"max":100,"dataType":"","value":90,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"aQhoXCHK9u":{"name":"defense","min":0,"max":100,"dataType":"","value":1,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"tluak6Uefw":{"name":"counter attack","min":0,"max":100,"dataType":"","value":1,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"9GAx9TJq8y":{"name":"attack","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"abilities":{"movementWheel":{"mobilePosition":{"y":204,"x":35}},"lookWheel":{"mobilePosition":{"y":204,"x":407}},"w":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"a":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"s":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"d":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"button1":{"keyUp":"stopUsingItem","keyDown":"startUsingItem","mobilePosition":{"x":326,"y":132}},"up":{"keyUp":"stopMovingUp","keyDown":"moveUp"},"down":{"keyUp":"stopMovingDown","keyDown":"moveDown"},"left":{"keyUp":"stopMovingLeft","keyDown":"moveLeft"},"right":{"keyUp":"stopMovingRight","keyDown":"moveRight"},"e":{"keyUp":"","keyDown":"pickUp","mobilePosition":{"x":366,"y":85}},"f":{"keyUp":"","keyDown":"pickUp"},"g":{"keyUp":"","keyDown":"drop","mobilePosition":{"x":365,"y":33}},"b":{"keyUp":"","keyDown":"shop","mobilePosition":{"x":419,"y":32}}},"baseSpeed":53,"price":{},"skin":"https://s3-us-west-1.amazonaws.com/modd/halloween-0.18/spritesheet/man.png","canBuyItem":true,"handle":"human","name":"Rocks","inventorySize":5,"cellSheet":{"url":"https://cache.modd.io/asset/spriteImage/1683261714431_rocks.png","rowCount":3,"columnCount":4},"bodies":{"default":{"bullet":false,"name":"default","type":"static","width":51,"height":51,"z-index":{"layer":2,"depth":10},"fixedRotation":true,"constantSpeed +DestroyedOnCollisionWithWall/unit":false,"allowSleep":true,"collidesWith":{"units":true,"items":true,"projectiles":false,"walls":false,"debris":false},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":"1.25","fixtures":[{"density":12,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0},"affectedByGravity":false}},"variables":{},"effects":{"idle":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"attacked":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"move":{"projectileType":"","sound":{},"animation":"","tween":"","runScript":""},"create":{"projectileType":"","sound":{},"animation":"","runScript":""},"destroy":{"projectileType":"","sound":{},"animation":"","runScript":""}},"confinedWithinMapBoundaries":true,"ai":{"pathFindingMethod":"simple","idleBehaviour":"stay","sensorResponse":"none","attackResponse":"none","maxTravelDistance":300,"sensorRadius":150,"maxAttackRange":400,"letGoDistance":"","enabled":false},"defaultItems":[],"scripts":{"AWf4k1EgbH":{"triggers":[],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"boolean","operator":"=="},{"function":"getValueOfEntityVariable","variable":{"function":"getEntityVariable","variable":{"text":"signActive","dataType":"boolean","entity":"ZEgq7P7cTN","key":"signActive"},"vars":[]},"entity":{"function":"thisEntity","vars":[]},"vars":[]},true],"then":[{"type":"createFloatingText","text":"Read Me","position":{"function":"getEntityPosition","entity":{"function":"thisEntity","vars":[]},"vars":[]},"color":"blue","vars":[]}],"else":[],"disabled":true,"vars":[]}],"name":"active indicator","parent":null,"key":"AWf4k1EgbH","order":1},"3mBLPIXG6C":{"triggers":[{"type":"entityAttributeBecomesZero"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"w1hyUME41P"],"then":[{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[]},"vars":[]}],"else":[],"vars":[]},{"type":"condition","conditions":[{"operandType":"attributeType","operator":"=="},{"function":"getAttributeTypeOfAttribute","entity":{"function":"getTriggeringAttribute","vars":[]},"vars":[]},"health"],"then":[{"type":"destroyEntity","entity":{"function":"thisEntity","vars":[]},"vars":[]}],"else":[],"vars":[]}],"name":"destroy","parent":null,"key":"3mBLPIXG6C","order":3},"8TI1i25r2H":{"triggers":[{"type":"secondTick"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"thisEntity","vars":[]},"value":{"function":"calculate","items":[{"operator":"-"},{"function":"getEntityAttribute","attribute":"w1hyUME41P","entity":{"function":"thisEntity"}},1],"vars":[]},"vars":[]}],"name":"timer down","parent":null,"key":"8TI1i25r2H","order":3},"a641qyoAM8":{"triggers":[{"type":"entityCreated"}],"conditions":[{"operator":"==","operandType":"boolean"},true,true],"actions":[{"type":"setVariable","value":{"function":"getRandomNumberBetween","min":0.001,"max":1},"variableName":"tempInt"},{"type":"setUnitNameLabel","unit":{"function":"thisEntity"},"name":"Rock"},{"type":"setEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"thisEntity"},"value":{"function":"getRandomNumberBetween","min":1,"max":4},"disabled":true},{"type":"setEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"thisEntity"},"value":{"function":"mathFloor","value":{"function":"getRandomNumberBetween","min":1,"max":5}},"disabled":false},{"type":"setEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"thisEntity"},"value":2},{"type":"condition","conditions":[{"operator":">=","operandType":"number"},{"function":"getVariable","variableName":"tempInt"},{"function":"calculate","items":[{"operator":"/"},2,3]}],"then":[{"type":"setEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"thisEntity"},"value":4,"disabled":true},{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"dBU1Obr1wM"},{"type":"setUnitNameLabel","unit":{"function":"thisEntity"},"name":"Tree","disabled":true},{"type":"return"}],"else":[],"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operator":">=","operandType":"number"},{"function":"getVariable","variableName":"tempInt"},{"function":"calculate","items":[{"operator":"/"},1,3]}],"then":[{"type":"playEntityAnimation","entity":{"function":"thisEntity"},"animation":"ahXVsqztCE"},{"type":"setEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"thisEntity"},"value":6,"disabled":true},{"type":"setUnitNameLabel","unit":{"function":"thisEntity"},"name":"Tree"},{"type":"return"}],"else":[],"isExpanded":{"self":true}},{"type":"condition","conditions":[{"operator":"<","operandType":"number"},{"function":"getRandomNumberBetween","min":0.001,"max":1},0.5],"then":[{"type":"flipEntitySprite","entity":{"function":"thisEntity"},"flip":"horizontal"},{"type":"setEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"thisEntity"},"value":{"function":"calculate","items":[{"operator":"+"},{"function":"getEntityAttribute","attribute":"tluak6Uefw","entity":{"function":"thisEntity"}},1]}}],"else":[]}],"name":"creation","parent":null,"key":"a641qyoAM8","order":5}},"isUnTargetable":false,"frames":{},"unitTypes":{"ZEgq7P7cTN":{"scripts":{"NYzCMNw5lg":{"name":"unit enters"},"AWf4k1EgbH":{"name":"active indicator"}}},"ZjN23ZekKt":{"scripts":{"8TI1i25r2H":{"name":"timer down"}}}}}},"abilities":{},"variables":{"gridStep":{"default":64,"dataType":"number"},"gridOffset":{"default":-32,"dataType":"number"},"switchA":{"default":1,"dataType":"number"},"switchB":{"default":1,"dataType":"number"},"switchADir":{"default":"dir","dataType":"string"},"intFor":{"default":0,"dataType":"number"},"tempBool":{"default":false,"dataType":"boolean"},"tempUnit":{"dataType":"unit"},"tempX":{"default":0,"dataType":"number"},"tempY":{"default":0,"dataType":"number"},"tempItem":{"dataType":"item"},"hasBuilder":{"default":false,"dataType":"boolean"},"gridSize":{"default":64,"dataType":"number"},"lowestValue":{"default":0,"dataType":"number"},"unitCollision":{"default":false,"dataType":"boolean"},"tempUnit2":{"dataType":"unit"},"NPC units":{"default":"computer1","dataType":"player"},"swapFrequency":{"default":8,"dataType":"number"},"tempInt":{"default":0,"dataType":"number"},"tempPlayer":{"dataType":"player"},"placeBool":{"default":false,"dataType":"boolean"},"itemImpulse":{"default":3,"dataType":"number"},"tempItemType":{"dataType":"itemType"},"mapItemLimit":{"default":300,"dataType":"number"},"grass":{"dataType":"region","default":{"x":932,"y":2868,"width":1674,"height":1112}},"forest":{"dataType":"region","default":{"x":146,"y":1717,"width":1408,"height":1295}},"tempStr":{"dataType":"string"},"tempItem2":{"dataType":"item"},"alignToGrid":{"default":false,"dataType":"boolean"},"secondsSinceServerLaunch":{"default":0,"dataType":"number"},"goal":{"dataType":"region","default":{"x":320,"y":3901,"width":370,"height":193}},"rocks":{"dataType":"region","default":{"x":2505,"y":2198,"width":1525,"height":1211}},"pvp":{"dataType":"region","default":{"x":1924,"y":3443,"width":2160,"height":639}}},"attributeTypes":{"speed":{"decimalPlaces":0,"dataType":"","name":"speed","min":0,"max":200,"value":10,"regenerateSpeed":0,"isVisible":[],"showAsHUD":true,"color":"#00fff0","displayValue":true},"health":{"decimalPlaces":0,"color":"#ffff0f","showAsHUD":true,"displayValue":true,"isVisible":["centerBar","unitBarFriendly","unitBarNeutral","unitBarHostile"],"regenerateSpeed":".3","value":100,"dataType":"","max":100,"min":0,"name":"health "},"03zK5qaZSV":{"name":"New Attribute","min":0,"max":100,"dataType":"","value":100,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"FrUHzpmxCl":{"name":"UP","min":0,"max":3,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"W0lr8hWl3b":{"name":"update","min":0,"max":1,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"crTAhSw1QS":{"name":"XP","min":0,"max":8,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"1EwASqxRMD":{"name":"level","min":0,"max":30,"dataType":"","value":1,"regenerateSpeed":0,"isVisible":false,"displayValue":true,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"YMjbmDmXwn":{"name":"drop bonus","min":0,"max":100,"dataType":"","value":4,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"z3wCUcvtXW":{"name":"stars","min":0,"max":10,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"whenIsGreaterThanMin","showAsHUD":true,"color":"white","decimalPlaces":0},"9GAx9TJq8y":{"name":"attack","min":0,"max":100,"dataType":"","value":3,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"aQhoXCHK9u":{"name":"defense","min":0,"max":100,"dataType":"","value":1,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"MhAcN8ngjF":{"name":"builder reward","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":"0.1","isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"4eRokBctSq":{"name":"pickUpValue","min":0,"max":5,"dataType":"","value":5,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"w1hyUME41P":{"name":"secToDeplete","min":0,"max":100,"dataType":"","value":5,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"kCDgANucqE":{"name":"creation time","min":0,"max":999999,"dataType":"time","value":0,"regenerateSpeed":0,"isVisible":[],"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"tluak6Uefw":{"name":"counter attack","min":0,"max":null,"dataType":"","value":3,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"Vaw3XmnaPv":{"name":"Tokens","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":false,"displayValue":true,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"INANvNcL3I":{"name":"Death Total","min":0,"max":9999,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"OWUWubGVS6":{"name":"Wizard Token","min":0,"max":"09999","dataType":"","value":0,"regenerateSpeed":0,"isVisible":true,"displayValue":true,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"yP5lgv2X82":{"name":"progress","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"settings":{"menudiv":"You're on a QWEASD to reach the bottom of this map (so that you can become a wizard). Also, movement is weird.\n\n<ul>\n<li>Start with WASD.</li>\n<li>Collect stars to gain experience!</li>\n<li>Bump into walls = ouch.</li>\n</ul>","inventory":{"isEnabled":false},"shop":{"isEnabled":false},"camera":{"trackingDelay":3,"zoom":{"default":1350,"type":"static"}},"constants":{"currency":"Food"},"images":{"logo":"https://cache.modd.io/asset/spriteImage/1682812744752_qweasdtitle2.png","cover":"https://cache.modd.io/1501275562940_two houses cover.png"},"gravity":{"x":0,"y":0},"scoreBoard":"n5JEoENeGg","scoreAttributeId":"z3wCUcvtXW","allowDuplicateIPs":true,"displayScoreboard":true,"prettifyingScoreboard":true,"menuHTML":"<style>\n  .ui-text-top {\n    font-size: 2.5em;\n    font-family: 'Noto Sans Mono', monospace;\n  }\n\t#right-menu ul {\n\t\tpadding-left: 15px;\n\t}\n  #menu-form {\n    font-family: 'Fibberish', monospace;\n  }\n  #menu-form > h5{\n    font-family: 'Fibberish', monospace;\n  }\n  .modal-title {\n    font-family: 'Fibberish', monospace;\n  }\n  .modal-body {\n    font-family: 'Fibberish', monospace;\n  }\n\t#right-menu hr {\n\t\tmargin: 10px 0px;\n\t}\n\t\n\t#inventory-slots-key-stroke {\n\t  display: none;\n\t}\n\t#inventory-slots {\n\t  display: grid;\n    grid-template-columns: repeat(3, 1fr);\n    grid-column-gap: 4px;\n    grid-row-gap: 4px;\n    justify-items: stretch;\n    align-items: stretch;\n\t}\n\t\n\t.inventory-item-button {\n    height: 70px;\n    width: 70px;\n\t}\n\t.absolute-center>img {\n\t  height: 70px !important;\n\t  width: 70px !important;\n    max-width: 128px !important;\n\t}\n\t.absolute-center>.quantity {\n\t  font-size: 7em !important;\n\t}\n\t#attribute-bars {\n    margin-top:16px;\n  }\n\tkbd {\n    border: 2px solid $dark; \n    box-shadow: 2px 2px $dark; \n    font-size: .85em; \n    line-height: .85em; \n    display: inline-block;\n    font-weight: 600;\n    letter-spacing: .05em; \n    padding: 3px 5px;\n    white-space: nowrap;\n  }\n</style>\n<link href=\"https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@500&display=swap\" rel=\"stylesheet\"> \n\n<div id='left-menu' class=\"flex-column hide-on-mobile p-3\" style=\"max-width: 320px\">\n\t<div id='user-div' class=\"flex-shrink-0\" style=\"box-shadow: 0 0 15px rgba(0,0,0,.5);\">\n\t\t{{ loginForm }}\n\t</div>\n\n\t<!-- uncomment this section to show sideMenu -->\n\t<!-- \n\t\t<div id='menu-div' class=\"flex-shrink-0 mb-3\" style=\"box-shadow: 0 0 15px rgba(0,0,0,.5);\">\n\t\t\t{{ sideMenu }}\n\t\t</div>\n\t -->\n\t<!-- uncomment this section to show friendsPanel -->\n\t<!-- \n\t\t{{#if isUserLoggedIn}}\n      {{friendsPanel}}\n\t\t{{/if}}\n\t -->\n</div>\n\n<div id='right-menu' class=\"d-flex justify-content-center align-items-center flex-grow-1\">\n\t<div class=\"w-100\">\n\t\t<h1 class=\"text-center game-title\">\n\t\t</h1>\n\n\t\t<div class=\"row flex-grow-0 menu-row margin-auto justify-content-center\">\n\t\t\t<!-- uncomment this section to show coinShop -->\n\t\t\t<!--\n\t\t\t<div id=\"menu-column-left-container\" class=\"d-none d-sm-block\" style=\"min-width: 235px;\">\n\t\t\t\t<div class=\"white-bg\" style=\"box-shadow: 0 0 15px rgba(0,0,0,.5);\">\n\t\t\t\t\t{{ coinShop }}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t-->\n\n\t\t\t<div id=\"menu-column-main-container\" class=\"pl-3\" style=\"{{#if constants.guestMode }} margin:auto {{/if}}\">\n\t\t\t\t<div id=\"menu-column-main\">\n\t\t\t\t\t<div class=\"white-bg\" style=\"max-width: 480px\">\n\t\t\t\t\t\t<div id=\"menu-form\">\n\t\t\t\t\t\t\t<div class=\"float-left small\" id=\"login-error-message\"></div>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t{{ menudiv }}\n\t\t\t\t\t\t\t\t<hr />\n\t\t\t\t\t\t\t\t{{ gamePlayInstructions }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{{ serverList }}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<!-- uncomment this section to show skinShop -->\n\t\t\t<!-- \n\t\t\t<div class=\"pl-3\" id=\"menu-column-right-container\" style=\"{{#if constants.guestMode }} margin:auto {{/if}}\">\n\t\t\t\t<div id=\"menu-column-left\" class=\"d-none d-lg-block bg-white rounded p-3\"\n\t\t\t\t\tstyle=\"max-width: 235px; width: 235px;\">\n\t\t\t\t\t skinShop \n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t-->\n\t\t</div>\n\t</div>\n</div>"},"images":[{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512752415166_fire_shotgun.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755562800_fire_empty.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755594697_fire_minigun.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755610131_fire_pistol.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755622475_fire_rifle.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755644317_man_cough.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755666761_man_scream1.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512755675893_man_scream2.mp3"},{"key":"sound","url":"https://modd.s3.amazonaws.com/sprites/1512756015200_reload.mp3"}],"tilesets":[{"image":"https://cache.modd.io/two_houses-0.18/tilesheet.png","name":"tilesheet_complete"},{"image":"https://cache.modd.io/two_houses-0.18/2x1.png","name":"2x1"},{"image":"https://cache.modd.io/two_houses-0.18/2x3.png","name":"2x3"},{"image":"https://cache.modd.io/two_houses-0.18/3x1.png","name":"3x1"},{"image":"https://cache.modd.io/two_houses-0.18/3x4.png","name":"3x4"},{"image":"https://cache.modd.io/two_houses-0.18/spritesheet/shop.png","name":"shop"}],"factions":{"6BTQoFGUFP":{"name":"asdf","relationships":{},"attributes":{"4P4pWD5ExV":{"name":"Stamina","min":0,"max":"100","value":"100","regenerateSpeed":0.3,"isVisible":true,"color":"yellow","showAsHUD":true}}},"PgVCU0WgYj":{"name":"fda","relationships":{}}},"playerTypes":{"humanPlayer":{"name":"Player","attributes":{"z3wCUcvtXW":{"name":"total XP","min":0,"max":9999,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":true,"displayValue":true,"showWhen":"whenIsGreaterThanMin","showAsHUD":true,"color":"white","decimalPlaces":0},"Vaw3XmnaPv":{"name":"tokens","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":true,"displayValue":true,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"INANvNcL3I":{"name":"death total","min":0,"max":9999,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":true,"displayValue":true,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"OWUWubGVS6":{"name":"Wizard token","min":0,"max":"09999","dataType":"","value":0,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0},"yP5lgv2X82":{"name":"progress","min":0,"max":100,"dataType":"","value":0,"regenerateSpeed":0,"isVisible":false,"displayValue":false,"showWhen":"","showAsHUD":true,"color":"white","decimalPlaces":0}},"color":"#ffffff","relationships":{},"showNameLabel":true,"variables":{"name":{"default":"","dataType":"string"},"death total":{"default":0,"dataType":"number","key":"death total","defaultKey":"death total"}}}},"particles":{"7pA9mm1MLG":{"name":"spark","color":"#f4ff00","lifeBase":30,"quantityBase":5,"quantityTimespan":30,"deathOpacityBase":1,"mountPosition":{"x":0,"y":0},"velocityVector":{"baseVector":{"x":0,"y":0},"minVector":{"x":-1,"y":-1},"maxVector":{"x":1,"y":1}}},"87BiLybZhy":{"name":"bullet","color":"#636363","lifeBase":50,"quantityBase":1,"quantityTimespan":30,"deathOpacityBase":1,"mountPosition":{"x":0,"y":0},"velocityVector":{"baseVector":{"x":0,"y":0},"minVector":{"x":-1,"y":-1},"maxVector":{"x":1,"y":1}}}},"particleTypes":{},"bodyTypes":{"default":{"bullet":false,"name":"default","type":"dynamic","width":50,"height":50,"z-index":{"layer":3,"depth":3},"fixedRotation":false,"bulletDestroyedOnCollisionWithWall/unit":false,"allowSleep":false,"collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":true},"angularDamping":1,"linearDamping":8,"rotationSpeed":1,"spriteScale":"1.5","fixtures":[{"density":1,"friction":0,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}],"jointType":"weldJoint","unitAnchor":{"x":0,"y":33,"rotation":0},"itemAnchor":{"x":0,"y":0,"lowerAngle":0,"upperAngle":0},"affectedByGravity":false},"selected":{"name":"selected","fixedRotation":false,"z-index":{"layer":3,"depth":3},"typeWhenDrop":"dynamic","type":"dynamic","collidesWith":{"units":true,"items":true,"projectiles":true,"walls":true,"debris":false},"unitAnchor":{"rotation":0,"y":20,"x":0},"rotationSpeed":3,"itemAnchor":{"y":0,"x":0},"jointType":"weldJoint","width":8,"height":20,"holdPosition":{"rotation":0,"y":33,"x":0},"linearDamping":1,"angularDamping":1,"restitution":1,"density":1,"isTangible":false,"isFlying":false,"carriedBy":["fighter"],"friction":0},"unselected":{"friction":0,"carriedBy":["fighter"],"isFlying":false,"isTangible":false,"density":1,"restitution":1,"angularDamping":1,"linearDamping":1,"holdPosition":{"x":0,"y":33,"rotation":0},"height":20,"width":8,"jointType":"weldJoint","itemAnchor":{"x":0,"y":0},"rotationSpeed":3,"unitAnchor":{"x":0,"y":20,"rotation":0},"collidesWith":{"debris":false,"walls":true,"projectiles":true,"items":true,"units":true},"type":"none","typeWhenDrop":"dynamic","z-index":{"depth":3,"layer":3},"fixedRotation":false,"name":"unselected","bullet":false,"allowSleep":true,"spriteScale":1,"fixtures":[{"density":1,"friction":0.01,"restitution":0,"shape":{"type":"rectangle"},"isSensor":false}]},"dropped":{"name":"dropped","fixedRotation":false,"z-index":{"layer":1,"depth":1},"typeWhenDrop":"dynamic","type":"static","collidesWith":{"units":false,"items":false,"projectiles":false,"walls":false,"debris":false},"unitAnchor":{"rotation":0,"y":20,"x":0},"rotationSpeed":3,"itemAnchor":{"y":0,"x":0},"jointType":"weldJoint","width":8,"height":20,"holdPosition":{"rotation":0,"y":33,"x":0},"linearDamping":1,"angularDamping":1,"restitution":1,"density":1,"isTangible":false,"isFlying":false,"carriedBy":["fighter"],"friction":0}},"playerTypeVariables":{"up":{"default":"up","dataType":"string","key":"up","defaultKey":"up"},"name":{"default":"","dataType":"string"},"death total":{"default":0,"dataType":"number","key":"death total","defaultKey":"death total"},"tokens":{"default":0,"dataType":"number"}},"ui":{"landingpage":{"key":"landingpage","folderName":"Landing Page","parent":null,"order":0,"expanded":true},"landingpagefull":{"name":"Landing Page Full","htmlData":"","parent":"landingpage","key":"landingpagefull","order":0,"type":"view","preventDelete":true},"dialogue":{"key":"dialogue","folderName":"Dialogue","parent":null,"order":1,"expanded":true},"dialogueview":{"name":"Dialogue View","htmlData":"\n<div class=\"modal\" id=\"modd-dialogue-modal\" tabindex=\"-1\" style='z-index:9050' data-backdrop='static'\n    data-keyboard='false'>\n    <div class=\"modal-dialog modal-lg modal-dialog-centered\" role=\"document\">\n        <div class=\"modal-content\">\n          {{#if dialogue.dialogueTitle}}\n            <div class=\"modal-header\">\n                <h5 class=\"modal-title\">{{dialogue.dialogueTitle}}</h5>\n            </div>\n          {{/if}}\n          \n            <div class=\"modal-body\">\n                <div class=\"row row-eq-height\">\n                    <div class=\"{{ternary dialogue.image 'col-4' 'd-none'}}\" id=\"modd-dialogue-image-container\">\n                        <!-- if an image was added to the dialogue, it is displayed here\n                        a ternary condition in #modd-dialogue-message-container changes css based on whether an image was added -->\n                        <img id=\"modd-dialogue-image\" style=\"background: none;\" class=\"loading w-100 rounded\" src=\"{{dialogue.image}}\" alt=\"image\">\n                    </div>\n\n                    <div class=\"{{ternary dialogue.image 'col-8 pl-md-0' 'col-12'}}\" id=\"modd-dialogue-message-container\">\n                        <div class=\"d-flex flex-column h-100\">\n                            <div class=\"flex-shrink-0 flex-grow-1 wrap-text\">\n                                <!-- modd-dialogue-message id needs to be kept for typing effect-->\n                                <p id=\"modd-dialogue-message\">\n                                    <!-- adds the content of HTMLmessage here\n                                    HTML syntax included in the message should render as expected\n                                    <style> tags included in the message are applied as well -->\n                                    {{dialogue.message}}\n                                </p>\n                                <p class=\"position-absolute mb-0 text-muted {{ternary dialogue.areOptionsRendered 'd-none' ''}}\" id=\"modd-dialogue-skip-hint\" style=\"bottom: 0; right: 15px;\">\n                                    <!-- customize the prompt for continuing to the next message -->\n                                    {{#if isMobile}}\n                                      tap to continue.\n                                    {{else}}\n                                      press enter/click to continue.\n                                    {{/if}}\n                                </p>\n                            </div>\n\n                            <div id=\"modd-dialogue-options-container\" class=\"{{ternary dialogue.areOptionsRendered '' 'd-none'}}\">\n                                <div id=\"modd-dialogue-options\" class=\"w-100\">\n                                    <!-- if options were added to the dialogue, they display here\n                                    #each iterates through the options, you can use if conditions and options.length to change rendering logic based on amount of options-->\n                                    {{#each dialogue.options}}\n                                        <!-- dialogue-option class needs to be kept -->\n                                        <button class=\"w-100 btn btn-light border btn-block text-left dialogue-option\">\n                                            <i class=\"d-none fa fa-check mr-2 option-check\"></i>\n                                            <span>{{name}}<span>\n                                        </button>  \n                                    {{/each}}\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n","parent":"dialogue","key":"dialogueview","order":0,"type":"view","preventDelete":true},"inputModal":{"name":"Input Modal View","htmlData":"\n<div class=\"modal align-items-center\" id=\"player-input-modal\" tabindex=\"-1\">\n    <div class=\"modal-dialog modal-lg\" role=\"document\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\" id=\"player-input-modal-dismiss-button\">\n                <h5 class=\"modal-title\"></h5>\n                <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n                    <span aria-hidden=\"true\">&times;</span>\n                </button>\n            </div>\n\n            <div class=\"modal-body\">\n            <div class=\"form-group\">\n                <label id=\"player-input-field-label\">{{inputModal.fieldLabel}}</label>\n                <input id=\"player-input-field\" class=\"form-control\">\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-sm-12 d-flex justify-content-end\">\n                <div id=\"player-input-cancel-container\">\n                    <button type=\"button\" id=\"player-input-cancel\" class=\"btn pull-right\">Cancel</button>\n                </div>\n                <div id=\"player-input-submit-container\">\n                    <button type=\"button\" id=\"player-input-submit\" class=\"btn pull-right btn-primary ml-2\">Submit</button>\n                </div>\n                </div>\n            </div>\n            </div>\n        </div>\n    </div>\n</div>\n","parent":"dialogue","key":"inputModal","order":1,"type":"view","preventDelete":true},"customModal":{"name":"Custom Modal View","htmlData":"\n<div class=\"modal fade align-items-center\" id=\"custom-modal\" tabindex=\"-1\">\n  <div class=\"modal-dialog modal-lg modal-dialog-centered\" role=\"document\">\n    <div class=\"modal-content\">\n\n      <div class=\"modal-header text-center\">\n        <h4 class=\"modal-title\"></h4>\n        <button id='custom-modal-dismiss-button' type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n          <span aria-hidden=\"true\">&times;</span>\n        </button>\n      </div>\n\n      <div class=\"modal-body\">\n        <div class=\"content\">{{customModal.content}}</div>\n      </div>\n\n      <div class=\"modal-footer\">\n        <div class=\"row\">\n          <div class=\"col-sm-12\">\n            <div id=\"custom-modal-cancel-container\">\n              <button type=\"button\" data-dismiss=\"modal\" id=\"custom-modal-cancel\" class=\"btn pull-right\">Close</button>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n","parent":"dialogue","key":"customModal","order":2,"type":"view","preventDelete":true}},"dialogues":{"jYCTPyFoZN":{"name":"Changelog","dialogueTitle":"Changelog","message":"<p>&nbsp;</p>\n<h6>Feedback:</h6>\n<p>If you've any ideas for gaem mechanics or have found a bug, let me know about it on the discord please :)</p>","image":"","letterPrintSpeed":0,"options":[]},"PU6nSRZop7":{"name":"Intro","dialogueTitle":"★ The Wizard ★ ","message":"<p><strong>The Wizard</strong> has a Star ( ★ ) in front of their name.</p>\n<p>Wizard:</p>\n<ul>\n<li>can spawn Stars by left clicking on the map</li>\n<li>gets experience when their Stars are picked up</li>\n<li>you can become Wizard by reaching the bottom left of the map</li>\n<li>if the only Wizard dies or leaves, another Player becomes Wizard</li>\n</ul>","image":"https://cache.modd.io/asset/spriteImage/1683296680617_image_2023-05-05_162439546.png","letterPrintSpeed":0,"options":[]},"RKgiU1o1vd":{"name":"Intro2","dialogueTitle":"Hitting other Players","message":"<p>You can hit other Players by walking into them. <br />This deals damage to their health based on (your ATK - their DEF).</p>\n<p>If their health reaches 0, they die and respawn at the base at level 1. <br />You don't gain any XP for killing other players. If the Wizard dies, they lose the wizard role and a random player receives it.<br />\nWhen you level up, you get ATK or DEF based on a hidden condition.</p>","image":"https://cache.modd.io/asset/spriteImage/1683298267936_image_2023-05-05_165105648.png","letterPrintSpeed":0,"options":[]},"RdFmI3TZ6Q":{"name":"Welcome","dialogueTitle":"Welcome to QWEASD","message":"<h3>Controls:</h3>\n<ul>\n<li>Use the keys <kbd>Q</kbd> <kbd>W</kbd> <kbd>E</kbd> <kbd>A</kbd> <kbd>S</kbd> <kbd>D</kbd> to move around on the map.</li>\n<li>Start with the WASD keys.</li>\n<li>Pressing a key uses the item in that slot (see image).</li>\n<li>After every 6th step, the position of 2 items will swap.</li>\n</ul>\n<h3>Goal:</h3>\n<ul>\n<li>Collect stars to gain experience!</li>\n<li>Level up to improve health and regeneration.</li>\n<li>Reach the bottom left of the map to become a wizard.</li>\n</ul>\n<p>&nbsp;</p>\n<p><strong>Move to any of the signs for more info.</strong></p>\n<p><img src=\"https://cache.modd.io/asset/spriteImage/1683300039975_image_2023-05-05_172038985.png\" alt=\"Image of Sign\" width=\"291\" height=\"164\" /></p>","image":"https://cache.modd.io/asset/spriteImage/1683293806237_1.png","letterPrintSpeed":0,"options":[{"name":"Okay","scriptName":"","followUpDialogue":""},{"name":"More Information","scriptName":"","followUpDialogue":"L6v4gVWJ6E"}]},"JnmGvBk3y1":{"name":"Wizard","dialogueTitle":"Wizard","message":"<p>You are now the <strong>Wizard ★</strong>.</p>\n<ul>\n<li>place Stars on the map for other Players to pick up</li>\n<li>make friends by giving Stars to Players</li>\n<li>stay alive by being generous</li>\n<li>the later a player Picks up your star, the more experience you get</li>\n</ul>","image":"https://cache.modd.io/asset/spriteImage/1683296680617_image_2023-05-05_162439546.png","letterPrintSpeed":0,"options":[]},"L6v4gVWJ6E":{"name":"Guide Picker","dialogueTitle":"Guides","message":"<p>You can read any of the sign guides again here.</p>\n<p>You can always press <kbd>H</kbd> to open this again.</p>","image":"","letterPrintSpeed":0,"options":[{"name":"Welcome","scriptName":"","followUpDialogue":"RdFmI3TZ6Q"},{"name":"The Wizard","scriptName":"","followUpDialogue":"PU6nSRZop7"},{"name":"Hitting other players","scriptName":"","followUpDialogue":"RKgiU1o1vd"}]},"p8W7Zfm3OM":{"name":"Credits","dialogueTitle":"","message":"Font: https://caffinate.itch.io/fibberish\n","image":"","letterPrintSpeed":20,"options":[]}},"folders":{"units":{"name":"Units","type":"folder"},"JLuMFEsJSK":{"type":"unit","parent":"units"},"sbh8dWN9Pa":{"type":"unit","parent":"units"},"ZEgq7P7cTN":{"type":"unit","parent":"units"},"6DBuOODRNU":{"type":"unit","parent":"units"},"ZjN23ZekKt":{"type":"unit","parent":"units"},"zldFwP5bzq":{"type":"unit","parent":"units"},"items":{"name":"Items","type":"folder"},"t607ZcW20A":{"type":"item","parent":"items"},"rucjuZOoxx":{"type":"item","parent":"items"},"TanIDE8v59":{"type":"item","parent":"items"},"projectiles":{"name":"Projectiles","type":"folder"},"zhp6qHTMHf":{"type":"projectile","parent":"projectiles"},"Ur45dU9hi2":{"type":"projectile","parent":"projectiles"}},"title":"⟷QWEASD","isDeveloper":false,"isGameDeveloper":false,"releaseId":"644c8285ba96c876a2869e7e","defaultData":{"_id":"644c8285ba96c876a2869e80","gameSlug":"QWEASD","title":"⟷QWEASD","tier":"5","allowDuplicateIPS":false,"access":"public","owner":"62bf00f0ccdccd022bd0b665","solanaWalletLoginEnabled":false,"isDeleted":false,"playCount":169,"totalPlayCount":3204,"reasonForTakingDown":"","cover":"https://cache.modd.io/asset/spriteImage/1683345772403_cover2-min_(1).png","coverUpdated":true,"link":null,"discordInviteLink":null,"twitterLink":null,"facebookLink":null,"youtubeLink":null,"androidLink":null,"iosLink":null,"redirect":"off","hidden":false,"patchNotes":null,"clientSidePredictionEnabled":true,"clientPhysicsEngine":"box2dweb","enableMiniMap":false,"dontResize":false,"releases":[{"isStable":false,"_id":"644c8285ba96c876a2869e81","version":0.01,"release":"644c8285ba96c876a2869e7e"}],"defaultMaxPlayers":12,"lifeSpanHours":5,"sandboxMode":"advanced","physicsEngine":"box2dweb","frameRate":15,"extrapolation":true,"moreIoGames":false,"allowGuestMode":false,"revenueSharing":false,"mobileReady":false,"autoSave":true,"canHostPrivateServers":false,"privateServerIdleTimeout":0.1,"enableVideoChat":false,"isGuestPlayerAllowed":true,"enablePersistedData":false,"allowVerifiedUserToChat":false,"isFeatured":false,"featuredOrderNo":-1,"isLobbyEnabled":false,"lobbyUnitKey":"","minLobbySize":2,"maxLobbySize":4,"heightBasedZIndex":true,"preferredRegion":"eu","isMod":false,"isModdable":false,"allowLateJoining":false,"parentGameId":null,"dailyCoinTransferLimit":0,"isPublished":true,"createdAt":"2023-04-29T02:35:49.126Z","updatedAt":"2023-11-24T14:29:20.511Z","invitedUsers":[{"role":"contributor","_id":"644d5f660596825eabbdf77c","user":"62ea7dca2d53565f01b4fa28","updatedBy":"62ea7dca2d53565f01b4fa28","date":"2023-04-29T18:18:14.230Z"},{"role":"contributor","_id":"646f42232e13624c59264d78","user":"5e89d5144cae3a413dd23402","updatedBy":"62ea7dca2d53565f01b4fa28","date":"2023-05-25T11:10:27.159Z"}],"banUsers":[],"banChat":[],"banIps":[],"highScores":[],"lastPlayedAt":"2025-05-03T08:55:41.302Z","__v":1643,"gamePlayInstructions":"<h5>Controls:</h5>\n<ul>\n<li>Use the keys <kbd>Q</kbd> <kbd>W</kbd> <kbd>E</kbd> <kbd>A</kbd> <kbd>S</kbd> <kbd>D</kbd> to move around on the map.</li>\n<li>Your controls will become difficult to manage soon. </li>\n</ul>","mapBackgroundColor":"#1f2937","version":"0.01","renderingFilter":"pixelArt","contextMenuEnabled":false,"disableAdsPortals":false,"engineVersion":"2.0.0","defaultRenderer":"2d","prefRegionOnly":false,"isWorld":false},"roles":[{"permissions":{"serverChat":true,"communityChat":true},"order":2,"_id":"64ad530e3bca45a13423bd15","name":"Community Member","color":"#2B83BE","gameId":"644c8285ba96c876a2869e80","type":3,"__v":0,"createdAt":"2023-07-11T13:03:10.891Z","updatedAt":"2023-07-11T13:03:10.891Z"},{"permissions":{"contributor":true},"order":0,"_id":"64b191562cd6b016a1672ed1","name":"Contributor","color":"#E4EB39","gameId":"644c8285ba96c876a2869e80","type":1,"__v":0,"createdAt":"2023-07-14T18:17:58.158Z","updatedAt":"2024-09-04T15:28:24.523Z"},{"permissions":{"moderator":true},"order":1,"_id":"64b191562cd6b016a1672ed2","name":"Moderator","color":"#FCAC45","gameId":"644c8285ba96c876a2869e80","type":2,"__v":0,"createdAt":"2023-07-14T18:17:58.158Z","updatedAt":"2023-07-14T18:17:58.158Z"},{"permissions":{"serverChat":true,"playGame":true},"order":3,"_id":"64b191562cd6b016a1672ed3","name":"Logged-In Users","color":"#99F000","gameId":"644c8285ba96c876a2869e80","type":4,"__v":0,"createdAt":"2023-07-14T18:17:58.158Z","updatedAt":"2023-07-14T18:17:58.158Z"},{"permissions":{"playGame":true},"order":4,"_id":"64b191562cd6b016a1672ed4","name":"Guest Users","color":"#E6FFB9","gameId":"644c8285ba96c876a2869e80","type":5,"__v":0,"createdAt":"2023-07-14T18:17:58.158Z","updatedAt":"2023-07-14T18:17:58.158Z"}]}}}