Blockland Forums > Modification Help
1024 byte scripting contest
<< < (23/24) > >>
Crysist:
What no :c
I couldn't debug mine :(
Even though contest is over and it doesn't work i'll post for heck of it k
I fixed it up since last time but didn't test cause i'm lazy at the moment, but if anyone can, please spot my errors thanks

--- Code: ---function b(%p,%t)
{
if(%t!=0)
{
%n="b"@%t;
new aiplayer(%n)
{
datablock=playerstandardarmor;
position=%p;
};
%x=getword(%p,0);
%y=getword(%p,1);
%z=getword(%p,2);
%p=%x@SPC@%y+3@SPC@%z;
%t--;
b(%p,%t);
}
}
function servercmdbbw(%c,%h,%w,%ps)
{
if(isObject(%c.player))
{
   if(%w!=0)
   {
   %pl=%c.player;
   if(%ps="")
   {
%ps=%pl.getposition();
   }
   if(%h=="" && %w=="")
   {
   $ay=%h;
   $az=%w;
   }
   %x=getword(%ps,0);
   %y=getword(%ps,1);
   %z=getword(%ps,2);
   %p=%x+4@%y SPC %z;
   b(%p,%h);
   %w--;
   %p=%x SPC @%y SPC %z+4;
   servercmdbbp(%c,%h,%w,%p);
   }
   %total=$az*$ay;
   echo("Cube Finished with "@%total@" bot(s).");
}
echo("omgnoob");
}
--- End code ---
its under 1024 bytes yay
Makes (or should make) a wall of bots infront of you with  the given height (%h) and width (%w) of bots you want, just leave the position (%ps) var blank when typing the command.
mctwist:
Good win. Both ideas was great. And now we have a bunch of scripts we could use for our mods... :cookieMonster:

Even though, I look forward for the next competition. This have been very entertaining.
Anybody:

--- Quote from: DrenDran on January 24, 2011, 10:18:08 PM ---Wait so space guy made a wand that kills bricks?
How's it different form the regular wand?

--- End quote ---

fake kill wand, the bricks respawn later on
Truce:

--- Quote from: DrenDran on January 24, 2011, 10:18:08 PM ---Wait so space guy made a wand that kills bricks?
How's it different form the regular wand?

--- End quote ---

It's basically a physics wand.
M:
Hah, surprised mine won anythang. :cookieMonster:
Navigation
Message Index
Next page
Previous page

Go to full version