Difference between revisions of "Slot"

From Kolmafia
Jump to navigation Jump to search
(Wrote the page.)
 
imported>Aventuristo
(Add to Data Types category)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''slot'''
+
{{DISPLAYTITLE:slot}}
  
'''slot''' is a data type built into KolMafia.
+
This is the data type representing a player's equipment slots.
The permissible values for slot can be found at [[(ASHRM) Datatype Constants]]
+
Besides $slot[ none ], there are 16 possible values for this datatype.
  
An example of the use of a slot can be found at [[equip()]]
+
* hat
 +
* back
 +
* weapon
 +
* off-hand
 +
* shirt
 +
* pants
 +
* acc1
 +
* acc2
 +
* acc3
 +
* familiar
 +
* sticker1
 +
* sticker2
 +
* sticker3
 +
* fakehand
 +
* bootspur
 +
* bootskin
 +
 
 +
==Related Functions==
 +
 
 +
{{Flink|boolean|equip|{{opt|slot}}|item}}
 +
{{Flink|item|equipped_item|slot}}
 +
{{Flink|slot|to_slot|item}}
 +
{{Flink|skill|to_slot|strict_string}}
 +
 
 +
==Proxy Record Fields==
 +
 
 +
slot has no proxy record fields.
 +
 
 +
[[Category:Scripting]] [[Category:Data Types]]

Latest revision as of 00:49, 30 September 2017


This is the data type representing a player's equipment slots. Besides $slot[ none ], there are 16 possible values for this datatype.

  • hat
  • back
  • weapon
  • off-hand
  • shirt
  • pants
  • acc1
  • acc2
  • acc3
  • familiar
  • sticker1
  • sticker2
  • sticker3
  • fakehand
  • bootspur
  • bootskin

Related Functions

boolean equip( [slot], item )

item equipped_item( slot )

slot to_slot( item )

skill to_slot( strict_string )


Proxy Record Fields

slot has no proxy record fields.