boolean need_bangs() {
int gate_potions, missing_potions;
boolean inebriety, teleportitis, need_extra;
for i from 819 to 827 {
switch(get_property("lastBangPotion"+i)) {
case "teleportitis":
teleportitis = true;
case "blessing": case "detection": case "mental acuity": case "ettin strength":
if(item_amount(to_item(i)) == 0)
missing_potions = missing_potions + 1;
else gate_potions = gate_potions + 1;
break;
case "":
if(item_amount(to_item(i)) == 0)
missing_potions = missing_potions + 1;
else if(item_amount(to_item(i)) == 1)
need_extra = true;
break;
case "inebriety":
inebriety = true;
//case "healing": case "sleepiness": case "confusion":
}
if(gate_potions == 5) return false;
}
if(teleportitis && inebriety && missing_potions == 0) return false;
if(need_extra) return true;
return false;
}
case $location[Dungeons of Doom]: // Open large and small boxes?
if(need_bangs()) {
if(item_amount($item[large box]) > 0)
use(item_amount($item[large box]), $item[large box]);
if(item_amount($item[small box]) > 0)
use(item_amount($item[small box]), $item[small box]);
}
Well, you can feed the slimeling from the item manager. Most people wouldn't want a script deciding which gear to throw into your slimeling's maw. A lot of time you don't even need more MP, so it would be a waste to throw more in, just because the little guy is hungry. Nobody needs 900 turns of every buff just because it can be done. It's good to save for later.
Nope. restore scripts are called with parameters that basically say have X amount of HP/MP ready for me right now. By contrast this simply wants mp ready after the next fight. I'd rather make it a mood script. It could monitor levels of various buffs and feed items to your slimeling/GGG/Hobo whichever is equipped when the levels get low, so that the extra mana can be burned off after the current fight.Which implies that if you DO need MP, perhaps it makes sense. Which further implies that perhaps the place for this functionality is... UniversalRestore.ash?
The principle is decent, but I don't think scripts can have access to the junk list so you'd need a mapfile.He could programmatically be fed items from the junk list, maybe? The junk item that provides the best MP value?
Well that is reasonably simple. I'd do it as a mood script simply because you can have as many of those as you want and it can be added or removed from your mood easily. If zarqon wanted to, BBB could do so.But what I was actually wishing for was an automated method of feeding meat stack items to the slimeling to get slime stacks.
I imagine a threshold setting of how many slime stacks you want to have in inventory, and BBB feeding the slimeling a basic meat item if the quantity of slime stacks is below the threshold, then waiting for a slime stack to drop. Repeat.
I'd do it as a mood script simply because you can have as many of those as you want and it can be added or removed from your mood easily. If zarqon wanted to, BBB could do so.
if (item_amount($item[shaking 4-d camera]) > 0 && has_goal(to_monster(get_property("cameraMonster"))))
if (item_amount($item[spooky putty monster]) > 0 && has_goal(to_monster(get_property("spookyPuttyMonster")))) {
tfams[to_int(!can_interact())] = $familiar[grinning turtle];
tfams[to_int(can_interact())] = $familiar[syncopated turtle];
tfams[to_int(can_interact())] = $familiar[grinning turtle];
tfams[to_int(!can_interact())] = $familiar[syncopated turtle];