Bale
Minion
Finally looked over your dolphin code. Just thought I'd mention that this subroutine is now part of my betweenBattleMood.
I obviously owe a lot to your code although I check mall price to decide if it is worth spending an adventure to get back the item the dolphin stole. (Since it takes 11 turns to get another dolphin I don't want to waste it on a relatively cheap thingpouch (unless that is a goal) when I'll probably get something more valuable stolen several turns later.)
I also fixed a bug in your code: You forgot to ensure that the character has a sand dollar before getting a dolphin whistle from Big Brother.
PHP:
void dolphin() {
item dolphinItem = to_item(get_property("dolphinItem"));
if(get_counters("Dolphin",1,11) == "" && dolphinItem != $item[sand dollar] &&
(is_goal(dolphinItem) || mall_price(dolphinItem) > 3* mall_price($item[sand dollar]))) {
if(item_amount($item[dolphin whistle]) == 0 && mall_price($item[dolphin whistle]) > mall_price($item[sand dollar]))
if(retrieve_item(1, $item[sand dollar]))
visit_url("monkeycastle.php?pwd&action=buyitem&whichitem=3997&quantity=1");
if(retrieve_item(1,$item[dolphin whistle]))
use(1,$item[dolphin whistle]);
}
}
I obviously owe a lot to your code although I check mall price to decide if it is worth spending an adventure to get back the item the dolphin stole. (Since it takes 11 turns to get another dolphin I don't want to waste it on a relatively cheap thingpouch (unless that is a goal) when I'll probably get something more valuable stolen several turns later.)
I also fixed a bug in your code: You forgot to ensure that the character has a sand dollar before getting a dolphin whistle from Big Brother.