Skills and Effects

From KoLMafia
Jump to: navigation, search

booleanhave_skill( skill )

Reports if you currently have access to the specified skill.

inthave_effect( effect )

Returns the number of turns your character has of the specified effect (does not cover intrinsics).

int [effect] my_effects()

Returns an array of the character's current effects and their durations.

intmp_cost( skill )

Returns the MP cost of the specified skill (0 for passives); accounts for current MP reduction effects.

intadv_cost( skill )

Returns the adventure cost for using a skill.

intsoulsauce_cost( skill )

Returns the soulsauce cost of the specified Soul Saucery skill.

intthunder_cost( skill )

Returns the dB cost of the specified Thunder skill.

intrain_cost( skill )

Returns the drop cost of the specified Rain skill.

intlightning_cost( skill )

Returns the bolt cost of the specified Lightning skill.

int mana_cost_modifier()

Returns the amount of MP reduction available.

int combat_mana_cost_modifier()

Returns the amount of MP reduction available in combat.

intturns_per_cast( skill )

Returns the number of turns each cast of the specified skill will give you.

booleanuse_skill( int, skill, [string] )

Casts a given skill as many times as specified, optionally on a specified target (as applicable).

string [int] get_moods()

Returns a list of all moods defined for this character.

string last_skill_message()

Returns message that KoL reports in the event of error.

booleanrestore_hp( int )

Uses KoLmafia's current settings to restore the specified amount of HP.

booleanrestore_mp( int )

Uses KoLmafia's current settings to restore the specified amount of MP.