2024/04/27

エレベータのスクリプト

vector pos;//Base Postion

vector end;//Target Position

key owner;

default

{

    state_entry()

    {

        owner=llGetOwner();

        llListen(0,"",owner,"");

        llListen(34,"","","first");

        llListen(34,"","","second");

        llSetStatus(STATUS_ROTATE_X|STATUS_ROTATE_Y|STATUS_ROTATE_Z,FALSE);

    }


    listen(integer a, string n, key id, string m)

    {

        // When the object hears align, it will grab the base position, and after which, all moves will be made by adjusting the z-coordinate of the base position.

        if(m=="align")

        {

            pos=llGetPos();

            llSetStatus(STATUS_PHYSICS,TRUE);

            llMoveToTarget(pos,1.5); 

        } 

        

        //  For the first floor, we want the elevator to be at its base position, so end(final resting place of the elevator) is the same as pos.  I showed the addition of the vector <0,0,0> merely for continuity.  The same comments about tau that apply to the llSetHoverHeight, apply to llMoveTarget.

        if(m=="first")

        {

            end=pos;

            llMoveToTarget(end,1.5);            

        }

    

        if(m=="second")

        {

            end=pos+<0,0,3.29>;

            llMoveToTarget(end,1.5);            

        }

          

    }

}

// END //


vector  alignment;

vector  targetVector;

integer travelDistance;

integer numListen;

integer targetFloor;

list    floorHeights = [26.1,36,46,56,66,76,86,96,106,116,126,136];//

float   fixedFloorHeight = 10; //Set to floor heights, or set to -1 to use floorHeights list

float   speed = 0.25; //Valid values are 0.01 to 1.0, a Percentage of maxSpeed;

float   maxSpeed = 32;

float   precision = 0.5;

integer autoSpeed = TRUE;

integer initialDistance;


elevate (vector end)

{

    vector current = llGetPos();

    travelDistance = llRound(current.z-end.z);

    travelDistance = llAbs(travelDistance);

    

    if (autoSpeed)

    {

        if (travelDistance < (initialDistance / 2))

        {

            speed -= (precision / 50);

            if (speed < 0.25) 

              speed = 0.25;

        }

        else

        {

            speed += (precision / 25);

            if (speed > 1) 

              speed = 1;

        }

    }

    if (travelDistance > 30)

    {

        travelDistance = 30;

        if (end.z > current.z)

        {

            end.z = current.z + 30;

        }

        else

        {

            end.z = current.z - 30;

        }

    }

    float i = travelDistance/(maxSpeed*speed);

    llMoveToTarget(end,i);

}


GotoFloor (integer floor, key id)

{    

    llWhisper(0, "Moving to floor#" + (string)floor);

    llSetStatus(STATUS_PHYSICS, TRUE);

    llLoopSound("ElevatorNoises", 1);

    

    targetFloor = floor;


    if (fixedFloorHeight > 0)

    {

        targetVector = alignment;

        targetVector.z = alignment.z + (fixedFloorHeight * floor);

    }

    else

    {

        targetVector = alignment;

        targetVector.z = llList2Float(floorHeights, floor);

    }

    llWhisper(0, "At " + (string)targetVector.z + " meters...");

    

    vector current = llGetPos();

    initialDistance = llRound(current.z-targetVector.z);

    initialDistance = llAbs(initialDistance);

    

    if (autoSpeed)

    {

        speed = 0.01;

    }


    elevate(targetVector);

    llSetTimerEvent(precision);

}


reset()

{

    llSay(0, "Resetting Elevator...");

    llSetStatus(STATUS_ROTATE_X| STATUS_ROTATE_Y| STATUS_ROTATE_Z, FALSE);

    

    alignment = llGetPos();

    llSetStatus(STATUS_PHYSICS, FALSE);

    llStopSound();

    llListenRemove(numListen);

    numListen = llListen( 0, "", "", "" );

}

default 

{

    state_entry()

    {

        reset();

    }

    object_rez(key id)

    {

        llResetScript();

    }

    listen(integer a, string n, key id, string m) 

    { 

        vector pos;

        integer Floor;

        float tempFloat;

        

        if (llSubStringIndex(m, "goto floor") == 0)

        {

            Floor = (integer)llGetSubString(m, 10, llStringLength(m));

            GotoFloor(Floor, NULL_KEY);

        }

        if (llSubStringIndex(m, "speed") == 0)

        {

            tempFloat = (float)llGetSubString(m, 5, llStringLength(m));

            if ((tempFloat > 0.001) && (tempFloat <= 1.0))

            {

                speed = tempFloat;

            }

        }

        if ((m=="elevator reset") && (id==llGetOwner()))

        {

            reset();

        }        

    } 

    

    timer()

    {

        vector CurrentPos;

        float tempfloat;

        

        CurrentPos = llGetPos();

        tempfloat = (CurrentPos.z - targetVector.z);

        

        if (llFabs(tempfloat) < 2) 

        {

            if (llFabs(tempfloat) < 0.05) 

            {

                //Arrived at Floor

                llWhisper(0, "Arrived at floor #" + (string)targetFloor);

                llSetTimerEvent(0); 

                llSetStatus(STATUS_PHYSICS, FALSE);

                llStopSound();

            }

            else

            {

                llMoveToTarget(targetVector,1.0);

            }

        }

        else 

        {

            if (fixedFloorHeight > 0)

            {

                targetVector = alignment;

                targetVector.z = alignment.z + (fixedFloorHeight * targetFloor);

            }

            else

            {

                targetVector = alignment;

                targetVector.z = llList2Float(floorHeights, targetFloor);

            }

            elevate(targetVector);

        }

    }

}


