GeorgNihilus Posted January 6, 2012 Share Posted January 6, 2012 hi there I'm using this ... int StartingConditional() { object oVi = GetObjectByTag("VisasMarr"); string sShirtTag = GetScriptStringParameter(); object oWearingThis = GetItemInSlot( INVENTORY_SLOT_HEAD, oVi); if( GetIsObjectValid( oWearingThis ) ) { if( GetTag( oWearingThis ) == sShirtTag ) return TRUE; } return FALSE; } to check if Visas is wearing a shroud on her head slot to open a dialog branch, problem is it's working ok if she DOESN'T HAVE IT EQUIPPED but the "positive" branch is being ignored ... that said, I've managed to equip through dialog the shroud on her but I can't unequip it through a dlg branch. So that's my "daily issue" ... for u there hope someone can enlighten me Link to comment Share on other sites More sharing options...
JCarter426 Posted January 6, 2012 Share Posted January 6, 2012 Nothing in your script jumps out as being wrong, but this works for me: int StartingConditional() { int iSlot = GetScriptParameter(1); object oItem = GetItemInSlot(iSlot, OBJECT_SELF); string sTag = GetScriptStringParameter(); if( GetIsObjectValid(oItem) && GetTag(oItem) == sTag ) return TRUE; else return FALSE; } It's a generic script that can check any item (as your attempt would) and any slot as well (head is 0). As long as Visas is firing it, it would work for Visas, otherwise change "OBJECT_SELF" to "GetObjectByTag("visasmarr", 0)". So if that doesn't work either, then something's wrong in the dialogue file or you have the item tag wrong, or some such. Link to comment Share on other sites More sharing options...
GeorgNihilus Posted January 6, 2012 Author Share Posted January 6, 2012 clean compilation, clean/brief scripting ... but still nothing JCarter. I think it might be my dialog, already did a new branch and still nothing. I'll keep this script anyway, maybe starting a new game instead of trying this in an old save will "magically" fix the problem, things do work THAT odd for me sometimes Everything looks good in this one, thanks a lot for your time Link to comment Share on other sites More sharing options...
JCarter426 Posted January 6, 2012 Share Posted January 6, 2012 Well, if it still doesn't work, all I can suggest is: 1.) Check that the item tag matches the string parameter; you never know if you've made a typo, 2.) make sure the node with the conditional is at the top so it's actually checked first, and 3.) make sure you put the script on a conditional line and not on a regular script line - this mistake I make all the time. Link to comment Share on other sites More sharing options...
VarsityPuppet Posted January 7, 2012 Share Posted January 7, 2012 There is one issue And that's that Visas can't technically equip headgear. I believe the way I had been doing it was making the shroud as a disguise item and it actually changes Visas' character appearance. I don't know if this is affecting anything with Visas or not though. Some insight never hurts though. Link to comment Share on other sites More sharing options...
JCarter426 Posted January 7, 2012 Share Posted January 7, 2012 What do you mean? She can equip it just fine. It isn't visible, but she can equip it. Kreia and Mandalore are no different, as is Handmaiden in her default clothing. Link to comment Share on other sites More sharing options...
VarsityPuppet Posted January 7, 2012 Share Posted January 7, 2012 That's what I mean though - the headgear doesn't show up on her head ever. Link to comment Share on other sites More sharing options...
JCarter426 Posted January 7, 2012 Share Posted January 7, 2012 That wouldn't affect anything. She still has it equipped. Link to comment Share on other sites More sharing options...
GeorgNihilus Posted January 8, 2012 Author Share Posted January 8, 2012 There is one issue And that's that Visas can't technically equip headgear. I believe the way I had been doing it was making the shroud as a disguise item and it actually changes Visas' character appearance. I don't know if this is affecting anything with Visas or not though. Some insight never hurts though. Just tried my dlg removing disguise property from uti. As expected, shroud doesn't show in her head but item is equipped in her slot but I STILL can't unequip it once shroud is in her head, even without the disguise property ... what else can I say ... Thanks VP for the mod by the way & both for your help, if I keep trying I'll post Link to comment Share on other sites More sharing options...
VarsityPuppet Posted January 9, 2012 Share Posted January 9, 2012 I'll keep an eye on this thread and check out the issue when I get a chance. Keep me updated in the meantime. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.