MrCowThing has written
You'll just need to add some code to the acorn I think. Look at the code for meat, and bananas.
Yes, I did.. Unfortunatly, it is about the behaviours...
Sooner! | 19.40% (39) | |
With map! | 73.13% (147) | |
NEVER, bother off!!! | 7.46% (15) |
on:drop { 		ai_typesignal "eat",19,300; 	} 	on:drop { 		ai_behavioursignal "eat","monkey",300; 	} 	on:ai_eat { 		local $eater,$var,$b; 		$eater=ai_eater(); 		if (type("unit",$eater)==19){ 			$var=getlocal("unit",$eater,"tameness"); 			$var+=2; 			setlocal "unit",$eater,"tameness",$var; 			$a=getlocal("unit",$eater,"acorns"); 			$a++; 			setlocal "unit",$eater,"acorns",$a; 			if (($var>6)&& (gotstate("unit",$eater,"tame")==0)){ 				addstate "unit",$eater,"tame"; 				corona getx("unit",$eater),getz("unit",$eater),20,255,70,100; 				speech "positive"; 				msg "I tamed it!",4; 			} 		} 	}
on:drop { 		ai_typesignal "eat",[b]19[/b],300; 	} 	on:drop { 		ai_behavioursignal "eat","monkey",300; 	} 	on:ai_eat { 		local $eater,$var,$b; 		$eater=ai_eater(); 		if (type("unit",$eater)==[b]19[/b]){ 			$var=getlocal("unit",$eater,"tameness"); 			$var+=2; 			setlocal "unit",$eater,"tameness",$var; 			$a=getlocal("unit",$eater,"acorns"); 			$a++; 			setlocal "unit",$eater,"acorns",$a; 			if (($var>6)&& (gotstate("unit",$eater,"tame")==0)){ 				addstate "unit",$eater,"tame"; 				corona getx("unit",$eater),getz("unit",$eater),20,255,70,100; 				speech "positive"; 				msg "I tamed it!",4; 			} 		} 	}
### Acorn [b]id=136[/b] name=Acorn
on:drop { 		ai_typesignal "eat",[b]19[/b],300; 	} 	on:drop { 		ai_behavioursignal "eat","monkey",300; 	} 	on:ai_eat { 		local $eater,$var,$b; 		$eater=ai_eater(); 		if (type("unit",$eater)==[b]19[/b]){ 			$var=getlocal("unit",$eater,"tameness"); 			$var+=2; 			setlocal "unit",$eater,"tameness",$var; 			$a=getlocal("unit",$eater,"acorns"); 			$a++; 			setlocal "unit",$eater,"acorns",$a; 			if (($var>6)&& (gotstate("unit",$eater,"tame")==0)){ 				addstate "unit",$eater,"tame"; 				corona getx("unit",$eater),getz("unit",$eater),20,255,70,100; 				speech "positive"; 				msg "I tamed it!",4; 			} 		} 	}