Difference between revisions of "User:Talia Tokugawa/scripts"
Jump to navigation
Jump to search
m (Adding link to colour list page.) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
*MapURL example [https://wiki.secondlife.com/wiki/User:Talia_Tokugawa/scripts/MapUrlExample Link] | *MapURL example [https://wiki.secondlife.com/wiki/User:Talia_Tokugawa/scripts/MapUrlExample Link] | ||
*Visitor Owner Informer example [https://wiki.secondlife.com/wiki/User:Talia_Tokugawa/scripts/VisitInform Link] | *Visitor Owner Informer example [https://wiki.secondlife.com/wiki/User:Talia_Tokugawa/scripts/VisitInform Link] | ||
*Colour List [https://wiki.secondlife.com/wiki/User:Talia_Tokugawa/scripts/ColourList Link] | |||
Code Snippets: | Code Snippets: | ||
*character replacement. | *character replacement. | ||
**These two are for replacing escape characters in a string that is a not compiled with the script | **These two are for replacing escape characters in a string that is a not compiled with the script | ||
text=llDumpList2String(llParseString2List(text, ["\\\""],[]), "\""); | text=llDumpList2String(llParseString2List(text, ["\\\""],[]), "\""); | ||
text=llDumpList2String(llParseString2List(text, ["\\\'"],[]), "\'"); | text=llDumpList2String(llParseString2List(text, ["\\\'"],[]), "\'"); | ||
*"Loading..." balance showing workaround | *"Loading..." balance showing workaround | ||
** I finally got too annoyed with having to have some one around to give my balance a jump start... | ** I finally got too annoyed with having to have some one around to give my balance a jump start... | ||
default { | default { | ||
state_entry() { | state_entry() { | ||
Line 28: | Line 25: | ||
llResetScript(); | llResetScript(); | ||
} | } | ||
touch_start(integer total_number) { | touch_start(integer total_number) { | ||
llGiveMoney(llGetOwner(),1); | llGiveMoney(llGetOwner(),1); | ||
} | } | ||
} | } | ||
Latest revision as of 14:43, 18 March 2024
Code Snippets:
- character replacement.
- These two are for replacing escape characters in a string that is a not compiled with the script
text=llDumpList2String(llParseString2List(text, ["\\\""],[]), "\""); text=llDumpList2String(llParseString2List(text, ["\\\'"],[]), "\'");
- "Loading..." balance showing workaround
- I finally got too annoyed with having to have some one around to give my balance a jump start...
default { state_entry() { llRequestPermissions(llGetOwner(), PERMISSION_DEBIT); } run_time_permissions(integer perms) { if (perms & PERMISSION_DEBIT) state run; } } state run { on_rez(integer p) { llResetScript(); } touch_start(integer total_number) { llGiveMoney(llGetOwner(),1); } }