def create_order(life, life_id, order, message, **kwargs):
	_target = brain.knows_alife_by_id(life, life_id)
	_order = {'active': True, 'order': order, 'message': message, 'args': kwargs}
	
	if not _target:
		logging.critical('%s does not know %s but is giving orders to them.' % (' '.join(life['name']), ' '.join(LIFE[life_id]['name'])))
		return False
	
	if _order in _target['orders'].values():
		return False
	
	_order['active'] = False
	if _order in _target['orders'].values():
		return False
	
	_order['active'] = True
	_target['orders'][str(_target['orderid'])] = _order
	_target['orderid'] += 1
	
	logging.debug('%s created order for %s: %s' % (' '.join(life['name']), ' '.join(LIFE[life_id]['name']), order))
dataset/ETHPy150Open flags/Reactor-3/alife/memory.py/create_order/original