Jump to content

Recommended Posts

Posted

How can I add the player to a faction with a script fragment?

Posted

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 later

and replace it with

Game.GetPlayer().AddToFaction(TheFactionPropertyThatYouCreatedEarlier)

and compile.

Posted

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 later

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

Posted

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.

  • Recently Browsing   0 members

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