2024/04/26

リンクセットされているプリムのリンク番号を知る

default

{

    touch_start(integer total_number)

    {  // タッチされたとき

        key id=llDetectedKey(0);  // タッチしたアバターのキー

        if (id == llGetOwner()) {  // オーナーだったら

            integer num=llDetectedLinkNumber(0);  // タッチされたプリムのリンク番号

            list faces=[];  // グローデータ記録用リスト

            integer i;

            integer j=llGetLinkNumberOfSides(num);  // タッチされたプリムの全面数

            for (i=0; i < j; i++) {  // 面の数だけ繰り返し

                list glow=llGetLinkPrimitiveParams(num,[PRIM_GLOW,i]);  // 面ごとにグローを取得して

                faces+=[PRIM_GLOW,i]+glow;  // グロー設定で使える形式にしてリストに保存

            }

            llOwnerSay("Link no."+(string)num);  // タッチされたプリムのリンク番号を表示

            llSetLinkPrimitiveParams(num,[PRIM_GLOW,ALL_SIDES,1.0]);  // タッチされたプリム全面のグローを1.0にセット

            llSetLinkPrimitiveParamsFast(num,faces);  // グローを元に戻す

        }

    }

}

2023/09/21

Svan Hill Museum, Mucha exhibition

http://maps.secondlife.com/secondlife/Svan/135/218/77


Created by Izu Whitefalcon

Alphonse Mucha is popular in Japan and there is a rich collection in Sakai City in Japan. His lithograph works (stone prints) are similar to the outline method of Ukiyo-e (woodcut prints), and the ”beauties of nature” drawn in folding screens in the era when Japan was isolated. 

And his ”Slavic Epics” has strong messages and were first exhibited in Japan in 2017 outside the Czech Republic.

The Swan Hill Museum is built by Japanese creator, Izu Falcon, and is a comprehensive source of information on the variation of his works and related information about Mucha. 

Its features are that it is a full-scale display of the work (unified to 130%), and it does not use floating texts, notecards givers, etc. that are often used in SL, but uses textures for all titles and explanations as in the real world.

2.1 Biography
2.2 Memoirs of a White Elephant (Woodcut), 1893 (33 y/o)
3. Second floor- Lithograph works 
3.1 Sarah Bernhardt’s posters, 1894 (34 y/o)
3.2 Decorative panels- Four cycle series, 1986
3.3 LE PATER (watercolor paintings), 1899
4. Third floor
4.1 Advertising Poster, 1896 - 1928
4.2 Oil paintings, 1894 - 1933
4.3 Stained-glass windows of St. Vitus Cathedral, 1931 (71 y/o)
5. The Slav Epic, 1912 - 1926

Travel to the Time of Titanoboa, The Science Circle

Teleport routing is fixed. 

http://maps.secondlife.com/secondlife/The%20Science%20Circle/72/129/30

Move to destination selector, choose “Travel to the Time of Titanoboa”.




By Alex Hastings, Titanoboa created by Greg Bollella, Ecosystem by Linda Morris Kelley 



A Christmas Carol, Dickens

InVirtuaity Learning

http://maps.secondlife.com/secondlife/InVirtuity%20Learning/40/124/763



1. Scrooge & Marley’s counting-house

Look outside of this office.

“Scrooge & Marley” (counting-house)

- Scrooge

- clerk Bob Cratchit

- Scrooge’s nephew Fred

Exit to 'On to see Maley's Ghost.

Scrooge’s bedroom

Marley's Ghost

Exit through ‘Christmas Past’.

2. Christmas Past (The 1st of the three spirits)

Scene 1: Fezziwig's Ball

Scene 2: Scrooge breaks up with his fiance Bell

Return to 'Scrooged Central' and exit through 'Christmas Present'.

3. Christmas Present (The 2nd of the three spirits):

Scene 1: The Cratchit Family

Enter to next door.

Scene 2: The Marketplace Shopping for Dinner (Marquis & Anna)

