LVB2 Posted September 30, 2011 Share Posted September 30, 2011 how do script your modded companions to where u can hire them back after you fire them im having some trouble please i need some help Link to comment Share on other sites More sharing options...
llamaRCA Posted September 30, 2011 Share Posted September 30, 2011 how do script your modded companions to where u can hire them back after you fire them im having some trouble please i need some help One way to do it is to have a topic that has the fired condition on it (MyNPCref.Fired == 1 or whatever you have used as your fired variable). You should have set that variable (Set MyNPCref.Fired to 1) somewhere when you fired the companion. Then when the companion is fired that topic shows up in the dialogue menu. You use that topic to rehire the companion. Then in the results script of that topic you put all the same stuff in there that you put in the inital hire topic (set playerteammate, etc) and anything else that is applicable at that point in time (say you've added more perks by then or whatever). Link to comment Share on other sites More sharing options...
LVB2 Posted September 30, 2011 Author Share Posted September 30, 2011 so i have to put a hire topic in the same topic as the fire topic Link to comment Share on other sites More sharing options...
drakeelvin Posted October 1, 2011 Share Posted October 1, 2011 The quest you need to look at is VNPCFollowers, and the topic you need to look at is FollowersHired. If you examine the various Infos you will see the common elements for all companions. Link to comment Share on other sites More sharing options...
LVB2 Posted October 3, 2011 Author Share Posted October 3, 2011 ok ty i did get it working but i have to go through a couple dialogs to get him rehired i got click i think we should trave together twice in the dialog to get him rehired so it does work but theres a bug i got to fix and im not sure how to fix to get him rehired on the first dialog do u know what i did wrong ans ty for help Link to comment Share on other sites More sharing options...
drakeelvin Posted October 4, 2011 Share Posted October 4, 2011 (edited) If you based this on a vanilla companion there are usually two "I think we should travel together" topics: one is for the first time you meet the companion and the other is for when you re-hire after having fired them. It sounds like you are missing a conditional on one of these that would eliminate it from showing up with the other one, so that only one of the two would show up depending on the situation (i.e. either you are first meeting him, or you previously fired him, it has to be one or the other but not both) As LlamaRCA suggested, the way the vanilla game handles this is they have "fired" flags that indicate the companion was previously fired. So you could use a fired flag and if the companion was fired, you would not display the first topic, "I think we should travel together," that would normally appear the first time you meet your companion. That's one way you could ensure it doesn't show up twice. Also, to clarify things for yourself, you could change the words of the second topic to, "I think we should travel together again," to make it distinctive from the first topic. That might make the logic a bit easier to follow in your head. And of course it would only appear in dialogue if the companion had been previously fired. Edited October 4, 2011 by drakeelvin Link to comment Share on other sites More sharing options...
LVB2 Posted October 6, 2011 Author Share Posted October 6, 2011 ok ty im going to try that and ill look at followers script too Link to comment Share on other sites More sharing options...
LVB2 Posted October 8, 2011 Author Share Posted October 8, 2011 still not working right still cant get him rehired you sound like im missing a condition where would i put the condition in the script or in the quest dialog man this fustrateing Link to comment Share on other sites More sharing options...
LVB2 Posted October 10, 2011 Author Share Posted October 10, 2011 you say i need a second topic do you mean followerHired duplicate topic or something else Link to comment Share on other sites More sharing options...
LVB2 Posted October 11, 2011 Author Share Posted October 11, 2011 this topic is close i got to work Link to comment Share on other sites More sharing options...
Recommended Posts