Author Topic: My first attempt at a simple cut scene (Help plz :)  (Read 367 times)

Legacy_Haunted-Within

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
My first attempt at a simple cut scene (Help plz :)
« on: February 17, 2015, 06:13:46 am »


               

Hi, I was trying to do the cutscene from the nwn toolset guide and i keep getting an error msg.


I am very new to the toolset and cant script a lick, but im not as confused as i was so thats a good thing,anyway can somone have a look and tell me how to fix it? Please and Thx.


                                                                                                                                H.W.


 


void main()

{

object oTarget = GetObjectByTag("ci_BanditLeader");

object oPC = GetFirstPC();

int nInt - GotGold (oPC);


FadeToBlack(oPC,FADE_SPEED_MEDIUM);

AssignCommand(oPC,TakeGoldFromCreature(nInt,oPC,TRUE));

AssignCommand(oTarget,ActionMoveAwayFromObject(oPC));


DelayCommand(3.0,SetCutsceneMode(oPC,TRUE));

DelayCommand(3.0,FadeFromBlack(oPC,FADE_SPEED_MEDIUM));

DelayCommand(10.0,FadeToBlack(oPC,FADE_SPEED_MEDIUM));


DelayCommand(15.0,FadeFromBlack(oPC,FADE_SPEED_MEDIUM));

DelayCommand(15.0,SetCutsceneMode(oPC,FALSE));


DelayCommand(20.0,DestroyObject(oTarget,0.0));

}


 


here is the error msg on line 4


 


ERROR:  PARSING VARIABLE LIST



               
               

               
            

Legacy_Haunted-Within

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
My first attempt at a simple cut scene (Help plz :)
« Reply #1 on: February 17, 2015, 07:29:12 am »


               

Nvm, I redid it and it compiled hope it works '<img'>



               
               

               
            

Legacy_Tarot Redhand

  • Hero Member
  • *****
  • Posts: 4165
  • Karma: +0/-0
My first attempt at a simple cut scene (Help plz :)
« Reply #2 on: February 17, 2015, 04:09:12 pm »


               

You could always try the Gestalt Cutscene Scripting System from the new vault.


 


TR



               
               

               
            

Legacy_CaveGnome

  • Sr. Member
  • ****
  • Posts: 432
  • Karma: +0/-0
My first attempt at a simple cut scene (Help plz :)
« Reply #3 on: February 18, 2015, 10:33:32 am »


               


Hi, I was trying to do the cutscene from the nwn toolset guide and i keep getting an error msg.


I am very new to the toolset and cant script a lick, but im not as confused as i was so thats a good thing,anyway can somone have a look and tell me how to fix it? Please and Thx.




 


Perhaps something like:  int nInt = GotGold (oPC);  could be the problem.



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
My first attempt at a simple cut scene (Help plz :)
« Reply #4 on: February 19, 2015, 01:44:17 am »


               

Gestalt cutscene system is pretty much the standard library for Cutscenes.


Some fun ones can be made with it


 



 




               
               

               
            

Legacy_Haunted-Within

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
My first attempt at a simple cut scene (Help plz :)
« Reply #5 on: February 20, 2015, 08:25:23 am »


               

That is awsome,