My id: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>Bale
mNo edit summary
 
Line 5: Line 5:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=Your Character|
function1={{Function|
function1={{Function|
name={{#var:name}}|
name={{#var:name}}|
Line 24: Line 23:
special=When no character is logged in, this function returns the Character ID of the last logged-in character or 0 if no character has logged in yet.
special=When no character is logged in, this function returns the Character ID of the last logged-in character or 0 if no character has logged in yet.
}}
}}
[[Category:Your Character]]

Latest revision as of 21:31, 21 May 2010

Function Syntax

string my_id()

Returns the Character ID of the logged-in character.

Code Sample

This example allows you to visit your own charsheet.

visit_url("showplayer.php?who=" + my_id());

See Also

my_name()

Special

When no character is logged in, this function returns the Character ID of the last logged-in character or 0 if no character has logged in yet.