Spooky Surprise Eggs

Okay, so I'm going for the Tiny Plastic Series 2 trophy, but I speed ascend.
So I took the script: BreakfastEggs_Softcore.ash.txt by darius180 and made it to my specifications.
I took out everything except eating the eggs and using a Milk of Magnesium.

So, I guess here it is.
Incase anyone else wanted it....




p.s. darius if you don't want me to have this up here, just tell me. I'll remove it. But thank you for the original script, I used it until I got the trophy. (And I would never have remembered the Milk without it) =]
 

Attachments

  • SpookyEggs.ash
    1.2 KB · Views: 73

hippymon

Member
Sense acquire is already an ash function you might want to remove
Code:
void acquire(int n, item it){
	int x = 0;
	if (item_amount(it) >= n){
		return;}

	if(closet_amount(it) <= n){
		x = closet_amount(it);
		take_closet(x, it);
		n = n - x;}
	else{
	take_closet(n, it);
	return;}
		
	refresh_stash();
	if(stash_amount(it) <= n){
		x = stash_amount(it);
		take_stash(x, it);
		n = n - x;}
	else{
	refresh_stash();
	take_stash(n, it);
	return;}

	buy(n,it);
}
Out of personal preference I changed the spacing and added a fullness check... Also, fixed the acquire problem.
Code:
void main(){
	if (can_eat() && my_fullness() == 0){
		retrieve_item(15, $item[spooky surprise egg]);
			eat(15, $item[spooky surprise egg]);
		if(have_skill($skill[Stomach of Steel])){
			retrieve_item(5, $item[spooky surprise egg]);
				eat(5, $item[spooky surprise egg]);}
	}
}
 
Top