After quite some time i`am dipping into the game again and hell the code looks much better than before.
i have downloaded the dev version und looked a little bit around than played the "stable version", means i can not change the code, but the commandoline should do everything what i want. But i can fell out of touch with python and some things are not as clear for me as they where before. So i will ask and yes i tryed to find the things i want to do mostly in the dev code ... but was not able to translate it into commandos.
What want do to is the following. Finding ingame a npc without a story so i don`t mess up anything.So i look up the people archive and the unique persons that are patreon chars.
Find some one ingame who is not one of the above persons. Than i try to do what i want, generate a whole new family.
Setting the age of the person to 39.
start adding children
Code:
the_person.generate_daughter(True)
the_person.kids=the_person.kids +1
than i try changing there relationship all to sisters (converting the mother to some of them)
Code:
for sister in town_relationships.get_existing_children(the_person):
town_relationships.update_relationship(the_person, sister, "Sister")
now they are all sisters and we find out where they all live
Code:
if not the_person.home in mc.known_home_locations: mc.known_home_locations.append(the_person.home)
because they are generated in the home of the mother they are all there so we go there and change there age to over 38.
the we give them all there own home
Code:
the_person.home = None
if the_person.home is None: the_person.generate_home
the_person.home.add_person(the_person)
if the_person.home not in list_of_places: list_of_places.append(the_person.home)
now i create the children
Code:
the_person.generate_daughter(True)
the_person.kids=the_person.kids +1
and here is it that i fail ... generating the daughters don`t give them the other Sisters as Aunts nor sets them as niece.
i looked up there identifier
this gives me a number that is i think unique and should identify the person
i tried
for purpose of the commando the identifier is 7777
Code:
town_relationships.update_relationship(the_person, 7777 , "Aunt", "Niece")
which fails because he doesn`t regocnice the identifier as person
i tried some other stuff but the only way the code above worked was like this
Code:
town_relationships.update_relationship(the_person, mom, "Niece", "Aunt")
which only gives the_person the Aunt but not the aunt the niece.
so i was wondering how must the string look like to use the identifier