Rennn Posted August 7, 2013 Posted August 7, 2013 How can I add the player to a faction with a script fragment?
BrotherBob Posted August 7, 2013 Posted August 7, 2013 If this is for a quest, here's what I would do, because the CK is just weird:- Where you would probably want to start writing and compiling your script, just write: ;stuff I am going to type in later- Then, hit compile and a new script should appear on the right side of the screen. Now, you can select that script and add some properties. Note that if you attempted to add a property manually, the compiler will go berserk and will refuse to do such a simple thing. You'll want to add a faction property.- Now go back to where you typed ;stuff I am going to type in laterand replace it with Game.GetPlayer().AddToFaction(TheFactionPropertyThatYouCreatedEarlier)and compile.
Rennn Posted August 7, 2013 Author Posted August 7, 2013 If this is for a quest, here's what I would do, because the CK is just weird:- Where you would probably want to start writing and compiling your script, just write: ;stuff I am going to type in later- Then, hit compile and a new script should appear on the right side of the screen. Now, you can select that script and add some properties. Note that if you attempted to add a property manually, the compiler will go berserk and will refuse to do such a simple thing. You'll want to add a faction property.- Now go back to where you typed ;stuff I am going to type in laterand replace it with Game.GetPlayer().AddToFaction(TheFactionPropertyThatYouCreatedEarlier)and compile. Thank you so much!!I've been trying to figure out how to get around the CK's limits by using properties for weeks! Lol. It finally works after doing everything you said.
BrotherBob Posted August 8, 2013 Posted August 8, 2013 Don't thank me. I had that very same problem while making my latest mod. Luckily, LP1 responded to a thread I made and gave me that tip.
Recommended Posts