Scrooge's home.

Return to 'Get Scrooged Central and exit through 'Christmas Future'.

4. Christmas Future (The last of the spirits):

Scene 1: The Cratchit Family mourns tiny Tim

Enter to next door

Scene 2- Scrooge's Tomb (Creeping Death)

Enter to next door

5. The End of It 

Scene 1: The End of It (Scrooge's home)



Macbeth, Shakespeare

Foul Whisperings, Strange Matters, Macbeth

http://maps.secondlife.com/secondlife/Macbeth/47/50/55


1. Ruins

1) Touch foot of a fountain '?' to get Welcome (notecard), User Attachment (HUD) and Key Scroll (texture)

2) Find the 'Macbeth User Attachment' object in your inventory, right-click it and select 'Wear' and keep it to the end. It is a dagger on your right hand but invisible yet.

3) Open 'Macbeth Key Scroll' in your inventory, and check slate images of Crown & Dagger. 

4) Find Crown Slate in the ruin to start 'Experience Macbeth's descent into madness' 

2. Throne room (Crown Slate)

Get 3 notecard, "Lady Macbeth's Wunderkammer (chamber of wonders)" and "Macbeth: Throne Room" and another "Macbeth: Throne Room"on the floor.

Click

  • Baby shoes (chimpanzee voice)
  • Vial of Poison (drum sound?) 
  • Ghost of The Captain, Duncan, 3 witches
  • Book 2: Throne Room
  • Ghost of The Captain, Duncan, 3 witches
  • Book 2: Throne Room

3. Rose garden

4. Raven’s nest

Get a notecard "Macbeth: The Raven" in the nest.

Ride a Raven.

Raven arrives at Dagger Slate, enter 'Chamber of Blood' 

5. Chamber of Blood (Dagger Slate)

Get a notecard "Macbeth: Chamber of Blood" in the chamber.

Fight ghosts with your dagger.

Exit from chamber

6. Maze

Get a notecard "Macbeth: Maze" on the floor.

Go through the Maze and exit to the Portal.

7. What if Macbeth had chosen differently? (Jigsaw Puzzle Slate)

Get 4 notecard "Macbeth Statue of Macbeth", "Macbeth: Theater Masks", "Macbeth: Symbol: Leather Wallet" and "Macbeth: Symbol: Scales"



“Dracula”, Bram Stoker, 1897

Castle Dracula- A Gothic Horror Experience

http://maps.secondlife.com/secondlife/Fort%20Nowhere/128/249/1103

Created by Wanders Nowhere


Wanders Nowhere provides wonderful Dinosaur World, Prehistorica. He also provides the world of  “Dracula” (Bram Stoker, 1897).

In 1897, Jonathan Harker, a solicitor from London, was invited by Count Dracula and visited at Castle Dracula in the Carpathian Mountains in Transylvania, and disappeared.

His fiance, Mina Murray asked us to investigate his disappearance and to return him safely.

Your mission is to visit Castle Dracula and collect 16 pages of Jonathan’s diary. When you complete all of them, you will find your own destiny.

In a field survey, you need to quest, draw a map, find important things and collect detailed information. In a metaverse, you will do the same things.

2021/10/17

Kristallnacht 1938, US Holocaust Memorial Museum

Witness Stories: This environment was inspired by the stories of Kristallnacht survivors. Explore and touch everything.

Information Tag: Jews were required to write their names on their windows prior to Kristallnacht.

Propaganda: This caricature of Herschel Grynszpan, the Jewish assassin of Ernst vom Rath, was on the cover of Der Stürmer in December 1938. The caption reads,

 'Jewish Murderer/Despicable Jewish deeds besmirch the land

In which the Jewish murderer was accorded the rights of a guest

You have given the murderous people a free path

If you treat the criminal like a human being!'

2021/09/08

Renaissance Island

 by Baroness Anne de Darcy (Amza Hydraconis)

When Renaissance Island was created back in the beginning of the year 2007, no one had any idea how long it would last.  Now in our 11th year, Renaissance Island has gone through quite a few changes as SL grew and improved.  Created by librarians, Renaissance Island is akin to a classroom sim open to scholars of the Renaissance and/or Tudor period.

Most recent changes made were to make it more authentic in how a small English village looked. (Although, an explanation is needed as to why the Globe Theatre is in a small English village.) 

There are currently 3 exhibits:  printing, weaving and a bakery.  More exhibits are being planned as of this writing.  

The below SLURL will drop you in front of the Boar's Head Inn where storytelling and music occurs.  Please feel free to explore the region at your leisure.

Second Life: Renaissance Island (217, 211, 26) : Teleport map & Tour ride

2021/09/06

Architectural style/ 建築様式

〇Ancient Roman architecture/ ローマ建築:6世紀BC~4世紀AD

