This should work:
void Dance(object oPlayer=OBJECT_SELF)
{
effect eNap = EffectVisualEffect (VFX_IMP_SLEEP);
PlaySound("al_pl_x2tablalp");
AssignCommand (oPlayer, ActionPlayAnimation (ANIMATION_FIREFORGET_DODGE_DUCK));
AssignCommand (oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK1));
DelayCommand (1.5, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_FIREFORGET_DODGE_DUCK)));
DelayCommand (1.5, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK1)));
DelayCommand (3.0,PlaySound("al_pl_x2bongolp1"));
DelayCommand (3.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_SPASM,1.0,3.0)));
DelayCommand (3.0, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK2)));
DelayCommand (6.0,PlaySound("al_pl_x2bongolp2"));
DelayCommand (6.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_CONJURE2, 1.0, 3.0)));
DelayCommand (6.0, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK1)));
DelayCommand (9.0,PlaySound("al_pl_x2bongolp1"));
DelayCommand (10.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_SPASM,1.0,3.0)));
DelayCommand (10.0, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK2)));
DelayCommand (12.0,PlaySound("al_pl_x2bongolp2"));
DelayCommand (13.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_SPASM,1.0,3.0)));
DelayCommand (13.0, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK1)));
DelayCommand (15.0,PlaySound("al_pl_x2bongolp1"));
DelayCommand (16.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_SPASM,1.0,3.0)));
DelayCommand (16.0, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK2)));
DelayCommand (18.0,PlaySound("al_pl_x2bongolp2"));
DelayCommand (19.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_CONJURE2, 1.0, 3.0)));
DelayCommand (19.0, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_MOVEOVER)));
DelayCommand (21.0,PlaySound("al_pl_x2bongolp1"));
DelayCommand (22.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_SPASM,1.0,3.0)));
DelayCommand (22.5, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK3)));
DelayCommand (24.0,PlaySound("al_pl_x2bongolp2"));
DelayCommand (25.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_CONJURE2, 1.0, 3.0)));
DelayCommand (27.0,PlaySound("al_pl_x2bongolp1"));
DelayCommand (28.0, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_SPASM,1.0,3.0)));
DelayCommand (28.0, AssignCommand
(oPlayer, PlayVoiceChat (VOICE_CHAT_GATTACK3)));
DelayCommand (30.0,PlaySound("al_pl_x2tablalp"));
DelayCommand (31.5, AssignCommand
(oPlayer, ActionPlayAnimation (ANIMATION_LOOPING_DEAD_BACK,1.0,30.0)));
DelayCommand (32.5,
ApplyEffectToObject (DURATION_TYPE_INSTANT, eNap, oPlayer, 10.0));
}
Modified by myself from inc_emotewand written by Samius Maximus and copyright © Bioware Corp.
Place the script in an include file and call it with the target creature as the only parameter. Uses OBJECT_SELF as the target if none is provided.
[edit]
You'll need to unsplit the lines after doing a copy/paste. The forum has, as usual, royally mucked up the formatting of the script.
Modifié par Melkior_King, 07 juillet 2011 - 09:28 .