duration of effect from consumable

zekaonar

Member
How do I find the duration of an effect given by a consumable without using an item?

Code:
> ash effect_modifier($item[digital underground potion], "effect");

Returned: Digitally Converted
default => use 1 digital underground potion
note =>
all => aggregate boolean [string]
**use 1 digital underground potion => true
image => http://images.kingdomofloathing.com/itemimages/10101.gif
descid => a5ce881631fcf7c7d0978b06c4999db8
So I can go from item to effect, now how do I get the duration of the effect?
 

zekaonar

Member
I figured it was that method, but my guess "duration" didn't work. Is there a master list of modifier_name strings?
 

Veracity

Developer
Staff member
Yes, in Modifiers.txt. But if you want to see all the modifiers for a given object, do this:

> ash string_modifier( $item[ digital underground potion ], "Modifiers" )

Returned: Effect: "Digitally Converted", Effect Duration: 20
I think you would have picked out the right modifier name. ;)
 
Top