Difference between revisions of "Mp cost"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m (moved Mp cost() to Mp cost)
imported>StDoodle
Line 1: Line 1:
'''[[int]] mp_cost([[skill]] touse)'''
+
{{#vardefine:name|mp_cost}}
 +
{{#vardefine:return_type|int}}
  
Will return the MP cost to cast the specified skill.
+
{{FunctionPage|
 +
name={{#var:name}}|
 +
function_category=|
  
MP reduction items are taken into account.
+
function1={{Function|
 +
name={{#var:name}}|
 +
aggregate={{#var:aggregate}}|
 +
return_type={{#var:return_type}}|
 +
return_also={{#var:return_also}}|
 +
parameter1={{Param|skill|use_me}}|
 +
p1desc={{Pspan|use_me}} is the skill to check the cost of|
 +
}}|
  
<code>
+
function_description=Returns the current MP cost for the next cast of the given skill {{pspan|use_me}} with all current MP cost modifiers accounted for.|
mp_cost($skill[Empathy]);
+
 
</code><br>
+
needscode=yes|
Will return the MP a cast of empathy will cost.
+
 
 +
}}

Revision as of 14:39, 6 March 2010



needs(code_samples);

Function Syntax

int mp_cost(skill use_me )

  • use_me is the skill to check the cost of

Returns the current MP cost for the next cast of the given skill use_me with all current MP cost modifiers accounted for.