Quote:
Originally Posted by Inverness
Those commands would not require an array to determine who to send to, it would simply send to the current player object (the player executing the script).
Which can be changed using a with block.
|
Yes, that is typically the way programming systems would do it, but Graal would probably go the other approach with the array, simply because it is easier.
Actually, I suppose it might be just as easy to do something like:
findPlayer( "cbk1994" ).echo2( "foo" );
and then you would be able to make a function like
PHP Code:
public function massIt( accs, msg )
{
for ( temp.a : accs )
{
findPlayer( temp.a ).echo2( msg );
}
}