sapphim Posted April 16, 2017 Share Posted April 16, 2017 (This is technically a mod for DA2 but the script.ldf is essentially the same between the two games so I figured this subforum would be a more appropriate place to ask, as there just aren't very many scripters interested in modding DA2. My apologies if this is in fact out of place.) So there is a quest where a follower is temporarily kidnapped and shows up in another cutscene (as a separate creature with a separate tag, "mag360cr_" rather than "gen00fl_"). I'm trying to make this part of the quest compatible with mods allowing you to equip any armor on your followers. I've successfully equipped the follower's stand-in with the following script: void sph_ReDress(object oCopyFrom, object oCopyTo) { // non-DFA int nApr = GetAppearanceType(oCopyFrom); SetAppearanceType(oCopyTo,nApr,TRUE); // DFA Compatibility object oCht = GetItemInEquipSlot(INVENTORY_SLOT_CHEST,oCopyFrom); object oGlv = GetItemInEquipSlot(INVENTORY_SLOT_GLOVES,oCopyFrom); object oBoo = GetItemInEquipSlot(INVENTORY_SLOT_BOOTS,oCopyFrom); if( IsObjectValid(oCht) ) EquipItem(oCopyTo,oCht,INVENTORY_SLOT_CHEST); if( IsObjectValid(oGlv) ) EquipItem(oCopyTo,oGlv,INVENTORY_SLOT_GLOVES); if( IsObjectValid(oBoo) ) EquipItem(oCopyTo,oBoo,INVENTORY_SLOT_BOOTS); }However, this leaves the actual follower undressed, which you can see if you ever access the party picker between starting and ending that portion of the quest. Testing leads me to believe that there is only one copy of an item accessed this way. I've tried re-equipping items on both creatures in the same script but only one will actually have the equipment at any given time. I can't use the CreateItemOnObject function because that requires a resource, and I have no way of converting the object to a resource. Is there a way to duplicate an existing object so I can equip it on two creatures at the same time, or is this something Dragon Age just wasn't designed to do? Link to comment Share on other sites More sharing options...
LadyHonor Posted April 16, 2017 Share Posted April 16, 2017 I tried to do this once for a quest where I wanted my warden to fight his/her mirror image (or as close to it as possible) and never could get it to work without having to force the character to use a specific armor set (helmet included to cover the face). in the end I decided to scrap it because doing it that way pretty much defeated the "mirror image". the only commands I've found dealing with equipment either moves from on to another (leaving one naked), moving it either to the inventory or a chest, or equips/unequips items. i don't think it's possible, but i could be wrong. "Get" seems to be the only option and that takes it from one and moves it to another. Link to comment Share on other sites More sharing options...
LadyHonor Posted April 16, 2017 Share Posted April 16, 2017 Have you considered (if it's even possible) just disabling the party picker for the duration of that portion of the quest? Link to comment Share on other sites More sharing options...
sapphim Posted April 16, 2017 Author Share Posted April 16, 2017 I figure I'm chasing after dreams here. Just wanted to make sure there's not something obvious I'm overlooking. The party picker isn't easy to access without another mod and I don't think I'd want to try to disable it entirely over what amounts to a minor visual bug for what I assume will be a minority of installers. Sounds like my mod description is going to need a "Known Issues" section. :laugh: Link to comment Share on other sites More sharing options...
LadyHonor Posted April 17, 2017 Share Posted April 17, 2017 Sounds like my mod description is going to need a "Known Issues" section. :laugh: I'm thinking I'm going to have to do that same thing with one minor annoying issue I'm having. It sucks, but oh well. It's not game breaking and there is no reason I can find after searching through *all* my scripts (and there are a lot of them!) for it to be happening. I guess one minor bug isn't the end of the world, but knowing it's there gets on my last nerve. lol Link to comment Share on other sites More sharing options...
Recommended Posts