Jump to content

There's something wrong with this script


avianmosquito

Recommended Posts

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.ResetAI

endif

SetObjectiveCompleted VCG02 5 1;

SetObjectiveDisplayed VCG02 10 1;

;Enable Parent.

VCG02BottleMarkerREF.Enable;

 

if IsPlayerTagSkill Guns

player.additem CondNVTargetRifle 1

player.additem Ammo22LR 60

player.equipitem Weap22Rifle

elseif

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

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

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 by avianmosquito
Link to comment
Share on other sites

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 300

endif

 

if IsPlayerTagSkill EnergyWeapons

player.additem ToyLaser 1

endif

 

if IsPlayerTagSkill Explosives

player.additem WeapGrenadeCherryBomb 20

endif

 

if IsPlayerTagSkill MeleeWeapons

player.additem WeapNVStraightRazor 1

endif

 

if IsPlayerTagSkill Unarmed

player.additem WeapNVBoxingTape 1

endif

 

if IsPlayerTagSkill Barter

player.additem Caps001 100

endif

 

if IsPlayerTagSkill Lockpick

player.additem Lockpick 10

endif

 

if IsPlayerTagSkill Medicine

player.additem BloodPack 1

endif

 

if IsPlayerTagSkill Repair

player.additem NVRepairKit

endif

 

if IsPlayerTagSkill Survival

player.additem CaravanLunch 1

player.additem WaterPurified 3

player.additem PinyonNuts 5

endif

 

 

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 30

endif

 

if IsPlayerTagSkill EnergyWeapons

player.additem CondLaserPistolLoot 1

player.additem AmmoSmallEnergyCell75 25

endif

 

if IsPlayerTagSkill Explosives

player.additem LootNVDynamite75 8

endif

 

if IsPlayerTagSkill MeleeWeapons

player.additem CondNVStraightRazorRaider 1

endif

 

if IsPlayerTagSkill Unarmed

player.additem CondNVBoxingGloveLoot 1

endif

 

Link to comment
Share on other sites

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 by avianmosquito
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...