Jump to content

Basic Scripting Help


ABVXYzackattack

Recommended Posts

Hey I'm trying to run a super simple script, that for some reason makes so sense. So at a certain stage in my quest, I want this to happen:

 

Game.getplayer().addtofaction(ZCollegeSynodFaction) but it doesn't work! Everything is right, because I cross-examined the Dark Brotherhood quest and it did the same exact thing:

 

Game.getplayer().addtofaction(DarkBrotherhoodFaction)

 

What do I need to do to fix this!!! When I try to compile it, it says that my variable is undefined :confused:

Link to comment
Share on other sites

You need to tell papyrus what you mean by "DarkBrotherhoodFaction". To do this you define a new property (which is a type of variable) with this name.

 

This is how you would define a faction property. There are other ways to do this but I want you to go to the scripts tab on your quest. Edit your quest scripts source and add this line at the very bottom and save.

Faction Property DarkBrotherhoodFaction Auto

 

You not done yet. You have properly defined you property but you must also fill it with data. On the scripts tab highlight your script and press the properties button. There you can click edit value and fill your "DarkBrotherhoodFaction" property with the "DarkBrotherhoodFaction" faction.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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