bumcheekcity
Active member
I may be being stupid, but I can't see an ASH command to return a map of DoD potion names to their effect, like "!" effectively does in the CLI. Is there a chance we could get this?
effect [item] DoDpotion() {
effect [item] potion;
for id from 819 to 827
potion[id.to_item()] = get_property("lastBangPotion"+id).to_effect();
return potion;
}
void main() {
foreach pot, eff in DoDpotion()
print(pot+": "+eff+" (have "+item_amount(pot)+")");
}
[COLOR="#ff0000"][sleepiness] does not match anything in the status effect database.
[confusion] does not match anything in the status effect database.
[inebriety] does not match anything in the status effect database.
[ettin strength] does not match anything in the status effect database.[/COLOR]
bubbly potion: none (have 1)
cloudy potion: Strange Mental Acuity (have 3)
dark potion: none (have 3)
effervescent potion: none (have 1)
fizzy potion: none (have 2)
milky potion: Teleportitis (have 1)
murky potion: none (have 1)
smoky potion: none (have 2)
swirly potion: none (have 2)
effect [item] DoDpotion() {
effect [item] potion;
for id from 819 to 827
switch( get_property("lastBangPotion"+id) ) {
case "sleepiness": potion[id.to_item()] = $effect[ Sleepy ]; break;
case "confusion": potion[id.to_item()] = $effect[ Confused ]; break;
case "inebriety": potion[id.to_item()] = $effect[ Antihangover ]; break;
case "ettin strength": potion[id.to_item()] = $effect[ Strength of Ten Ettins ]; break;
default: potion[id.to_item()] = get_property("lastBangPotion"+id).to_effect();
}
return potion;
}
void main() {
foreach pot, eff in DoDpotion()
print(pot+": "+eff+" (have "+item_amount(pot)+")");
}