Blockland Forums > Modification Help
Auto Falling Plates code not making plates fall.
adam savage:
I am trying to make a Falling Plates similar to DAProg's. put the PlatesFall function is broken.
--- Code: ---function PlatesFall(%id)
{
ColorMessage(%id);
%groupCount = MainBrickGroup.getCount();
for(%i = 0; %i < %groupCount; %i++)
{
%brick = MainBrickGroup.getObject(%i);
%dataname = %brick.GetDataBlock().GetName();
%color = %birck.GetColorID();
if(%dataname $= brickFallingPlateBaseData && %color == %id)
{
%brick.schedule(3000,"Fall");
}
if(%dataname $= bricklight1x1BaseData || %dataname $= bricklight1x2BaseData)
{
%brick.SetColor(%id);
}
}
}
--- End code ---
"Fall" is an event I made for the plates. The brick1x1/1x2lightbaseData and brickFallingPlateBaseData are custom bricks. ColorMessage works fine.
Port:
I can understand that you can have problems at programming logic, but you appear to have issues with your overall logic too. Did you even look through the code before posting?
Treynolds416:
I think it's funny how he can't even spell brick
Wordy:
--- Quote from: Treynolds416 on June 03, 2012, 09:15:58 AM ---I think it's funny how he can't even spell brick
--- End quote ---
simple mistakes dude
Ipquarx:
You have a couple of syntax errors and large holes in your logic.