2010年09月15日
ブタでも簡単スクリプト!Hovering Text
Hello, I'm Frangi Bunny. I work for *Frangipani Garden*.
Look at the heap of croissants from my boss staying in Paris!
I'm under orders from my boss to deliver them to yakko, who runs a cafe at Ocean Blue Sim. I guess she is going to serve breakfast with a croissant.
My boss told me that I can have all the rest after I delivered them.
Oh, it smells so sweet, I'm so happy!
こんにちは!私フランジバニー。フランジパニガーデンの社員です。
見て、このクロワッサンの山。社長がパリから送ってくれたの。
オーシャンブルーでカフェを経営するyakkoちゃんの所に持って行くようにって。
カフェのモーニングセットに使うみたいだよ。余った分は私が食べてもいいんだって!
う~ん、いいにおい。嬉しいなぁ。
Well, I need to put a hovering message on the croissant using a script.
I'll show you how it works. First, rezz the object that is modifyable.
①Click on the object and select "edit". you'll see the edit window.
Then select "Content" tab and click "New script" button. You'll see "New script".
さてと、まずは贈答用のメッセージを入れないとね!スクリプトっていうのを使うんだよ。
教えてあげるね!まず、編集可の贈答用のオブジェクトを用意してね。
①それを右クリックで編集用の窓を出して、New scriptをクリックして新規スクリプトを作成だよ。
②Double-click on "New script", an edit window will pop up. You'll see the text in it.
Then delete it all, and copy & paste the text below.
②このNew scriptをダブルクリックで開くと中に何か書いてあるから、それを全部削除して、以下のテキストをコピー&ペーストだよ。
default
{
state_entry()
{
llSetText("yakkoちゃんへ\n*Frangipani Garden*より\n \n \n \n", <1,1,1>, 1.0);
}
}
Rewrite the message between " and ".
" \n " middle of the message is for begin on a new line.
③Click "Save" button. Done! It's so easy, no?
If you want to change the text color, rewrite the part of <1,1,1>.
<1,1,1>= White, <0,0,0>= Black, <1,0,0>= Red,
<0,1,0>= Green, <0,0,1>=Blue, <1,0,1>= Purple,
<1,1,0>= Yellow, <1,0.5,0>= Orange.
You can change the height of the hovering text above the object,
adding some " \n " with the space at the end of the message.
Just like this, " \n \n \n \n ". See the pic below.
------------------------------------------------------------------------------
" " の間のメッセージのところを自分の好きなメッセージに書き換えてね。
メッセージの途中に入っている \n は改行マークだよ。
③保存ボタンを押して、はい、出来あがり!簡単でしょ?
文字の色を変えたいときは、<1,1,1> ってところを書き換えるんだよ。
<1,1,1>は白、<0,0,0>は黒、<1,0,0>は赤、<0,1,0>は緑、<0,0,1>は青
<1,0,1>は紫、<1,1,0>は黄、<1,0.5,0>は橙 だよ。
メッセージのお尻に、改行の\nを、 \n \n \n \n こんな風にスペースを入れていくつかつけると、
表示されるメッセージの高さを調節できるよ。
ほら、 こんな風に。
Everything is ready!
さて、準備オッケー!
Now I'm going to deliver this croissant to yakko.
Do you want to have the croissants with me later?
じゃあ、ちょっとyakkoちゃんのところにクロワッサンを届けに行ってくるね。
あとで一緒にクロワッサン食べようね!
Look at the heap of croissants from my boss staying in Paris!
I'm under orders from my boss to deliver them to yakko, who runs a cafe at Ocean Blue Sim. I guess she is going to serve breakfast with a croissant.
My boss told me that I can have all the rest after I delivered them.
Oh, it smells so sweet, I'm so happy!
こんにちは!私フランジバニー。フランジパニガーデンの社員です。
見て、このクロワッサンの山。社長がパリから送ってくれたの。
オーシャンブルーでカフェを経営するyakkoちゃんの所に持って行くようにって。
カフェのモーニングセットに使うみたいだよ。余った分は私が食べてもいいんだって!
う~ん、いいにおい。嬉しいなぁ。
Well, I need to put a hovering message on the croissant using a script.
I'll show you how it works. First, rezz the object that is modifyable.
①Click on the object and select "edit". you'll see the edit window.
Then select "Content" tab and click "New script" button. You'll see "New script".
さてと、まずは贈答用のメッセージを入れないとね!スクリプトっていうのを使うんだよ。
教えてあげるね!まず、編集可の贈答用のオブジェクトを用意してね。
①それを右クリックで編集用の窓を出して、New scriptをクリックして新規スクリプトを作成だよ。
②Double-click on "New script", an edit window will pop up. You'll see the text in it.
Then delete it all, and copy & paste the text below.
②このNew scriptをダブルクリックで開くと中に何か書いてあるから、それを全部削除して、以下のテキストをコピー&ペーストだよ。
default
{
state_entry()
{
llSetText("yakkoちゃんへ\n*Frangipani Garden*より\n \n \n \n", <1,1,1>, 1.0);
}
}
Rewrite the message between " and ".
" \n " middle of the message is for begin on a new line.
③Click "Save" button. Done! It's so easy, no?
If you want to change the text color, rewrite the part of <1,1,1>.
<1,1,1>= White, <0,0,0>= Black, <1,0,0>= Red,
<0,1,0>= Green, <0,0,1>=Blue, <1,0,1>= Purple,
<1,1,0>= Yellow, <1,0.5,0>= Orange.
You can change the height of the hovering text above the object,
adding some " \n " with the space at the end of the message.
Just like this, " \n \n \n \n ". See the pic below.
------------------------------------------------------------------------------
" " の間のメッセージのところを自分の好きなメッセージに書き換えてね。
メッセージの途中に入っている \n は改行マークだよ。
③保存ボタンを押して、はい、出来あがり!簡単でしょ?
文字の色を変えたいときは、<1,1,1> ってところを書き換えるんだよ。
<1,1,1>は白、<0,0,0>は黒、<1,0,0>は赤、<0,1,0>は緑、<0,0,1>は青
<1,0,1>は紫、<1,1,0>は黄、<1,0.5,0>は橙 だよ。
メッセージのお尻に、改行の\nを、 \n \n \n \n こんな風にスペースを入れていくつかつけると、
表示されるメッセージの高さを調節できるよ。
ほら、 こんな風に。
Everything is ready!
さて、準備オッケー!
Now I'm going to deliver this croissant to yakko.
Do you want to have the croissants with me later?
じゃあ、ちょっとyakkoちゃんのところにクロワッサンを届けに行ってくるね。
あとで一緒にクロワッサン食べようね!
Posted by Frangi Bunny at 20:10│Comments(1)
<%word_all_comments%>
(´゚ω゚):;*.':;ブッ
マジデ届けてくれるんだw
スゲェうれしいのだヾ(*ΦωΦ)ノ ヒャッホゥ
でも今日はお店お休みだからさ
明日にでもなのだ、ばにちゃん( ● ´ ー ` ● )
まってるのだ(*゚‐゚)
マジデ届けてくれるんだw
スゲェうれしいのだヾ(*ΦωΦ)ノ ヒャッホゥ
でも今日はお店お休みだからさ
明日にでもなのだ、ばにちゃん( ● ´ ー ` ● )
まってるのだ(*゚‐゚)
Posted by やこち at 2010年09月15日 22:57
※このブログではブログの持ち主が承認した後、コメントが反映される設定です。