Jump to content

Making NPCs only friendly to players of a specific race


GyroxOpex

Recommended Posts

Hi all,

 

I'm currently in the process of making a mod which is (at the moment) titled "Playable Spriggan Races," but I may change it to "Life of a Spriggan." The mod would allow players not only to play as a Spriggan, but also to experience the life of one by showing exactly what goes on when you're a spriggan. Before release, I'm going to expand the mod so that there are, for instance, spriggan children and meetings of spriggans, but for the first playable build all I need is for spriggans to not be hostile towards members of a specific race (the SprigganPlayer race) while maintaining hostility towards other NPCs. How do I do this with the CK?

 

A speedy reply would be appreciated, as I hope to have the mod out soon. Thanks!

 

--GXO

Link to comment
Share on other sites

I'm making a werewolf race and I wanted wolves and other werewolves to be friendly. That's how I did it:

Create an effect like this, and add a script with the name you choose.

 

 

So your script is:

 

Scriptname NAMEOFYOURSCRIPT extends activemagiceffect

Faction property SprigganFaction Auto

Event OnEffectStart(Actor Target, Actor Caster)

Target.AddToFaction(SprigganFaction)

EndEvent

Event OnEffectFinish(Actor Target, Actor Caster)

Target.RemoveFromFaction(SprigganFaction)

EndEvent

 

I made sure faction removes itself if you switch your race. Just in case.

When you compiled the script go to properties and click auto fill.

Now create the spell:

 

 

http://i.imgur.com/UKtNJoR.jpg

 

 

And add the spell to your race.

 

 

http://i.imgur.com/kncennl.jpg

 

 

Edited by Derok
Link to comment
Share on other sites

I'm making a werewolf race and I wanted wolves and other werewolves to be friendly. That's how I did it:

Create an effect like this, and add a script with the name you choose.

 

 

So your script is:

 

Scriptname NAMEOFYOURSCRIPT extends activemagiceffect

Faction property SprigganFaction Auto

Event OnEffectStart(Actor Target, Actor Caster)

Target.AddToFaction(SprigganFaction)

EndEvent

Event OnEffectFinish(Actor Target, Actor Caster)

Target.RemoveFromFaction(SprigganFaction)

EndEvent

 

I made sure faction removes itself if you switch your race. Just in case.

When you compiled the script go to properties and click auto fill.

Now create the spell:

 

 

http://i.imgur.com/UKtNJoR.jpg

 

 

And add the spell to your race.

 

 

http://i.imgur.com/kncennl.jpg

 

 

Thanks man! Now all that's left to do is get the spriggans' Radiant AI worked out and figure out how to set up the dialogue.

 

Speaking of which, do you know of a way to make a quest race-dependent? I'm probably going to set up some sort of introductory quest which should ease players into the life of a spriggan, but I don't want non-spriggan players to get it. :)

Link to comment
Share on other sites

I don't know, it depends how you want to make the quests obtainable. From start? Talking with an npc? By the way I'm a newbie at making quests.

Edited by Derok
Link to comment
Share on other sites

  • 3 years later...

I know this thread probably has not been viewed for a very long time. I was just wondering if either of you know how I could stop NPC's from attacking werewolf players on sight.

 

I'm working on a mod currently, and a feature I want to add, is to allow the player to use beast form, ring of hircine, etc. in public and not receive crime gold or be attacked by citizens.

Link to comment
Share on other sites

  • 1 year later...

I'm making a werewolf race and I wanted wolves and other werewolves to be friendly. That's how I did it:

Create an effect like this, and add a script with the name you choose.

 

 

So your script is:

 

Scriptname NAMEOFYOURSCRIPT extends activemagiceffect

Faction property SprigganFaction Auto

Event OnEffectStart(Actor Target, Actor Caster)

Target.AddToFaction(SprigganFaction)

EndEvent

Event OnEffectFinish(Actor Target, Actor Caster)

Target.RemoveFromFaction(SprigganFaction)

EndEvent

 

I made sure faction removes itself if you switch your race. Just in case.

When you compiled the script go to properties and click auto fill.

Now create the spell:

 

 

http://i.imgur.com/UKtNJoR.jpg

 

 

And add the spell to your race.

 

 

http://i.imgur.com/kncennl.jpg

 

 

 

I know too this topic is old but thanks so much man. Added a spell like this one for my personal Dwemer race and it works like a charm.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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