kellogsfrostedflakes Posted April 20, 2011 Share Posted April 20, 2011 I am still in the dark when it comes to scripting. Whenever I create/change a script GECK won't save it and I can never figure out what is actually wrong with my script. What I'm trying to do is change the quest where you turn in VaultSuits to Sarah in Vault 21. I took the original script and just inserted a few new vaultsuits so that she would accept them and I followed the template that already existed. For some reason GECK won't save the script. Here is what I've changed: ----------------------------------------------------------------------------------------- scn VFreeformTheStreet01SuitCountScript; - Jorge Short Vault3CountShort Vault11CountShort Vault19CountShort Vault22CountShort Vault34CountShort BoomSuitCount1Short BoomSuitCount2Short AsianVaultSuit101CountShort AsianVaultSuit34CountShort HispanicVaultSuit101CountShort HispanicVaultSuit34Count Short SuitCountShort BoomCountShort CashMoney Begin OnTriggerEnter Player Set Vault3Count to Player.GetItemCount VaultSuit3 Set Vault11Count to Player.GetItemCount VaultSuit11 Set Vault19Count to Player.GetItemCount VaultSuit19 Set Vault22Count to Player.GetItemCount VaultSuit22 Set Vault34Count to Player.GetItemCount VaultSuit34 Set AsianVaultSuit101Count to Player.GetItemCount AsianVaultSuit101 Set AsianVaultSuit34Count to Player.GetItemCount AsianVaultSuit34 Set HispanicVaultSuit101Count to Player.GetItemCount HispanicVaultSuit101 Set HispanicVaultSuit34Count to Player.GetItemCount HispanicVaultSuit34 Set SuitCount to ( Player.GetItemCount VaultSuit3 + Player.GetItemCount VaultSuit22 + Player.GetItemCount VaultSuit11 + Player.GetItemCount VaultSuit19 + Player.GetItemCount VaultSuit34 + Player.GetItemCount AsianVaultSuit101 + Player.GetItemCount AsianVaultSuit34 + Player.GetItemCount HispanicVaultSuit101 + Player.GetItemCount HispanicVaultSuit34 ) Set CashMoney to (SuitCount * 30) Set VFreeformTheStreet01.CashMoney to CashMoney Set VFreeformTheStreet01.VaultSuits3 to Vault3Count Set VFreeformTheStreet01.VaultSuits22 to Vault22Count Set VFreeformTheStreet01.VaultSuits11 to Vault11Count Set VFreeformTheStreet01.VaultSuits19 to Vault19Count Set VFreeformTheStreet01.VaultSuits34 to Vault34Count Set VFreeformTheStreet01.AsianVaultSuit101 to AsianVaultSuit101Count Set VFreeformTheStreet01.AsianVaultSuit34 to AsianVaultSuit34Count Set VFreeformTheStreet01.HispanicVaultSuit101 to HispanicVaultSuit101Count Set VFreeformTheStreet01.HispanicVaultSuit34 to HispanicVaultSuit34Count If VFreeformTheStreet01.BoomerSuits == 1 Set BoomSuitCount1 to Player.GetItemCount OutfitBoomer1 Set BoomSuitCount2 to Player.GetItemCount OutfitBoomer2 Set BoomCount to ( BoomSuitCount1 + BoomSuitCount2 ) Set CashMoney to ( ( SuitCount * 30) + ( BoomCount * 15 ) ) Set VFreeformTheStreet01.CashMoney to CashMoney Set VFreeformTheStreet01.Boomster1 to BoomSuitCount1 Set VFreeformTheStreet01.Boomster2 to BoomSuitCount2 Endif End ------------------------------------------------------------------------------------------------------------- If anyone knows what I need to look for please let me know. I'd appreciate any help at all. Nick Link to comment Share on other sites More sharing options...
viking99 Posted April 20, 2011 Share Posted April 20, 2011 i can't say exactly what is wrong with your script and I am too tired to really check it right now. anyway some advice: download "geck powerup" it lets you see your scripting errors instead of the vanilla that the script just won't save. i find it essential when modding. normally the first thing to check for is to check for any misspellings witch will stop the script from compiling. also remember that any item used in a script must exist and be a persistant reference, so if you haven't already create the valtsuits first. Link to comment Share on other sites More sharing options...
enlo Posted April 20, 2011 Share Posted April 20, 2011 uh, you copied the content of the file and tried to save it? did you change the script name (the first line)? Link to comment Share on other sites More sharing options...
majinshinsa Posted April 20, 2011 Share Posted April 20, 2011 you might also need to add the files to the VFreeformTheStreet01QuestScript script Link to comment Share on other sites More sharing options...
kellogsfrostedflakes Posted April 20, 2011 Author Share Posted April 20, 2011 I did change the files in VFreeformTheStreet01QuestScript as well (or at least I tried but that wouldn't save either). The items are already added in GECK. I didn't actually copy, I just opened the existing script and added the lines for the other armor and then tried to save. I didn't rename the title. I'll try using Geck Powerup and see if that shows the problem. I did run it through this script validator (http://www.cipscis.com/fallout/utilities/validator.aspx), but it wasn't clear about any problems with the script. Thanks for the all the help so far! Link to comment Share on other sites More sharing options...
kellogsfrostedflakes Posted April 21, 2011 Author Share Posted April 21, 2011 I tried using the GECK powerup and the error I'm getting is: line 42: Unknown variable or function 'AsianVaultSuit101'line 42: Missing variable name in set command. I'm have no idea what this means. AsianVaultSuit101 exists and is spelled correctly. Anyone know? Link to comment Share on other sites More sharing options...
viking99 Posted April 21, 2011 Share Posted April 21, 2011 is this one of the suits you added yourself if so check that it is a persistant reference. Link to comment Share on other sites More sharing options...
kellogsfrostedflakes Posted April 22, 2011 Author Share Posted April 22, 2011 They weren't set as a persistent reference, but are now. Now I'm getting a different error: Invalid variable name 'HispanicVaultSuit101Count'. I think this is beyond me. Link to comment Share on other sites More sharing options...
majinshinsa Posted April 25, 2011 Share Posted April 25, 2011 Set VFreeformTheStreet01.HispanicVaultSuit101 to HispanicVaultSuit101Count check VFreefromTheStreet01 to make sure that HispanicVaultSuit101 is initialized in that script Link to comment Share on other sites More sharing options...
rickerhk Posted April 26, 2011 Share Posted April 26, 2011 I tried using the GECK powerup and the error I'm getting is: line 42: Unknown variable or function 'AsianVaultSuit101'line 42: Missing variable name in set command. I'm have no idea what this means. AsianVaultSuit101 exists and is spelled correctly. Anyone know? So did you add this to the VFreeformTheStreet01QuestScript ? short AsianVaultSuit101 short AsianVaultSuit34 short HispanicVaultSuit101 short HispanicVaultSuit34 You would get that error if you did not. Link to comment Share on other sites More sharing options...
Recommended Posts