chajapa Posted December 1, 2014 Posted December 1, 2014 Sorry for all the questions. New modder... I'm working on a dialogue between player and (any) NPC. In the course of this dialogue, the effect I'm after is that she takes her shirt off and bares her chest. If I create a script fragment for that particular topic, would it look like this?: ; // for Function I'll Show you Mine Function ShowMine bool[] strip = new bool[33] ; // Strip chest bool[76] = true ; // Strip chest undergarments bool[88] = true ; // Strip our actor of their shirt and undergarment form[] ActorEquipment = SexLab.StripSlots(PlayerRef, strip) ; // function end here End Function The example I was looking at had "ActorRef" where I have "PlayerRef". The idea is to get the player character to strip. Should I have left it as ActorRef? In the dialogue after this one, and BEFORE an eventual sexlab animation takes place, should I have the following?: ; // Stop showing mine Function UNShowMine ; // Redress the player SexLab.UnstripActor(PlayerRef, ActorEquipment) ; // end of UnShowMe function End Function Same question about "PlayerRef" vs "ActorRef" I was thinking I'd need her to put her shirt back on BEFORE the animation, because the animation will strip her completely and if she already had no shirt, I don't think it would magically put a shirt on her.
Ashal Posted December 1, 2014 Posted December 1, 2014 bool[] strip = new bool[33] ; // Strip chest bool[76] = true ; // Strip chest undergarments bool[88] = true your bool array has a length of 33. There is no 76th or 88th index. What you're looking for is bool[] strip = new bool[33] ; // Strip chest bool[2] = true ; // Strip chest undergarments bool[26] = true The bool array in SexLab stripping is 0-32, index + 30 = Biped Slot (http://www.creationkit.com/Biped_Object) with the final index, 32, there is no equivilant biped slot for 62, so 32 is reserved for stripping the actors weapons. So bool[2] and bool[26] correspond to "32 - body (full)" and "56 - chest secondary or undergarment" respectively.
chajapa Posted December 1, 2014 Author Posted December 1, 2014 Ahhh... thanks, Ashal. I was adding 30 instead of subtracting (Derp!)
chajapa Posted December 2, 2014 Author Posted December 2, 2014 OK, I'm still not understanding how this works. Apparently I can't put a function in the script fragment of the dialogue I've been reading. Ashal has a lot of documentation.... but if you're an OLD dummy (like me) then I guess things aren't stickin' in the brain where they should. Let's say I have a dialogue topic and when it starts, I want her to take her shirt off And when it ends, I want her to put it back on (and more dialogue will continue after that) THis is probably very basic, but... that's where I'm starting. On that same vein... I need to be able to have a character equip a specific item through dialogue. So basically I'm trying to learn: A.) How to strip whatever is being worn in a specific slot, with the ability to put it back on. IN DIALOGUE B.) Equip a specific item. The item is not vanilla, so it will have a different ID in everyone's game depending on their load order. So I'm guessing I need to lookup the ID by name first and then equip it. But... I'm a n00b dummy, so I'm not sure. If someone has time to teach me how to do this, I can probably do quite a bit before I bother anyone again.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.