ABVXYzackattack Posted May 3, 2012 Share Posted May 3, 2012 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 More sharing options...
scrivener07 Posted May 5, 2012 Share Posted May 5, 2012 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 More sharing options...
Recommended Posts