Creatable turns: Difference between revisions
Jump to navigation
Jump to search
imported>Trifectorce Created page with "{{ #vardefine:name|creatable_turns}}{{ #vardefine:return_type|int}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggregate}..." |
imported>Trifectorce No edit summary |
||
Line 36: | Line 36: | ||
}}| | }}| | ||
function_description=Returns the number of turns required to craft check_me (qty times, or 1). If free is true, this function will take into account free crafting from things like Rapid Prototyping or Thor's Pliers, but will always take into account the chef-in-the-box, bartender-in-the-box, and Innabox regardless of the boolean setting.| | function_description=Returns the number of turns required to craft check_me (qty times, or 1). If free is true, this function will take into account free crafting from things like Rapid Prototyping or Thor's Pliers, but will always take into account the chef-in-the-box, bartender-in-the-box, and Innabox regardless of the boolean setting. For things that your character cannot craft due to a lack of skills (but not a lack of items), this function will return 0.| | ||
needscode=yes| | needscode=yes| |
Latest revision as of 18:24, 2 February 2015
needs(code_samples);
Function Syntax
int creatable_turns(item check_me )
int creatable_turns(item check_me ,int qty )
int creatable_turns(item check_me ,int qty ,boolean free )
- check_me is the item to check
- qty is the quantity of check_me to check
- free determines whether or not to account for free crafting turns
Returns the number of turns required to craft check_me (qty times, or 1). If free is true, this function will take into account free crafting from things like Rapid Prototyping or Thor's Pliers, but will always take into account the chef-in-the-box, bartender-in-the-box, and Innabox regardless of the boolean setting. For things that your character cannot craft due to a lack of skills (but not a lack of items), this function will return 0.
See Also