I am trying to script cutscene for the begining of my module. The scripting commands I have gotten so far are based on other modules that I have donwloaded from the vault(I am not copying though). The desired effect that I want is to have the PC enter, the Zhentarim mage commander walks up and says I line above his head, then the PC gets a VFX applied to him/her, then falls down with the dying sound. Then I want 3 Netheril Wizards, and their commander Alvorah to appear. I want the camera to face her and the Zhent Boss back and forth while they say lines, then they fight, with the Netheril beating the Zhents, then Alvorah walks up to where the PC is and says a line, then teleports him/her away and the cutscene ends.
Sorry I know that was alot to take in. I am trying to script the scene and I have very little experiance, and I have been getting so many errors when I try to compile [img]graemlins/1pissed.gif[/img]

[img]graemlins/1pissed.gif[/img]

Could someone who understands scripting better could tell me what I did wrong?
Any help you can offer would be much appreciated!
Here it is, sorry if it is a bit messy:
EDIT: The include statements below are what I had to rename the resources
#include "camera_rec"
#include "nw_i0_generic"
#include "cutscene_rec"
void NetherilTeleport()
{
object oWPAlv1 = GetWaypointByTag("WP_Alv_appear");
object oWPWiz1 = GetWaypointByTag("WP_Wiz1_appear");
object oWPWiz2 = GetWaypointByTag("WP_Wiz2_appear");
object oWPWiz3 = GetWaypointByTag("WP_Wiz3_appear");
effect eTeleport = EffectVisualEffect(VFX_IMP_SONIC);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eTelep ort,oWPAlv1, 2.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eTelep ort,oWPWiz1, 2.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eTelep ort,oWPWiz2, 2.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eTelep ort,oWPWiz3, 2.0);
DelayCommand(2.0,CreateObject(OBJECT_TYPE_CREATURE ,"Alvorah",
GetLocation(oWPAlv1),TRUE,"Alvorah1"));
DelayCommand(2.0,CreateObject(OBJECT_TYPE_CREATURE ,"NethMage",
GetLocation(oZWP3),TRUE,"Wiz1"));
DelayCommand(2.0,CreateObject(OBJECT_TYPE_CREATURE ,"NethMage",
GetLocation(oZWP3),TRUE,"Wiz2"));
DelayCommand(2.0,CreateObject(OBJECT_TYPE_CREATURE ,"NethGirlMage",
GetLocation(oZWP3),TRUE,"Wiz3"));
}
//////
void main()
{
object oPC = GetEnteringObject();
object oMageboss = GetObjectByTag("ZhentCommander1");
object oMage1 = GetObjectByTag("ZhentMage1");
object oMage2 = GetObjectByTag("ZhentMage2");
object oMage3 = GetObjectByTag("ZhentMage3");
object oMage4 = GetObjectByTag("ZhentMage4");
object oWPAlv1 = GetWaypointByTag("WP_Alv_appear");
object oWPWiz1 = GetWaypointByTag("WP_Wiz1_appear");
object oWPWiz2 = GetWaypointByTag("WP_Wiz2_appear");
object oWPWiz3 = GetWaypointByTag("WP_Wiz3_appear");
object oWPAlv2 = GetWaypointByTag("WP_Alv_move");
object oAlvorah = GetObjectByTag("Alvorah1");
object oWiz1 = GetObjectByTag("Wiz1");
object oWiz2 = GetObjectByTag("Wiz2");
object oWiz3 = GetObjectByTag("Wiz3");
object oSold1 = GetObjectByTag("ZhentSold1");
object oSold2 = GetObjectByTag("ZhentSold2");
object oRogue1 = GetObjectByTag("ZhentKill1");
object oRogue2 = GetObjectByTag("ZhentKill2");
effect eEvilSpell = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE);
object oWPPC = GetWaypointByTag("Start_Point");
const float fR = 5.0;
const float fP = 60.0;
////////////////////////////////////////////////
if(GetIsPC(oPC))
{
string sHimHer;
string sHeShe;
if (GetGender(oPC) == GENDER_FEMALE)
{
sHimHer = "her";
sHeShe = "she";
}
else
{
sHimHer = "him";
sHeShe = "he";
}
DelayCommand(0.1,SetCutsceneMode(oPC,TRUE));
DelayCommand(38.0,GestaltCameraFace(0.0,oMageboss, fR,fP,oPC,fR,fP,2.0,30.0,oPC,
2,1,0));
DelayCommand(30.0,AssignCommand(oMageboss,
SpeakString("Hold you positions my brethren. I will deal with "+sHimHer+"!.")));
DelayCommand(30.0,
AssignCommand(oMageboss,
SpeakString("You think as the last one alive that you will defeat us?")));
DelayCommand(30.AssignCommand(oMageboss, SpeakString("You are not as powerful as you think.")));
DelayCommand(14.0,PlayVoiceChat(VOICE_CHAT_BATTLEC RY2,oMageboss));
DelayCommand(2.0, AssignCommand(oPC,ApplyEffectToObject(DURATION_TYP E_INSTAN,eEvilSpell,OBJECT_SELF,2.0)));
DelayCommand(1.0,PlayVoiceChat(VOICE_CHAT_DEATH, oPC));
DelayCommand(0.5,AssignCommand(oPC,PlayAnimation(A NIMATION_LOOPING_DEAD_BACK,1.0,60.0)));
DelayCommand(38.0,GestaltCameraFace(0.0,oWPAlv1,fR ,fP,oPC,fR,fP,2.0,30.0,oPC,2,1,0));
NetherilTeleport(oAlvorah,oAlvorah,oMageboss);
DelayCommand(30.0,AssignCommand(oAlvorah,SpeakStri ng("You filthy Zhentarim have killed enough for one day.We will not allow you to get the scroll!")));
DelayCommand(30.0,AssignCommand(oMageboss,SpeakStr ing(".")));
DelayCommand(38.0,GestaltCameraFace(0.0,oMageboss, fR,fP,oPC,fR,fP,2.0,30.0,oAlvorah,2,1,0));
DelayCommand(0.1,SetCutsceneMode(oPC,FALSE));
//this is where I gave up and hoped it would compile, but it didn't obviously
}
}
[ 02-07-2004, 09:24 PM: Message edited by: Lupine_Hesperocyon ]