![[Avatar]](/uploads/avatar/1864.gif)
Skin to bone, steel to rust, ash to ashes, dust to dust.
Rank: Regular
|
I have a strange glitch on my map where sometimes if I order a unit to go up and then right, then next time I order it to go down it goes up instead, and it's erratic. Hard to explain what I mean without showing the map, so I've attached it. It's WASD control, doesn't support Macs. Here are the relevant Oreo Triggers: Triggers//**************************************************************************// $P1->always(add($movementcounter, 1)); //movement triggers $P1->_if( $WKey->isDown(), AtLeast($movementcounter, 2) )->then(MoveLocation($mobilelarge, P1, 'Protoss Zealot', 'Anywhere'), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 1, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 4, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($left, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($up, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($down, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), MoveLocation($right, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), Order(P1, 'Protoss Zealot', 'Anywhere', Move, $up), Set($movementcounter, 0)); $P1->_if( $AKey->isDown(), AtLeast($movementcounter, 2) )->then(MoveLocation($mobilelarge, P1, 'Protoss Zealot', 'Anywhere'), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 1, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 4, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($left, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($up, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($down, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), MoveLocation($right, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), Order(P1, 'Protoss Zealot', 'Anywhere', Move, $left), Set($movementcounter, 0)); $P1->_if( $SKey->isDown(), AtLeast($movementcounter, 2) )->then(MoveLocation($mobilelarge, P1, 'Protoss Zealot', 'Anywhere'), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 1, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 4, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($left, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($up, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($down, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), MoveLocation($right, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), Order(P1, 'Protoss Zealot', 'Anywhere', Move, $down), Set($movementcounter, 0)); $P1->_if( $DKey->isDown(), AtLeast($movementcounter, 2) )->then(MoveLocation($mobilelarge, P1, 'Protoss Zealot', 'Anywhere'), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 1, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($mobilelarge, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 4, $mobilelarge), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Protoss Observer', 1, $mobilelarge, $invincible), CreateUnitWithProperties(P8, 'Zerg Scourge', 1, $mobilelarge, $invincible), MoveLocation($left, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($up, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), MoveLocation($down, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 2, $mobilelarge), MoveLocation($right, P8, 'Zerg Scourge', $mobilelarge), RemoveUnitAtLocation(P8, 'Zerg Scourge', 1, $mobilelarge), RemoveUnitAtLocation(P8, 'Protoss Observer', 4, $mobilelarge), Order(P1, 'Protoss Zealot', 'Anywhere', Move, $right), Set($movementcounter, 0)); //**************************************************************************// The obvious problem is that the mobile grid is being created incorrectly sometimes; I'm just trying to work out why. I have a partial grid initially created to prevent the offset glitch, so in theory it wouldn't be that, but it may be.
Attachments:
|