Please request registration email again and then check your "Spam" folder
Started by Leortha, May 18, 2022, 01:11 PM
Quote from: MissingNumber on May 19, 2022, 12:17 PMShould there also be a link to the image tagging tool in this list?
Quote from: vadi92 on May 19, 2022, 02:42 PMIt was already posted here.
[background story]init_function = "my_custom_init_function" ; Remember to change the name, must be unique
[cloning options]keep_init = True ; If True, clones will keep the same init function
init -2 python: def my_custom_init_function(girl): # Remember to change "my_custom_init_function" to something unique, identical to what's mentioned in your _BK.ini # This code is executed when your girl is being created (for her first appearance in the slavemarket or in the city) # The trait is added to whatever other traits she already spawns with global gold_traits, pos_traits, neg_traits global trait_dict # Start by defining your trait # If you just want to add a Trait King trait, you can copy it from /game/Mods/Trait King.rpy my_custom_trait = Trait("Idol", verb = "be an", effects=[Effect("change", "customers", 8, dice=True, scope="brothel"), Effect("boost", "job customer budget", 0.1, scales_with = "cust nb")], base_description = "She has lots of adoring fans.") try: # Plan A: If Trait King (or any other mod) is active and you're asking for a trait that's already in the dictionary girl.add_trait(trait_dict[my_custom_trait.name], pos=1) # pos determines where in the girl's trait list the trait appears except: # This is Plan B if the above fails. It adds the trait to a category and dictionary before adding it to the girl # You can remove or comment out the line below if you want to add a unique trait that will not randomly appear on new generated girls gold_traits += [my_custom_trait] # change to gold_traits, pos_traits or neg_traits as desired trait_dict[my_custom_trait.name] = my_custom_trait girl.add_trait(trait_dict[my_custom_trait.name], pos=1) return