Difference between revisions of "My id"

From Kolmafia
Jump to navigation Jump to search
imported>Zarqon
m (pre to code for consistency, more links)
imported>Zarqon
m (new link)
Line 6: Line 6:
  
 
<code>
 
<code>
   [[visit_url]]("showplayer.php?who="+[[my_id()]]);
+
   [[visit_url()|visit_url]]("showplayer.php?who=" + [[my_id()]]);
 
</code>
 
</code>
 
[[Category:Your Character | My ID()]]
 
[[Category:Your Character | My ID()]]

Revision as of 08:42, 30 January 2009

string my_id()

This function returns the logged-in character's id number as a string.

This example visits your public charsheet:

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

When no character is logged in, this functions returns "0".