Replies: 3 (Who?), Viewed: 1151 times.
#1
13th Sep 2014 at 7:11 AM
Advertisement
#2
13th Sep 2014 at 9:07 AM
#3
13th Sep 2014 at 10:34 AM
#4
13th Sep 2014 at 4:40 PM
|
Posts: 155
Thanks: 7893 in 135 Posts
In simulation/traits/trait_tracker.py: def add_trait(self, trait): if not self.can_add_trait(trait): return False self._equipped_traits.add(trait) self._add_buffs(trait) self._sim_info.resend_trait_ids() sim = self._sim_info.get_sim_instance() if sim is not None: with telemetry_helper.begin_hook(writer, TELEMETRY_HOOK_ADD_TRAIT, sim=sim) as hook: hook.write_int(TELEMETRY_FIELD_TRAIT_ID, trait.guid64) services.social_service.post_trait_message(self._sim_info, trait, added=True) services.get_event_manager().process_event(test_events.TestEvent.TraitAddEvent, sim_info=self._sim_info) return True
Posts: 125
Posts: 155
Thanks: 7893 in 135 Posts
Firstly, adding traits after completing an aspiration is not something you have to do manually, it is handled by the code already in place. Secondly, "sim_info" is not likely a global variable and you have to figure out how to get the sims info of a specific sim. |
Posts: 197
|
This site is not endorsed by or affiliated with Electronic Arts, or its licensors. Trademarks are the property of their respective owners. Game content and materials copyright Electronic Arts Inc. and its licensors. All Rights Reserved.
Site version: v3.5.0. ModTheSims, ModTheSims2 and MTS2 © 2004-2023.