DialogueActions wants to be able to detect other him bodies than Male/Female, but how (1 Viewer)

Pim_gd

Content Creator
Joined
Jan 25, 2013
Technical issue,

Code:
   public dynamic class HimMaleBody extends HimBody
   {
....
      public function setSkin(param1:uint) : void
      {
         this.currentSkinID = param1;
         g.himSkinType = "Male" + this.skinNameList[this.currentSkinID];
         g.him.updatePenis();
         g.him.balls.setSkin(g.himSkinType);
         g.him.updateArm();
         g.him.torsoLayer.torso.gotoAndStop(g.himSkinType);
         g.him.leftLeg.gotoAndStop(g.himSkinType);
         g.him.leftLeg.calf.gotoAndStop(g.himSkinType);
         g.him.leftLeg.calf.foot.gotoAndStop(g.himSkinType);
         g.him.rightLeg.gotoAndStop(g.himSkinType);
         g.him.rightLeg.calf.gotoAndStop(g.himSkinType);
         g.him.rightLeg.calf.foot.gotoAndStop(g.himSkinType);
         this.updateSkinList();
      }

and

Code:
   public dynamic class HimFemaleBody extends HimMaleBody
   {
...
      public function setSkinx(param1:uint) : void
      {
         currentSkinID = param1;
         this.currentBreastOffset = this.breastOffset[currentSkinID];
         g.himSkinType = "Female" + skinNameList[currentSkinID];
         this.setBreasts();
         g.him.updatePenis();
         g.him.balls.setSkin(g.himSkinType);
         g.him.updateArm();
         g.him.torsoLayer.torso.gotoAndStop(g.himSkinType);
         g.him.leftLeg.gotoAndStop(g.himSkinType);
         g.him.leftLeg.calf.gotoAndStop(g.himSkinType);
         g.him.rightLeg.gotoAndStop(g.himSkinType);
         g.him.rightLeg.calf.gotoAndStop(g.himSkinType);
         this.setFeet();
         this.updateSkinListx();
      }

Kona wrote male/female bodies badly, and I have no idea if...
- modders even make custom bodies or just do something wonky with male clothing
- how they handle setSkin

Basically, I don't have a good way to find out what the "setSkin" of a random modded body is nor how I'm gonna communicate this back to the user.

(Do people even care? Are there other bodies than male and female for him)

Anyway, leaving this here to sort-of document the issue and hoping someone has an idea - for now, DialogueActions will just...

Code:
            var gender:String = getHimGender();
            if (gender == "Male") {
                g.him.currentBody.setSkin(skinIndex);
            } else if (gender == "Female") {
                g.him.currentBody.setSkinx(skinIndex); //kona pls why do you have such a poor class inheritance tree for the male body
            } else { 
                m.displayMessageRed("da.him.body.skin can't be set, gender is " + gender + " and DA does not recognize this");
            }

... only handle Male and Female bodies.
 

sby

Content Creator
Coder
Joined
Sep 11, 2012
i think the setskin would be whatever body the mod was loaded onto at that time. just taking guesses here though i haven't looked into it.
 

stuntcock

Content Creator
Joined
Jun 5, 2012
I have no idea if...
- modders even make custom bodies or just do something wonky with male clothing
Mostly the latter. Custom bodies are usually a single static thing (e.g. a big purple monster) and they aren't expected to change. They may employ a mixture of body and clothing layers when drawing sprites, so the thing may respond poorly to HSL and RGB sliders.

The one exception that I can remember is the penis mods by @lemurian-seed, which specifically accommodated skin tones for the standard male and female bodies. But there was no attempt to "solve the general problem"; if you stuck a horse dick onto the big purple monster guy then it would not automatically become purple.

- how they handle setSkin
If you're writing a Flash mod then you can name your keyframes using various "magic words" (such as light, pale, etc) and the game's logic will automatically switch to that keyframe at the appropriate moment.

Basically, I don't have a good way to find out what the "setSkin" of a random modded body is nor how I'm gonna communicate this back to the user.
I don't know of a foolproof way to "solve the general problem" here. Can you be more specific about what you're trying to achieve?

(Do people even care? Are there other bodies than male and female for him)
Yes, but they generally don't have multiple skin options.

if (gender == "Male") {
g.him.currentBody.setSkin(skinIndex);
} else if (gender == "Female") {
g.him.currentBody.setSkinx(skinIndex); //kona pls why do you have such a poor class inheritance tree for the male body
} else {
m.displayMessageRed("da.him.body.skin can't be set, gender is " + gender + " and DA does not recognize this");
}
var charcodeForHisSkin:String = "hisSkin:" + skinIndex + ";";
g.inGameMenu.loadData(charcodeForHisSkin);
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.