Author Topic: Brickcount player value?  (Read 735 times)

Hey guys, I'm working on a new CityRPG system and I need some help finding the value of how may bricks a player has placed. The system will be where you buy a pack of bricks say, $1000 for 750. When you use all those bricks, you have no choice but to buy another pack, you cannot place any after you exceed your pack limit

I was thinking demo code could help me then it was removed, so any help?

%count = ( isObject( %client.brickGroup ) ? %client.brickGroup.getCount() : 0 );

%count = ( isObject( %client.brickGroup ) ? %client.brickGroup.getCount() : 0 );

I <3 you Port

i think that includes the ghost brick too

i think that includes the ghost brick too

%count = ( isObject( %client.brickGroup ) ? %client.brickGroup.getCount() : 0 );

if ( isObject( %client.player.tempBrick ) )
{
        %count--;
}