Skills and Effects: Difference between revisions
Jump to navigation
Jump to search
imported>Bale mNo edit summary |
imported>Bale get_moods |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Flink|boolean|have_skill|skill|desc=Reports if you currently have access to the specified skill.}} | {{Flink|boolean|have_skill|skill|desc=Reports if you currently have access to the specified skill.}} | ||
{{Flink|int|have_effect|effect|desc=Returns the number of turns your character has of the specified effect (does not cover intrinsics).}} | {{Flink|int|have_effect|effect|desc=Returns the number of turns your character has of the specified effect (does not cover intrinsics).}} | ||
{{Flink|int [effect]|my_effects|desc=Returns an array of the character's current effects and their durations.}} | |||
{{Flink|int|mp_cost|skill|desc=Returns the MP cost of the specified skill (0 for passives); accounts for current MP reduction effects.}} | {{Flink|int|mp_cost|skill|desc=Returns the MP cost of the specified skill (0 for passives); accounts for current MP reduction effects.}} | ||
{{Flink|int|adv_cost|skill|desc=Returns the adventure cost for using a skill.}} | |||
{{Flink|int|soulsauce_cost|skill|desc=Returns the soulsauce cost of the specified {{kolwiki|Soul Saucery}} skill.}} | |||
{{Flink|int|thunder_cost|skill|desc=Returns the dB cost of the specified {{kolwiki|Heavy_Rains|Thunder}} skill.}} | |||
{{Flink|int|rain_cost|skill|desc=Returns the drop cost of the specified {{kolwiki|Heavy_Rains|Rain}} skill.}} | |||
{{Flink|int|lightning_cost|skill|desc=Returns the bolt cost of the specified {{kolwiki|Heavy_Rains|Lightning}} skill.}} | |||
{{Flink|int|mana_cost_modifier|desc=Returns the amount of MP reduction available.}} | {{Flink|int|mana_cost_modifier|desc=Returns the amount of MP reduction available.}} | ||
{{Flink|int|combat_mana_cost_modifier|desc=Returns the amount of MP reduction available in combat.}} | |||
{{Flink|int|turns_per_cast|skill|desc=Returns the number of turns each cast of the specified skill will give you.}} | {{Flink|int|turns_per_cast|skill|desc=Returns the number of turns each cast of the specified skill will give you.}} | ||
{{Flink|boolean|use_skill|int|skill|{{opt|string}}|desc=Casts a given skill as many times as specified, optionally on a specified target (as applicable).}} | {{Flink|boolean|use_skill|int|skill|{{opt|string}}|desc=Casts a given skill as many times as specified, optionally on a specified target (as applicable).}} | ||
{{Flink|string [int]|get_moods|desc=Returns a list of all moods defined for this character.}} | |||
{{Flink|string|last_skill_message|desc=Returns message that KoL reports in the event of error.}} | |||
{{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:Scripting]] | [[Category:Scripting]] |
Latest revision as of 08:03, 20 November 2014
boolean have_skill( skill )
Reports if you currently have access to the specified skill.
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.
int mp_cost( skill )
Returns the MP cost of the specified skill (0 for passives); accounts for current MP reduction effects.
Returns the adventure cost for using a skill.
Returns the soulsauce cost of the specified Soul Saucery skill.
Returns the dB cost of the specified Thunder skill.
Returns the drop cost of the specified Rain skill.
Returns the bolt cost of the specified Lightning skill.
Returns the amount of MP reduction available.
int combat_mana_cost_modifier()
Returns the amount of MP reduction available in combat.
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).
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.
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.