Veracity provided this script snippet which finds items with non-Adventure Rollover Effects:
So now I have the effect, but I don't know that 'Morninja' means '100% combat initiative'. I can see how to get the value if I know the modifier, but I am missing the connecting glue to get all the modifiers (much less figure out something like Spoon Boon).
Do I need to loop through all of them, skipping any blanks, or is there a better (and future-proofed) way?
--thank you, very helpful!Code:foreach it in $items[] { if ( !it.can_equip() ) continue; effect roe = it.effect_modifier( "Rollover Effect" ); if ( roe == $effect[none ] ) continue; int duration = it.numeric_modifier( "Rollover Effect Duration" ); print( it + " -> " + roe + " (" + duration + "}" ); }
> roe.ash
Sasq™ watch -> The Rich Get Richer (30}
ninjammies -> Morninja (50}
ratskin pajama pants -> Pajama Party (40}
red LavaCo Lamp™ -> Red Menace (50}
blue LavaCo Lamp™ -> Blue Eyed Devil (50}
green LavaCo Lamp™ -> Green Peace (50}
Royal scepter -> It's Good To Be Royal! (5}
octolus-skin cloak -> Octolus Gift (30}
Quartet of Flare Masters Jacket -> Eldritch Concentration (1}
Uncle Crimbo's hat -> The Spirit of Crimbo (100}
Spacegate scientist's insignia -> Spirit of Galactic Unity (30}
Spacegate military insignia -> Spirit of Galactic Unity (30}
silent nightlight -> Nightlit (50}
novelty monorail ticket -> Favored by Lyle (100}
Crimbolex watch -> Watched Over (100}
hewn moon-rune spoon -> Spoon Boon (50}
So now I have the effect, but I don't know that 'Morninja' means '100% combat initiative'. I can see how to get the value if I know the modifier, but I am missing the connecting glue to get all the modifiers (much less figure out something like Spoon Boon).
Do I need to loop through all of them, skipping any blanks, or is there a better (and future-proofed) way?