Rockin JC Posted Tuesday at 03:29 PM Posted Tuesday at 03:29 PM (edited) 13 minutes ago, Erina Sugino said: https://github.com/ErinaSugino/Starbound-SBR-Mod/blob/main/scripts/sexbound/plugins/pregnant/baby.lua#L48 Yeah, that's the section. If the father or mother is a player, then the baby is always "crewmembersexbound". I get that you can't just have a baby be born as a "player" entity, as that would mess up the game. But there must be a way of making it so any npc/player babies are born as the npctype and not a player?  Maybe if I added two new sections between npc/npc and player/player babies?  if baby.motherType == "npc" and baby.fatherType == "player" then if baby.motherType == "player" and baby.fatherType == "npc" then  Would that work? When it comes to coding, I admit, I'm just a copy and paste guy, with only a vague understanding of what I'm actually doing...  ---  Something like this?    if baby.motherType == "npc" and baby.fatherType == "npc" then     local choices = {mother:getType(), father:getType()}     baby.npcType = util.randomChoice(choices)     baby.generationFertility = baby.generationFertility * (baby.generationFertility / 2)   elseif baby.motherType == "npc" and baby.fatherType == "player" then     local choices = {mother:getType()}     baby.npcType = util.randomChoice(choices)     baby.generationFertility = baby.generationFertility * (baby.generationFertility / 2)   elseif baby.motherType == "player" and baby.fatherType == "npc" then     local choices = {father:getType()}     baby.npcType = util.randomChoice(choices)     baby.generationFertility = baby.generationFertility * (baby.generationFertility / 2)   elseif baby.motherType == "player" and baby.fatherType == "player" then baby.npcType = "crewmembersexbound"   else baby.npcType = "villager" end  Edited Tuesday at 03:34 PM by Rockin JC added my awful attempt at coding
red3dred Posted Tuesday at 06:10 PM Posted Tuesday at 06:10 PM (edited) 3 hours ago, Rockin JC said: Yeah, that's the section. If the father or mother is a player, then the baby is always "crewmembersexbound". I get that you can't just have a baby be born as a "player" entity, as that would mess up the game. But there must be a way of making it so any npc/player babies are born as the npctype and not a player?  Maybe if I added two new sections between npc/npc and player/player babies?  if baby.motherType == "npc" and baby.fatherType == "player" then if baby.motherType == "player" and baby.fatherType == "npc" then  Would that work? When it comes to coding, I admit, I'm just a copy and paste guy, with only a vague understanding of what I'm actually doing...  ---  Something like this?   *-snip-* I believe that, ultimately, it should be up to the player, nobody is going to be happy if we keep changing it back and forth. A config would be preferred... Or an interface/choice when they grow up... Anyway, it depends entirely on how the player wants to play with the concept of having offspring. The current concept is "having the opportunity to take them with you", and using mods like Crew Customizer, you can tweak individual things about them (hopefully) and change weapons/outfits, etc. The idea of them not even having a choice to become a crewmember role means we give the players no choice in whether they want to take their offspring with them or not. The only way i'd personally improve upon this current system is eventually giving them specializations so they can become the other NPC types offered by Vanilla (Or modded?) after they've been around long enough. But a Crew overhaul is outside the scope of the Sex Mod so that's not something i'd request. But yeah, if YOU want it a specific way, you can always change the code. Nothin' gonna stop you except maybe a few lost commas and missing "end"s. Do let us know if this is something not just you want though, and we can see about adding in a config somewhere. Edited Tuesday at 06:49 PM by red3dred derp
Erina Sugino Posted Tuesday at 08:27 PM Author Posted Tuesday at 08:27 PM 2 hours ago, red3dred said: Or an interface/choice when they grow up... That would require the npctype to be changable when growing up, which I don't think the graduation system supports. Npctype is set at birth the latest cause the kid already is what they are supposed to be later. Just shrunk.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now