Difference between pages "Equip" and "User:StDoodle"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>StDoodle
m
 
imported>StDoodle
m
 
Line 1: Line 1:
{{
+
__NOTOC__
#vardefine:name|equip}}{{
+
==About Me==
#vardefine:return_type|boolean}}{{
+
I've been playing KoL off-and-on since 2005, though my original character was deleted & I started over in late 2006.
  
FunctionPage|
+
A short while back (early 2010) I wrote a [http://kolmafia.us/showthread.php?3443-StDoodle-s-Custom-Daily-Deeds Daily Deeds] script at the request of my clannies in [http://www.hardcoreoxygenation.com/forums/ HCN / O]. In doing so, I became frustrated at how difficult it was to find a good chunk of information on this wiki, and embarked on the journey of fixing that problem... and so the saga began.
name={{#var:name}}|
 
function_category=Equipment|
 
  
function1={{Function|
+
More info on my character (same name in game) can be found [http://bumcheekcity.com/kol/profile.php?u=StDoodle here], though I don't update it as often as I should.
name={{#var:name}}|
+
==For fewyn==
aggregate={{#var:aggregate}}|
+
[[/Requests for Deletion/]]
return_type={{#var:return_type}}|
+
==Some examples (vote on your favorite!)==
return_also={{#var:return_also}}|
+
<p><b>float [[item_amount|item_amount( item )]]</b></p>
parameter1={{Param|item|equip_me}}|
+
<div style="margin-left: 2em; display: block;">This is the stupid description textezes.1</div>
}}|
+
<p><b>float [[item_amount|item_amount ( item )]]</b></p>
 +
<div style="margin-left: 2em; display: block;">This is the stupid description textezes.2</div>
 +
<p><b>float [[item_amount]]( item )</b></p>
 +
<div style="margin-left: 2em; display: block;">This is the stupid description textezes.3</div>
 +
<p>float [[item_amount|item_amount( item )]]</p>
 +
<div style="margin-left: 2em; display: block;">This is the stupid description textezes.4</div>
 +
<p>float [[item_amount]]( item )</p>
 +
<div style="margin-left: 2em; display: block;">This is the stupid description textezes.5</div>
 +
<p><b>float [[item_amount|item_amount</b>(<b> item </b>)<b>]]</b></p>
 +
<div style="margin-left: 2em; display: block;">This is the stupid description textezes.6</div>
 +
<p><b>float [[item_amount]]</b>(<b> item </b>)</p>
 +
<div style="margin-left: 2em; display: block;">This is the stupid description textezes.7</div>
  
function2={{Function|
+
<p style="margin: 0 2em 2em 0;"><b>float [[item_amount|long_fake_function_name_to_test( item, int, float, [string] )]]</b><span style="position: absolute; left: 32em; margin-left: 2em;">:</span><span style="position: absolute; left: 33em; margin 0 2em 0 0;">This is the stupid description textezes. It does stuff, has lots of words, and is being tested for wrapping. I think I kinda like it, but I'm not sure; what about you? Also, it seems as though I need to use quite a few words to test how this will wrap. Maybe this will do the trick!8</span></p>
name={{#var:name}}|
 
aggregate={{#var:aggregate}}|
 
return_type={{#var:return_type}}|
 
return_also={{#var:return_also}}|
 
parameter1={{Param|slot|where}}|
 
parameter2={{Param|item|equip_me}}|
 
p1desc={{Pspan|where}} is the slot to place the item in (optional)|
 
p2desc={{Pspan|equip_me}} is the item to equip|
 
}}|
 
  
function_description=Attempts to equip the item {{pspan|equip_me}} in the slot {{pspan|where}} if specified, and returns true if the operation was successful, and false if it was not. If parameter {{pspan|where}} is not specified, it defaults to the "standard" place for such an item (main-hand for 1-handed weapons, first open slot for accessories or acc1 if no slots are open). If {{pspan|where}} is specified and {{pspan|where}} is set to $item[none], this function will unequip whatever is in slot {{pspan|where}} and return true. If {{pspan|where}} is not specified and {{pspan|where}} is set to $item[none], the function aborts and you get a funky error. If you cannot equip {{pspan|equip_me}}, or {{pspan|where}} is supplied and the item cannot be used in that slot, you will be given an error message and this function will return false.|
+
<p style="margin: 0 2em 2em 0;"><b>float [[item_amount|item_amount( item, int, float, [string] )]]</b><span style="position: absolute; left: 32em; margin-left: 2em;">:</span><span style="position: absolute; left: 33em; margin 0 2em 0 0;">This is the stupid description textezes. It does stuff, has lots of words, and is being tested for wrapping. I think I kinda like it, but I'm not sure; what about you? Also, it seems as though I need to use quite a few words to test how this will wrap. Maybe this will do the trick!9</span></p>
  
code1={{CodeSample|
+
==Styled Links==
title=Code Sample|
+
Typing this:
description=Equips the Swashbuckling Getup carefully to ensure that the parot is in the second accessory slot.|
+
<pre><a href="http://kolmafia.us/" style="color: green; text-decoration: none;">KoLmafia Forum Link</a></pre>
code=
+
Gives this:<br />
<syntaxhighlight>
+
<a href="http://kolmafia.us/" style="color: green; text-decoration: none;">KoLmafia Forum Link</a>
equip($item[eyepatch]);
+
Typing this:
equip($item[swashbuckling pants]);
+
<pre><span style="color: green; text-decoration: underline;">[[Datatype Constants]]</span></pre>
equip($slot[acc2], $item[stuffed shoulder parrot]);
+
Gives this:<br />
</syntaxhighlight>
+
<span style="color: green; text-decoration: underline;">[[Datatype Constants]]</span><br />
}}|
+
<p>As far as I can see, you'd have to use some complicated templates to get links in non-standard formats, and it would be difficult to have easy-to-add internal wiki links in such a manner.</p>
 
 
see_also={{SeeAlso|can_equip|equipped_amount|equipped_item|have_equipped}}|
 
cli_equiv=The CLI commands "equip" (and others, for specific slots) function similarly.|
 
}}
 
{{RFI|What's up with the abort message when no slot is specified and item is $item[none]?|I'm sure there are other edge-case I haven't thought of; if you do, please test and edit in.}}
 

Revision as of 19:38, 2 March 2010

About Me

I've been playing KoL off-and-on since 2005, though my original character was deleted & I started over in late 2006.

A short while back (early 2010) I wrote a Daily Deeds script at the request of my clannies in HCN / O. In doing so, I became frustrated at how difficult it was to find a good chunk of information on this wiki, and embarked on the journey of fixing that problem... and so the saga began.

More info on my character (same name in game) can be found here, though I don't update it as often as I should.

For fewyn

Requests for Deletion

Some examples (vote on your favorite!)

float item_amount( item )

This is the stupid description textezes.1

float item_amount ( item )

This is the stupid description textezes.2

float item_amount( item )

This is the stupid description textezes.3

float item_amount( item )

This is the stupid description textezes.4

float item_amount( item )

This is the stupid description textezes.5

float item_amount( item )

This is the stupid description textezes.6

float item_amount( item )

This is the stupid description textezes.7

float long_fake_function_name_to_test( item, int, float, [string] ):This is the stupid description textezes. It does stuff, has lots of words, and is being tested for wrapping. I think I kinda like it, but I'm not sure; what about you? Also, it seems as though I need to use quite a few words to test how this will wrap. Maybe this will do the trick!8

float item_amount( item, int, float, [string] ):This is the stupid description textezes. It does stuff, has lots of words, and is being tested for wrapping. I think I kinda like it, but I'm not sure; what about you? Also, it seems as though I need to use quite a few words to test how this will wrap. Maybe this will do the trick!9

Styled Links

Typing this:

<a href="http://kolmafia.us/" style="color: green; text-decoration: none;">KoLmafia Forum Link</a>

Gives this:
<a href="http://kolmafia.us/" style="color: green; text-decoration: none;">KoLmafia Forum Link</a> Typing this:

<span style="color: green; text-decoration: underline;">[[Datatype Constants]]</span>

Gives this:
Datatype Constants

As far as I can see, you'd have to use some complicated templates to get links in non-standard formats, and it would be difficult to have easy-to-add internal wiki links in such a manner.