My id: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:my_id()}} | |||
{{function| | {{function| | ||
name=my_id| | name=my_id| | ||
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:my_id()}} | |||
{{function| | {{function| | ||
name=my_id| | name=my_id| | ||
[[Data Types#{{{return_type}}}|{{{return_type}}}]] 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".