ローマン・コンクリート(Roman concrete)、オーダー(Classical order)、アーチ(Arch)、トンネル・ヴォールト

It used new materials, particularly Roman concrete, and newer technologies such as the arch and the dome to make buildings that were typically strong and well-engineered

〇Romanesque architecture/ ロマネスク建築:1000-1200 AD

古代ローマの影響。石造りの分厚い壁、多数の小さな窓、半円アーチ、豪華な柱頭

massive quality, thick walls, round arches, sturdy pillars, barrel vaults, large towers and decorative arcading

〇Gothic Architecture/ ゴシック建築:12世紀後半~16世紀

大きな窓とステンドグラス、尖頭アーチ(Pointed arch)、リヴ・ヴォールト式天井、飛び梁(Flying buttress)、尖塔(pinnacle)。ノートルダム大聖堂。houzz

the pointed or ogival arch. The use of the pointed arch in turn led to the development of the pointed rib vault and flying buttresses, combined with elaborate tracery and stained glass windows 

Notre-Dame de Paris, Paris, 1250

2021/09/04

Rocca Sorrentina- 18th century fictional Italy

Rocca Sorrentina is a project of Brown University, featuring a representation of a fictitious but historically-plausible 18th century island community, located in the Bay of Naples, off the coast of the Sorrento region in southern Italy.   We are seeking to interpret and better understand various aspects of the Enlightenment and the era of the "Grand Tour" as they were manifested in Italy in the latter part of the 1700's.

There are three general areas of interest in the two regions:

1. THE OOC ENTRY PLATFORM AND EXHIBIT HALLS (Rocca Sorrentina)
The Entry Platform contains 
    •  An Orientation area with free 18th century clothing
    •  the Showcase Gallery, which mounts regular shows of paintings, photographs and other artistic creations by residents and other Second Life artists.  
    *  Two exhibit halls which contain informative displays and museum-quality exhibits highlighting important aspects of 18th century history, literature, culture, and ideas.   

2. ISLAND-LEVEL AREAS (Rocca Sorrentina)
** Take the teleport from the Entry Platform to the "Town & Harbor" **

2021/08/29

Modern History


Time Machine laboratory: Second Life :Time Portal (128,128,1931)
by Jo Yardley
by Akiko Kinoshi (Akiko Kiyori)
by Amza Hydraconis, Princej3rd Figaro
by Aldo Stern
Museum of Nuclear Warfare: Second Life: Xemia (69,221,22)
by OtakuSempai Button
etc.

** Prince Shōtoku/ 聖徳太子, 1st centralized national system in Japan, 574 -622 **

Jules Vernes, Twenty Thousand Leagues Under the Seas

Robert Fulton', Robert Fulton's Nautilus/ フルトンのノーチラス号, laumched in 1800, France


2019/09/16

LSL/ スクリプト

○LSLポータル(wiki.secondlife.com)
http://wiki.secondlife.com/wiki/LSL_Portal/ja
○LSLチュートリアル(wiki.secondlife.com)
http://wiki.secondlife.com/wiki/LSL_Tutorial/ja
○LSL Wiki : PageIndex
https://lslwiki.digiworldz.com/lslwiki/wakka.php?wakka=PageIndex
○lsl備忘録
https://w.atwiki.jp/lslwiki/

○アイピロ.com
http://www.aipiro.com/lsltips/
○BlackSheep-LSL@Wiki
https://w.atwiki.jp/mizcremorne/
○LSLスクリプター
http://slscripter.seesaa.net/
○SHOP ZERO
http://zero2000.slmame.com/c6192.html
○バーチャルワールド ミタコト キイタコト
https://snumaw.blogspot.com/search/label/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88
○Hamster Bar
https://hamsterbar-faboo.jimdo.com/%E3%83%81%E3%83%A5%E3%83%BC%E3%83%88%E3%83%AA%E3%82%A2%E3%83%AB-%E3%83%8F%E3%83%A0%E7%B7%A8-1/sl%E3%81%A7%E3%82%82%E3%81%AE%E3%81%A5%E3%81%8F%E3%82%8A/
○Second Life参入支援サービス
https://www.searay.co.jp/service/sl/p04_script.html
○セカンドライフプラネット
LSL101/ LSL101-2/ LSL超初心者講座(ロケット)/ LSL-Tips集/ LSL-Tips制作講座/
○放置かも- Shop Chihiro (Backup)
http://backup-beta.blogspot.com/search/label/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88?max-results=10
○Furry Japan ホームページ
http://furryjapan.sakura.ne.jp/script.html
○FairySnow
http://blog.fairysnow.com/search/label/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88
○BlackSheep-LSL@Wiki
https://w.atwiki.jp/mizcremorne/
○なたで日記
https://blog.natade.net/?s=LSL

2019/08/26