CTD, possibly script related

Post » Tue May 17, 2011 2:22 pm

Hello, this one quest Im making requires a teleport. Here's the script which seems to cause a CTD for no reason I can see.


SCN AAATELETO(Hidden from public)Begin OnTriggerEnter Player   imod TeleEffect    player.moveto ParraTeleMarker   DisablePlayerControls 0 0 1 0 0     AddScriptPackage SurvivorTalkToPlayerIntro end


On another note, here is what seems to be a non-functioning script. Any ideas?

SCN aaaRepairGeneratorshort DoOnceBegin Onactivate  if player.getitemcount AbraxoCleaner 1 == 1&&player.getitemcount SpareParts 3 == 1&&player.getitemcount Wrench01 1 == 1&&player.getitemcount Hammer01 1 == 1&&player.getitemcount TinCan01 2 == 1&&DoOnce == 0      GeneratorLight01.enable        Transportzone1.enable        ShowMessage GeneratorFixed         playsound3d OBJConsole01LP         Set DoOnce to 1Else     ShowMessage GeneratorBroken      playsound3d AMBElectricArcSmallA      endifend

User avatar
Joe Alvarado
 
Posts: 3467
Joined: Sat Nov 24, 2007 11:13 pm

Post » Tue May 17, 2011 1:40 pm

player.moveto ParraTeleMarker

Acts as a return and nothing after this line will be executed.

player.getitemcount AbraxoCleaner >= 1 && player.getitemcount SpareParts >= 3 && player.getitemcount Wrench01 >= 1 && player.getitemcount Hammer01 >= 1 && player.getitemcount TinCan01 >= 2 && DoOnce == 0


Your using the GetItemCount wrong.
You need to use spaces in the function.
User avatar
Nadia Nad
 
Posts: 3391
Joined: Thu Aug 31, 2006 3:17 pm

Post » Tue May 17, 2011 12:49 pm

Spaces in the script name - I would get rid of them. Unless you meant to put a ';' in front of (Hidden from public)?

SCN AAATELETO(Hidden from public)

User avatar
ezra
 
Posts: 3510
Joined: Sun Aug 12, 2007 6:40 pm


Return to Fallout 3