- Sep 5, 2020
- 276
- 749
Question, theres a girl who is always naked (Midna). If I put the "Naturist" trait to always in the bk.ini, does that work without breaking the game? She doesnt have pictures with clothes on.
She just wouldn't show up in city or market, even when cycling through many many times using cheats. As soon as I changed the _BK, I was able to get her to show up in two different save timelines with a cycle or two of free girl refresh.What exactly was your problem with the _BK OLD file? As far as I can tell, she generates just fine with either .ini.
If you have a lot of packs, some of them missing out is expected. Randomness can complicate this further, making it look like she isn't being generated while she actually either is in some hidden corner of the city, or is just randomly being passed over several times in a row.
As you can see from my screenshot (ignoring that I'm using Lyndis as a test vessel ), that may have just been a random occurrence. I had no trouble with either version of her.She just wouldn't show up in city or market, even when cycling through many many times using cheats.
Note that some values have been case-sensitive (less than in past), like should use "random" rather than "Random".Sure thing. The original is attached as _BK OLD.txt and the edited is _BK.txt since the forum won't let me attach .ini files
"if girl.get_stat("sex") > 75" is an instruction for the program to go check whatever the girl's "sex" stat is right now, and to only run the following code if that stat is higher than 75. When exactly this piece of code is run is completely dependant on where you place the code within the program. It could repeat every single night, once a year, only when a button is pressed, etc... If you don't want it to be repeatable, you'll have to consider that in the if statement. eg: Add a variable mygirl_introduction_happened that's False by default, but turns True after the event has been triggered, and check for that variable in the if statement.Im thinking about an event for my packs. I never coded before but it looks simple enough, but what I cant figure out is during gameplay when exactly do conditional events get triggered?
I'm using "if girl.get_stat("sex") > 75", which means the event should trigger when the sex skill is greater than 75. Whats that mean exactly? The event triggers once when the skill increase happens and never again? I would like the event to have a chance to trigger once the sex skill is high enough or something. Anyone knows of an easier way to do this, maybe through the interact menu?
Honestly if I could add a new menu to the "misc" section to trigger the event on command would be the most convenient.
## This adds a custom button to the regular slave interact menu.
interact_prompt = ("This is a button", "mygirl_interact_button", 2) ; The first string refers to the caption of the button. The second is the label which will be called upon clicking the button, The third number is the AP neccesarry for pressing the button. It must take 'girl' as an argument.
#### BOA HANCOCK ####
## Customized girl events: These events are designed to work together with a custom girl init file.
## It doesn't really matter what this file is called or where within the 'game' folder or subfolders it is dropped.
## However, for reducing cluttering, it is recommended you name this file '_events.rpy' and drop it in the relevant girl folder.
## Important: Please choose unique label names to avoid labelling conflicts with the main game files and other girl packs (i.e. 'label boa_hancock_start', not 'label start').
## You could also use local labels (from newer Ren'py versions).
interact_prompt = ("This is a button", "mygirl_interact_button", 2) ; The first string refers to the caption of the button. The second is the label which will be called upon clicking the button, The third number is the AP neccesarry for pressing the button. It must take 'girl' as an argument.
label mygirl_interact_button(girl):
show screen show_event(girl.get_pic("naked"), x=1024, y=768, bg=None)
"[girl.name] test. Play Test Scene etc."
"She gives you a lustful look, moaning her next words."
girl.char "test"
show screen show_event(girl.get_pic("sex"), x=1024, y=768, bg=None)
with dissolve
girl.char "test2"
return
It seems to be working, thanks! The only issue is the AP cost doesn't get reduced after the interaction (can only click the button if you have 2 AP, but you won't lose AP after). I'm guessing this has to be done manually somehow in the _events.ini?The interact_prompt line must be added to your girl's BK.ini under [background story]
$ MC.interactions -= 2
There are something like four Hinata packs in the spreadsheet.I cant find the Hinata Hyuga pack anywhere, been looking at the Boa Hancock code. This is what I have:
Using Picture objects likely requires you to use screens. We are right now discussing a way to implement declaring specific images so you can use 'image' functionality without needing to pay attention to what your players do with the pack. If you don't care about that, you can try something like this:using pregnancy tagged pictures
show screen show_event(girl.get_pic("pregnant"), x=config.screen_width, y=config.screen_height)
That has two components. First, the displayed cost, which also doesn't allow you to click on the button with too few AP:The only issue is the AP cost... I'm guessing this has to be done manually somehow in the _events.ini?
interact_prompt = ("This is a button", "mygirl_interact_button", 99) ;
label mygirl_interact_button(girl):
...
$ MC.interactions -= 99
Yeah... Although the only other outright forbidden tag is 'death'. You can change that easily enough by messing around in BKsettings.rpy, although then you might have issues with e.g. Whore Master packs showing you lots of pregnant pics when your girl isn't.Oh, the "pregnant" tag is currently considered a "forbidden tag" that's ignored by vanilla BK's tag-system.
Same goes with lots of other extended tags, they're sort of half-supported right now.
I think for now it would be simpler to use direct images, especially since a lot of people arent going to have Trait King installed. Could you shoot me an example how to do that (something that works with the code I posed above)?Oh, the "pregnant" tag is currently considered a "forbidden tag" that's ignored by vanilla BK's tag-system.
Same goes with lots of other extended tags, they're sort of half-supported right now.You must be registered to see the links, but changing it hasn't been a priority so far. If you want to use the pregnant tag, let Goldo know.
If you're happy just experimenting a bit for now, there are also some alternatives:
- You could directly use an image instead of searching for tags with get_pic() (this is what the current code discussion on HHS is all about)
- You could run the Trait King mod, which also adds makeshift support for extended tags such as pregnant. That way you could test your event before asking Goldo to support the pregnant tag officially.
We're considering some small changes on how to do this, but for now I'll just explain the current way of doing things. Downside is that it doesn't work in girlmix subfolders or if you rename your folder (that's why we're discussing some changes)I think for now it would be simpler to use direct images, especially since a lot of people arent going to have Trait King installed. Could you shoot me an example how to do that (something that works with the code I posed above)
image mygirl_preggers = "girls/my girl folder/pregnant.jpg"
label somelabel(girl):
show mygirl_preggers:
xalign 0.5 yalign 0.5
with fade
girl.char "I've got a bun in the oven!"
hide mygirl_preggers
The game interprets "inside" tags on images as "cin" (cum inside)I'm using my ciri pack for testing, and the "show screen show_event" lines for "masturbate" and "inside" don't bring up any pictures, even tho there's multiple "masturbate" and "inside" pictures in the pack. But "sex" and "fondle" work.