Skills and Effects: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
No edit summary
imported>Bale
No edit summary
Line 7: Line 7:
{{Flink|boolean|restore_hp|int|desc=Uses KoLmafia's current settings to restore the specified amount of HP.}}
{{Flink|boolean|restore_hp|int|desc=Uses KoLmafia's current settings to restore the specified amount of HP.}}
{{Flink|boolean|restore_mp|int|desc=Uses KoLmafia's current settings to restore the specified amount of MP.}}
{{Flink|boolean|restore_mp|int|desc=Uses KoLmafia's current settings to restore the specified amount of MP.}}
[[Category:ASH Scripting]]

Revision as of 05:02, 21 May 2010

boolean have_skill( skill )

Reports if you currently have access to the specified skill.

int have_effect( effect )

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

int mp_cost( skill )

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

int mana_cost_modifier()

Returns the amount of MP reduction available.

int turns_per_cast( skill )

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

boolean use_skill( int, skill, [string] )

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

boolean restore_hp( int )

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

boolean restore_mp( int )

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