Kegstand はスクリプトの名前。
このスクリプトを呼び出したオブジェクトが使用された時に
○○を実行するという内容。○○の中身はこんな感じ。
Begin Kegstand if ( OnActivate ) ○○ endif End Kegstand

Begin Kegstand short gotBottle if ( OnActivate ) set gotBottle to ( Player-> GetItemCount, "misc_com_bottle_09" ) endif End Kegstand空き瓶が1つ以上あった時。
if ( gotBottle >= 1 ) ;空き瓶が1つ以上ある Player-> RemoveItem, "misc_com_bottle_09", 1 ;プレイヤーから空き瓶1つ削除 Player-> Drop, "Bottle_Local_Brew_01", 1 ;プレイヤーがお酒を1つ落とす set gotBottle to 0 ;変数初期化空き瓶が無かった時のメッセージ。
elseif ( gotBottle == 0 ) ;空き瓶が0 MessageBox, "You don't have any Bottle." ;メッセージお酒を注いでる時の効果音。
PlaySound "drown" ;SoundID "drown"全部つなげる。これを Act_Com_Kegstand と Act_De_Kegstand に登録してセーブする。
Begin Kegstand short gotBottle if ( OnActivate ) set gotBottle to ( Player-> GetItemCount, "misc_com_bottle_09" ) if ( gotBottle >= 1 ) PlaySound "drown" Player-> RemoveItem, "misc_com_bottle_09", 1 Player-> Drop, "Bottle_Local_Brew_01", 1 set gotBottle to 0 elseif ( gotBottle == 0 ) MessageBox, "You don't have any Bottle." endif endif End Kegstand