Difference between revisions of "Skill"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m (Redirected page to Data Types#skill)
imported>Aventuristo
(Add to Data Types category)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Data Types#skill]]
+
{{DISPLAYTITLE:skill}}
 +
 
 +
{{TOCright}}
 +
 
 +
This datatype represents any skill you can have in KoL, whether permable or
 +
not, granted by items, ''etc''.
 +
 
 +
The full range, besides $skill[ none ], is too much to list and keep up
 +
with here: please see the Wiki {{kolwiki|Skills}} page for more information.
 +
 
 +
==Related Functions==
 +
 
 +
{{Flink|int|adv_cost|skill}}
 +
{{Flink|boolean|have_skill|skill}}
 +
{{Flink|boolean|is_trendy|item/familiar/skill/string}}
 +
{{Flink|boolean|is_unrestricted|item/familiar/skill/string}}
 +
{{Flink|string|last_skill_message}}
 +
{{Flink|int|mp_cost|skill}}
 +
{{Flink|float|numeric_modifier|skill|string}}
 +
{{Flink|int|rain_cost|skill}}
 +
{{Flink|int|soulsauce_cost|skill}}
 +
{{Flink|skill|stun_skill}}
 +
{{Flink|int|thunder_cost|skill}}
 +
{{Flink|effect|to_effect|skill}}
 +
{{Flink|skill|to_skill|effect}}
 +
{{Flink|skill|to_skill|int}}
 +
{{Flink|skill|to_skill|strict_string}}
 +
{{Flink|skill|to_slot|strict_string}}
 +
{{Flink|int|turns_per_cast|skill}}
 +
{{Flink|boolean|use_skill|int|skill|{{opt|string}}}}
 +
{{Flink|buffer|use_skill|skill}}
 +
 
 +
==Proxy Record Fields==
 +
 
 +
Here are the proxy record fields for skills.  Proxy records are discussed in more
 +
detail [[Proxy Records|here]].
 +
 
 +
{| cellpadding="3" cellspacing="0" border="1px" class="sortable"
 +
|- | style="background-color: #F2F2F2"
 +
|-
 +
! Field
 +
! Data type
 +
! Default value
 +
! ASH Accessor Function / Notes
 +
|-
 +
| level
 +
| int
 +
| -1
 +
|
 +
|-
 +
| image
 +
| string
 +
| none
 +
|
 +
|-
 +
| traincost
 +
| int
 +
| 0
 +
|
 +
|-
 +
| class
 +
| class
 +
| none
 +
|
 +
|-
 +
| libram
 +
| boolean
 +
| false
 +
|
 +
|-
 +
| passive
 +
| boolean
 +
| false
 +
|
 +
|-
 +
| buff
 +
| boolean
 +
| false
 +
|
 +
|-
 +
| combat
 +
| boolean
 +
| false
 +
|
 +
|-
 +
| song
 +
| boolean
 +
| false
 +
| Avatar of Boris song
 +
|-
 +
| expression
 +
| boolean
 +
| false
 +
|
 +
|-
 +
| summon
 +
| boolean
 +
| false
 +
|
 +
|-
 +
| permable
 +
| boolean
 +
| true
 +
|
 +
|-
 +
| dailylimit
 +
| int
 +
| -1
 +
|
 +
|-
 +
| timescast
 +
| int
 +
| 0
 +
|
 +
|}
 +
 
 +
[[Category:Scripting]] [[Category:Data Types]]

Latest revision as of 00:49, 30 September 2017


This datatype represents any skill you can have in KoL, whether permable or not, granted by items, etc.

The full range, besides $skill[ none ], is too much to list and keep up with here: please see the Wiki Skills page for more information.

Related Functions

int adv_cost( skill )

boolean have_skill( skill )

boolean is_trendy( item/familiar/skill/string )

boolean is_unrestricted( item/familiar/skill/string )

string last_skill_message()

int mp_cost( skill )

float numeric_modifier( skill, string )

int rain_cost( skill )

int soulsauce_cost( skill )

skill stun_skill()

int thunder_cost( skill )

effect to_effect( skill )

skill to_skill( effect )

skill to_skill( int )

skill to_skill( strict_string )

skill to_slot( strict_string )

int turns_per_cast( skill )

boolean use_skill( int, skill, [string] )

buffer use_skill( skill )


Proxy Record Fields

Here are the proxy record fields for skills. Proxy records are discussed in more detail here.

Field Data type Default value ASH Accessor Function / Notes
level int -1
image string none
traincost int 0
class class none
libram boolean false
passive boolean false
buff boolean false
combat boolean false
song boolean false Avatar of Boris song
expression boolean false
summon boolean false
permable boolean true
dailylimit int -1
timescast int 0