Im still working on this, Ive gotten the code to go VERY short now.
eg.
Code:
var Data[2][20][20];

action fluid_action()
{	var x, y, i=0;
	for(y=0; y<20; y++)   for(x=0; x<20; x++)   Data[0][x][y] = Data[1][x][y] = 0;
	while(me)
	{	
		for(y=1; y<19; y++)   for(x=1; x<19; x++)   
		{
			Data[i][x][y]  = (Data[!i][x-1][y] + Data[!i][x+1][y] + Data[!i][x][y-1] + Data[!i][x][y+1]) / 2 - Data[i][x][y];
			Data[i][x][y] *= 0.95;
			vec_to_mesh(vector(0,0,Data[i][x][y]), my, (y*20)+x+1);
		}
		i = !i;
		wait(1);
	}	
}
//



But Im currently having some difficulties trying to use malloc to define a three dimensional array,
in order for it to cope with different size HMP's.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial