Jump to content

Need help with scripting


bnxus

Recommended Posts

Hello guys, currently I'm trying to accomplish a script which enables some NPCs on the map if a certain stage of a certain quest is done.

 

To be more precisely: My endeavor is to create a script which enables a few NCR Troopers in Freeside if the player solved the quest 'King's Gambit' peacefully.

 

With my limited skills I have written this script:

 

scn NCRTrooperEnableSCRIPT

BEGIN GameMode

if	getStage VMS29 == 105
	NCRTrooperWranglerREF.enable;
endif
END

 

But unfortunately this script doesn't work...

 

VMS29 is the unique quest ID of 'King's Gambit' and 105 is the quest stage saying 'you've successfully mediated between the NCR and The Kings'

 

If somebody could help me with this I would be extremely grateful and a special credit in my Freeside NPC Project MOD is guaranteed.

 

Thanks in advance!

Link to comment
Share on other sites

It would be better to put this line

 

NCRTrooperWranglerREF.enable

 

in the result script box for VMS29 stage 105.

 

Thanks to all of you! Previously I've tried to do it through the result box but it didn't work either. The clue was that it's not stage 105 being set but 120 after you finish the quest. Although the stage description said something different!

Now I know how to acomplish my plans... so glad now :)

Next update will benefit a lot since I finally know how to use scripts to enable references. You will be all well credited... and yeah, thanks again ;)

Link to comment
Share on other sites

It would be better to put this line NCRTrooperWranglerREF.enable in the result script box for VMS29 stage 105.

For performance purposes, most definitely... but for compatability with other mods and official changes,

editing a Fallout.esm quest directly can have issues in the long run... kind of a toss-up really on how much

support issues you're willing to handle with your mod.

 

Perhaps a silent behind-the-scenes quest that tracks VMS29's conditions and fires this result

at the same time VMS29 completes? Would satisfy performance and compatability issues I believe...

Link to comment
Share on other sites

  • Recently Browsing   0 members

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