Jump to content

how do you make a follower cast magelight on you when it's dark


llvv11

Recommended Posts

Posted
2 minutes ago, llvv11 said:

Thanks, is there one for base skyrim not SE?

It is for both LE and SE. You have to choose during installation of mod. So only 1 file to download no matter what Skyrim version you are using.

Posted
3 minutes ago, llvv11 said:

Thanks, is there one for base skyrim not SE?

This is NFF for LE:

I don't know whether this, or any other, follower framework will give you what you want, however. You may have to script it yourself or perhaps console commands would do.

Posted
11 minutes ago, Psalam said:

This is NFF for LE:

I don't know whether this, or any other, follower framework will give you what you want, however. You may have to script it yourself or perhaps console commands would do.

What would the code look like to script it?

Posted
12 minutes ago, Shadowbroker3495 said:

It is for both LE and SE. You have to choose during installation of mod. So only 1 file to download no matter what Skyrim version you are using.

Thanks

Posted
On 10/4/2021 at 5:55 AM, llvv11 said:

What would the code look like to script it?

 

  1. Identify one or more followers to execute the spell (you only want one, as too many lights in an area cause disco lighting effects)
  2. Track light level and set a parameter for what qualifies as "dark" in your game (a light level of 50 in vanilla game is easy to see in, while that same light level at night with ENB can be almost completely black screen)
  3. If the light level falls below the threshold, follower casts the spell

NFF linked above allows followers to use torches and/or candlelight spells depending on darkness and can be toggled on/off and adjusted.

Posted
On 10/9/2021 at 9:05 AM, Seijin8 said:

 

  1. Identify one or more followers to execute the spell (you only want one, as too many lights in an area cause disco lighting effects)
  2. Track light level and set a parameter for what qualifies as "dark" in your game (a light level of 50 in vanilla game is easy to see in, while that same light level at night with ENB can be almost completely black screen)
  3. If the light level falls below the threshold, follower casts the spell

NFF linked above allows followers to use torches and/or candlelight spells depending on darkness and can be toggled on/off and adjusted.

Can you provide the code to do this?

Can you assign multiple scripts to a follower and just make one for casting this spell that only runs if the conditions are met or do you have to modify some main follower script associated with that follower?

Posted
1 hour ago, llvv11 said:

Can you provide the code to do this?

 

My goal in this is to assist people in becoming mod-creators.  I'm happy to help you do it.  That's not the same as doing it for you.

 

1 hour ago, llvv11 said:

Can you assign multiple scripts to a follower and just make one for casting this spell that only runs if the conditions are met or do you have to modify some main follower script associated with that follower?

 

You can assign as many scripts as you like to whatever you like, but that's a bad approach.  Instead...

 

  • You would create a quest that handles this, probably a global variable to input the desired light level for it to trigger.
  • The follower would be a quest alias, looking for someone who is in the "CurrentFollowerFaction", maybe requiring that they have the needed skills to cast the spell (or not if you don't care about that).
  • A second quest might be used to monitor the situation and determine if things need to be done, or you could just have a spell/power that you use to activate or reboot the quest.  Maybe both.
  • Script for one quest would run updates to check on current light level, and if it is too low, go into a monitor state where if the lighting level stays low (so: not because you walked under a tree branch on a well-lit day) it fires off the spell through the follower.
  • Either the spell is a copy of candlelight that is conditioned to be turned off automatically under a number of circumstances (sneaking, combat, entering a town, etc), or the second quest keeps an eye on things through an update loop until the spell naturally expires.
  • You would want logic built into it for managing when the spell is turned on and when it is turned off.

(You have to wonder if all of this is more useful that just casting candlelight yourself?)

 

If that all sounds too complex to make, then use a follower mod that already has it (like Nether's Follower Framework).  There may already be things out there that do this (Immersive Citizens has something like this with torches).

Posted
12 hours ago, Seijin8 said:

 

My goal in this is to assist people in becoming mod-creators.  I'm happy to help you do it.  That's not the same as doing it for you.

 

 

You can assign as many scripts as you like to whatever you like, but that's a bad approach.  Instead...

 

  • You would create a quest that handles this, probably a global variable to input the desired light level for it to trigger.
  • The follower would be a quest alias, looking for someone who is in the "CurrentFollowerFaction", maybe requiring that they have the needed skills to cast the spell (or not if you don't care about that).
  • A second quest might be used to monitor the situation and determine if things need to be done, or you could just have a spell/power that you use to activate or reboot the quest.  Maybe both.
  • Script for one quest would run updates to check on current light level, and if it is too low, go into a monitor state where if the lighting level stays low (so: not because you walked under a tree branch on a well-lit day) it fires off the spell through the follower.
  • Either the spell is a copy of candlelight that is conditioned to be turned off automatically under a number of circumstances (sneaking, combat, entering a town, etc), or the second quest keeps an eye on things through an update loop until the spell naturally expires.
  • You would want logic built into it for managing when the spell is turned on and when it is turned off.

(You have to wonder if all of this is more useful that just casting candlelight yourself?)

 

If that all sounds too complex to make, then use a follower mod that already has it (like Nether's Follower Framework).  There may already be things out there that do this (Immersive Citizens has something like this with torches).

 Nether's Follower Framework can cast candlelight on the player?  I tried that mod briefly but didn't see an option for it.  Maybe I missed it.  Do you know how to enable this?

Is Nether's Follower Framework bettter then EFF?  It seems to do more then EFF.

Posted
22 minutes ago, llvv11 said:

Nether's Follower Framework can cast candlelight on the player?

 

NFF allows followers to use torches or candlelight spells if it gets dark, and they auto-extinguish them if you sneak.  Since they're close by you, it illuminates pretty well in most cases.

 

23 minutes ago, llvv11 said:

Is Nether's Follower Framework bettter then EFF?

 

"Better" is always subjective.  I haven't used EFF for about four years, so I can't make a fair comparison.  NFF is current and has basically every bit of follower functionality you could ask for.  The MCM is a bit of a mess to wade through, but that's just a side-effect of how much it does.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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