UID12556
帖子
精華
主題
積分716351
現金
積極性
威望
違規
熱心
推廣次數
閱讀權限255
註冊時間2007-9-5
在線時間 小時
最後登錄1970-1-1
TA的每日心情 | 開心 2019-8-18 04:57 PM |
---|
簽到天數: 2148 天 連續簽到: 1 天 [LV.Master]伴壇終老
|
發表於 2009-1-23 20:03:18
|
顯示全部樓層
*soundeffect "<effect filename>",<type>
*soundeffectall "<effect filename>",<type>{,"<map name>"}{,<x0>,<y0>,<x1>,<y1>}
These two commands will play a sound effect to either the invoking character
only ('soundeffect') or multiple characters ('soundeffectall'). If the running
code does not have an object ID (a 'floating' npc) or is not running from an NPC
object at all (an item script) the sound will be centered on the character who's
RID got attached to the script, if any. If it does, it will be centered on that
object. (an NPC sprite)
Effect filename is the filename in a GRF. It must have the .wav extension.
It's not quite certain what the 'type' actually does, it is sent to the client
directly. It probably determines which directory to play the effect from.
It's certain that giving 0 for the number will play sound files from 'data/wav',
but where the other numbers will read from is unclear.
You can add your own effects this way, naturally.
特 色 這 種 東 西
不 會 透 露 太 多 |
|