[WIP Brainstorming] Universal Follower Function Library

Post » Sat Dec 22, 2012 10:21 pm

Universal Follower Framework sounds like a COBL for followers. If so, this is really exciting. :thumbsup:

Yep.

At any rate, I think I've made my case for UFF as best as I can, and explained what the purpose of it is as fully as I can.

Current planned functions:

IsFollower()					   ;True if this actor is a follower; false otherwise.GetFollowerAtIndex()				 ;Returns the follower in the UFF's internal master follower array at the specified index..GetFollowerCount()					  ;Returns the number of followers currently in service.GetClosestFollower()					 ;Returns the closest follower from the given x, y, z position.GetClosestFollowerFromRef()		;Returns the closest follower from the given reference, optionally supplying a radius to search in.FollowerAction()			   ;Send the follower a command like "Wait here", "Follow me", "Trade", "Attack", using that follower's specific implementationFollowerSupports()			   ;Returns true or false, whether or not this follower supports this particular action. This one might be reaching a bit, but hey, I can dream.SummonAllFollowers(bInstant = false)		;Sends a command to all followers registered by the UFF to "Follow Me" and walk / run to the player. Setting bInstant will make them teleport to the player immediately.

Help me expand this library! I'd like further discussion to be towards what sorts of functions you'd like to have available in this API, as that was the primary reason I made this thread. Hint: If your comment doesn't contain a function suggestion, or a question about a function, you're probably not on-topic.
User avatar
Amber Hubbard
 
Posts: 3537
Joined: Tue Dec 05, 2006 6:59 pm

Post » Sat Dec 22, 2012 3:33 pm

Lol, I had to look up what "succinctly" meant. Glad I could help, only wish I could help more with this endeavor but you guys speak in a foreign language to me. While I understand bits and peaces of the code I have no solid foundation of knowledge with its functionality.
User avatar
carrie roche
 
Posts: 3527
Joined: Mon Jul 17, 2006 7:18 pm

Post » Sat Dec 22, 2012 5:02 pm

Here are some functions that could be useful:

isRomanceable()		   ; Follower can be romanced/marriedisRomanced()							  ; Follower is in a relationship with the playerisHireling()							  ; Follower must be paid for their servicesgetHome()							  ; Returns the follower's current home base
User avatar
Causon-Chambers
 
Posts: 3503
Joined: Sun Oct 15, 2006 11:47 pm

Post » Sat Dec 22, 2012 9:33 am

I don't know if you want to make this with SKSE but I asked in that thread if they can add an event OnFactionJoined/Leaved but got no answer. Such an event may prove useful to this kind of mod (in my case I wanted to find out if a housecarl is made blade/spouse/etc without touching the quests for that). I coudn't make it work with the method described on ck wiki on how to get condition function to papyrus but is posible I abandoned it too early.
User avatar
Jennifer May
 
Posts: 3376
Joined: Thu Aug 16, 2007 3:51 pm

Post » Sat Dec 22, 2012 11:36 am

Here are some functions that could be useful:

isRomanceable()		   ; Follower can be romanced/marriedisRomanced()							  ; Follower is in a relationship with the playerisHireling()							  ; Follower must be paid for their servicesgetHome()							  ; Returns the follower's current home base

I dig it, especially the IsHireling. GetHome, IsRomanced, and IsRomanceable would be suitable for general-purpose NPCs, not specific to followers. But on the whole I'd say that all of those would be really useful.

I don't know if you want to make this with SKSE but I asked in that thread if they can add an event OnFactionJoined/Leaved but got no answer. Such an event may prove useful to this kind of mod (in my case I wanted to find out if a housecarl is made blade/spouse/etc without touching the quests for that). I coudn't make it work with the method described on ck wiki on how to get condition function to papyrus but is posible I abandoned it too early.

That would be pretty handy, yes. I can still just get the faction information myself, but it would lend to more of an event-based system, which I'm a fan of.
User avatar
John N
 
Posts: 3458
Joined: Sun Aug 26, 2007 5:11 pm

Post » Sat Dec 22, 2012 5:49 pm

I have changed the name of this project to the Universal Follower Function Library, as the word "Framework" seems to have sent the wrong message. I have petitioned for the thread title to change, hopefully it will happen shortly.

Edit: And there it goes. Thanks mods!
User avatar
Sunny Under
 
Posts: 3368
Joined: Wed Apr 11, 2007 5:31 pm

Previous

Return to V - Skyrim