drakeelvin Posted April 10, 2011 Share Posted April 10, 2011 (edited) Hi, I've been looking for a good reference on how Setplayerteammate works, both in terms of what effects it has and also how it gets changed. For example, I know it is getting set within the scripting area in dialog, and setting it gets the companion wheel running. I think this also the setting that means companion kills share XP with the player, not sure yet. But mainly, does anyone have a link to a technical reference on using this setting? I've been looking at default game companions and trying to reverse engineer what they are doing, seems like a lot of dialog to go through that might be avoidable. I've been working on an NCCS companion and after I've got it set it does seem to get turned off again but I can't find the source of that. Maybe there is a tool I'm not aware of that would let me search the entire .esp tree for references to this setting in scripts? Probably wishful thinking ... :) Thanks much! Edited April 10, 2011 by drakeelvin Link to comment Share on other sites More sharing options...
davidlallen Posted April 11, 2011 Share Posted April 11, 2011 As far as searching, you may want to use the menu choice "edit->find text", which is invaluable for tracking down examples of functions. IIRC, this particular function is called with "1" when the NPC is hired and called again with "0" when the NPC is fired. Link to comment Share on other sites More sharing options...
angelwraith Posted April 11, 2011 Share Posted April 11, 2011 Hi, I've been looking for a good reference on how Setplayerteammate works, both in terms of what effects it has and also how it gets changed. For example, I know it is getting set within the scripting area in dialog, and setting it gets the companion wheel running. I think this also the setting that means companion kills share XP with the player, not sure yet. But mainly, does anyone have a link to a technical reference on using this setting? I've been looking at default game companions and trying to reverse engineer what they are doing, seems like a lot of dialog to go through that might be avoidable. I've been working on an NCCS companion and after I've got it set it does seem to get turned off again but I can't find the source of that. Maybe there is a tool I'm not aware of that would let me search the entire .esp tree for references to this setting in scripts? Probably wishful thinking ... :) Thanks much! the dictionary (geck wiki) pretty much tells you syntax (how to use) and the function: BUT as far as the description goes.. it doesn't reflect what they say quite exactly... i tested it through console and here is the result: set on NCR rangerranger did NOT sneak with me or follow me.companion wheel DID come up however.. but the only thing that worked was open inventory..this is probably because there is nothing needed for that option but likely the other options have settings and variables that need to exist for the other functions to work. now this part is interesting:set it on a fiendno longer tried to fight me but did not follow or fight with me or sneakcompanion wheel did come updid allow inventory accessnothing other functions again. this may help. sorry it took so long.. been sitting on my screen for half an hour at least i keep getting sidetracked. Link to comment Share on other sites More sharing options...
drakeelvin Posted April 11, 2011 Author Share Posted April 11, 2011 (edited) As far as searching, you may want to use the menu choice "edit->find text", which is invaluable for tracking down examples of functions. IIRC, this particular function is called with "1" when the NPC is hired and called again with "0" when the NPC is fired. @Davidallen: Thanks David that was EXACTLY what I was looking for, it will allow me to narrow down my search time radically. I already located the NCCS references I was looking for. As I suspected, NCCS turns off the companion wheel in a number of places to allow its own fast menu to work: this is a design choice by the developer. I'm going to now try to modify one of my companions to see if I can get the best of both worlds, allow the companion wheel but when sneaking still allow the NCCS quick menu. Also, I suspect this setting is also what ensures the player gets XP for companion kills, and that feature is even more important to me than the wheel. @Angelwraith Thank you, I did not think of trying to set this through the console but that will make testing certain things easier. Do I just enter console, select an NPC then enter SetPlayerteammate1? I'll give it a try anyhow and lookup the reference you gave me, should not be too hard to figure out. As to why NPCs wont follow, that has to do with AI Packages. When you hire a companion their script must set their AI Package to follow you. If that doesn't get updated they'll just hang around and do what they were doing before. Similarly when you fire them or tell them to wait their script sets their AI Package to an idle one, and can even teleport them to a designated location like their starting location or the Lucky 38 or somewhere, depending on what features are built into the companion. -- Thanks again you two! Edited April 11, 2011 by drakeelvin Link to comment Share on other sites More sharing options...
Recommended Posts