def initiate_needs(life):
	life['needs'] = {}
	
	alife.survival.add_needed_item(life,
	                               {'type': 'drink'},
	                               satisfy_if=action.make_small_script(function='get_flag',
	                                                                   args={'flag': 'thirsty'}),
	                               satisfy_callback=action.make_small_script(return_function='consume'))
	alife.survival.add_needed_item(life,
	                               {'type': 'food'},
	                               satisfy_if=action.make_small_script(function='get_flag',
	                                                                   args={'flag': 'hungry'}),
	                               satisfy_callback=action.make_small_script(return_function='consume'))
	alife.survival.add_needed_item(life,
	                               {'type': 'gun'},
	                               satisfy_if=action.make_small_script(function='get_flag',
	                                                                   args={'flag': 'no_weapon'}),
	                               satisfy_callback=action.make_small_script(return_function='pick_up_and_hold_item'))
Creates innate needs for `life`.
dataset/ETHPy150Open flags/Reactor-3/life.py/initiate_needs