$effect[] from given $skill[]?

Razorsoup

Member
Is there a way to determine in a script what effect a given skill will result in? Most of the time the skill and effect are named the exact same thing but sometimes (like $skill[Jingle Bells]) they are different.
 

Bale

Minion
YES! KoLmafia has a function called to_effect() which works very nicely.


> ash $skill[Jingle Bells].to_effect().print()

Jingle Jangle Jingle
Returned: void

It works the other way also, with to_skill().

> ash $effect[Jingle Jangle Jingle].to_skill().print()

Jingle Bells
Returned: void
 
Last edited:

Razorsoup

Member
Thank you. I searched the forum, have been looking at the proxy records wiki page because I thought it might have something to do with that but I apparently failed to search the wiki properly. I assumed there had to be a way and I'm glad I was right.
 
Top