touchbound_system:prisoner_id_generator
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
touchbound_system:prisoner_id_generator [2022/01/31 18:54] – created kyrahabattoir | touchbound_system:prisoner_id_generator [2022/01/31 19:03] (current) – forgot the character string. kyrahabattoir | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | This is the function that my prison cells use to generate semi-unique prisoner ID numbers that are unique | + | This is the function that my prison cells use to generate semi-unique prisoner ID numbers that are permanent |
I am releasing this code to make it easy for other creators & people running roleplay locations to generate matching prisoner IDs across multiple systems. | I am releasing this code to make it easy for other creators & people running roleplay locations to generate matching prisoner IDs across multiple systems. | ||
- | Feel free to make the code more efficient and adapt it to your needs, | + | Feel free to make the code more efficient and/or adapt it to your needs, |
< | < | ||
Line 13: | Line 13: | ||
{ | { | ||
integer iChar = (integer)(" | integer iChar = (integer)(" | ||
- | string sResult = llGetSubString(CHARS, | + | string sResult = llGetSubString(" |
return sResult + llGetSubString((string)((integer)(" | return sResult + llGetSubString((string)((integer)(" | ||
} | } |
touchbound_system/prisoner_id_generator.1643655284.txt.gz · Last modified: 2022/01/31 18:54 by kyrahabattoir