Jump to content

A few questions about scripting.


Kentoss

Recommended Posts

So I've been messing around with basic mod concepts and I've run into a lot of problems that I've managed to work around with fair ease. One problem I cannot figure out with scripting is how to get the name of an NPC as a string. I've been doing a lot of reading and research, and it's possible the answer is staring me in the face and I just haven't seen it, but as far as I can tell, there's no easy way to get the name of an NPC (without SKSE). I read about using aliases, but I'm not entirely sure how that works, because I'm trying to get the name of an actor outside of a quest with a magic spell. Obviously with SKSE it's as easy as using the GetName() function, and I'm quite surprised that CK doesn't have this functionality built right in. I would like to stay independent of SKSE though, because of how simple the mod I have in mind is, I wouldn't want there to be any prerequisites.

 

Additionally, is there somewhere I can go to read about good mod practices? I fear that the way I have set my mod up currently would have problems with things like save game bloating, or not properly uninstalling. I think I would like to be able to run a script after the mod has been uninstalled that cleans up anything it leaves behind, so that people who have a problem with the mod for whatever reason can safely uninstall it and not worry about things left in their game they may no longer wish to have.

 

Thanks in advanced!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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