User:Free Portal/Sandbox/ko

From Second Life Wiki
Jump to navigation Jump to search

SandBox

사용도 높은 간단한 사용자 정의 함수 모음집

searchReplace

문자열에서 단어를 치환 하여 반환하는 함수. <lsl>string searchReplace(string input, string old, string new) {

  return llDumpList2String(llParseString2List(input, [old], []), new);

}</lsl>

DEBUG

디버그 메시지를 출력하는 함수. <lsl>integer debug = TRUE;

string DEBUG(string msg) {

   if (DEBUG)
       llOwnerSay("__" + llGetObjectName() + " :: " + llGetScriptName() + " :: " + msg

}</lsl>