avianmosquito Posted September 20, 2011 Share Posted September 20, 2011 This script is tied to Sunny Smiles' line "Now, see those sasparilla bottles on the fence there? Take this and try to hit a couple of them." I've modified it as part of my mod, but it won't compile. What have I done wrong? if (GetStage VCG02 < 20) SetStage VCG02 20 ; stop the patrol if it isn't already SunnyREF.ResetAIendifSetObjectiveCompleted VCG02 5 1;SetObjectiveDisplayed VCG02 10 1;;Enable Parent.VCG02BottleMarkerREF.Enable; if IsPlayerTagSkill Guns player.additem CondNVTargetRifle 1 player.additem Ammo22LR 60 player.equipitem Weap22Rifleelseif player.additem CondBBGunNPC 1 player.additem AmmoBB 300 player.equipitem WeapBBGun SetStage CGTutorial 60 Note: CondNVTargetRifle is a leveled list providing Weap22Rifle at various conditions, and is part of the mod. Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 Is that the whole script? Because if it is, your missing "ScriptName MyScript" and "Begin Something". Other than that, "elseif" doesn't have a condition, so you might want to change it to just "else" and then insert a endif. Use this if your scripts doesn't compile: http://www.cipscis.com/fallout/utilities/validator.aspx Link to comment Share on other sites More sharing options...
avianmosquito Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) Is that the whole script? Because if it is, your missing "ScriptName MyScript" and "Begin Something". ...That part I didn't alter. I'll look it over. EDIT:It's tied to a line of dialogue, apparently it doesn't need that part. Other than that, "elseif" doesn't have a condition, so you might want to change it to just "else" and then insert a endif. Use this if your scripts doesn't compile: http://www.cipscis.c.../validator.aspx Maybe that's it, then. EDIT:Yep. One typographical error that should have been obvious. (How did I miss that?) Edited September 20, 2011 by avianmosquito Link to comment Share on other sites More sharing options...
avianmosquito Posted September 20, 2011 Author Share Posted September 20, 2011 While we're here, I've got another one. This one is tied to Doc Mitchell's line, where he gives you your stuff. if IsPlayerTagSkill Guns player.additem WeapNVBBPistol 1 player.additem AmmoBB 300endif if IsPlayerTagSkill EnergyWeapons player.additem ToyLaser 1endif if IsPlayerTagSkill Explosives player.additem WeapGrenadeCherryBomb 20endif if IsPlayerTagSkill MeleeWeapons player.additem WeapNVStraightRazor 1endif if IsPlayerTagSkill Unarmed player.additem WeapNVBoxingTape 1endif if IsPlayerTagSkill Barter player.additem Caps001 100endif if IsPlayerTagSkill Lockpick player.additem Lockpick 10endif if IsPlayerTagSkill Medicine player.additem BloodPack 1endif if IsPlayerTagSkill Repair player.additem NVRepairKitendif if IsPlayerTagSkill Survival player.additem CaravanLunch 1 player.additem WaterPurified 3 player.additem PinyonNuts 5endif Either the GECK hates me or I just can't script. I have been looking over and modifying this one for some time now. I've tried several variations, but no matter what I do, it gives me the default items instead. For comparison, here's the original script. if IsPlayerTagSkill Guns player.additem CondNV9mmPistolLoot 1 player.additem Ammo9mm75 30endif if IsPlayerTagSkill EnergyWeapons player.additem CondLaserPistolLoot 1 player.additem AmmoSmallEnergyCell75 25endif if IsPlayerTagSkill Explosives player.additem LootNVDynamite75 8endif if IsPlayerTagSkill MeleeWeapons player.additem CondNVStraightRazorRaider 1endif if IsPlayerTagSkill Unarmed player.additem CondNVBoxingGloveLoot 1endif Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 Maybe it's not saving correctly. Did you create a new script or alter the existing one? Also, make sure your .esp is last in load order, maybe you have a conflict. Link to comment Share on other sites More sharing options...
avianmosquito Posted September 20, 2011 Author Share Posted September 20, 2011 Maybe it's not saving correctly. Did you create a new script or alter the existing one? Also, make sure your .esp is last in load order, maybe you have a conflict. ...It's in the filtered dialogue window. I had no choice but to alter an existing one. Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 Then try to move it last in load order. Link to comment Share on other sites More sharing options...
avianmosquito Posted September 20, 2011 Author Share Posted September 20, 2011 Then try to move it last in load order. That was the first thing I tried. Second was to restart the game. Third was to search for syntax errors. By all accounts I've done nothing wrong, and it still doesn't work. Link to comment Share on other sites More sharing options...
AlexxEG Posted September 20, 2011 Share Posted September 20, 2011 Then I'm clueless, sorry man. :/ Link to comment Share on other sites More sharing options...
avianmosquito Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) Then I'm clueless, sorry man. :/ If I ever fix it, I'll get back to you. EDIT:Turns out the script I modified is attached to a line that isn't used and doesn't actually do anything. Apparently when they changed Doc Mitchell's line they left the old one, script and all, and that's how this debacle started. Edited September 20, 2011 by avianmosquito Link to comment Share on other sites More sharing options...
Recommended Posts