The Birth Control Mirror
Buzzler:
Quote from: twallan on 2009 August 30, 23:08:25
You are not using an EventListener to handle birth announcements?
It appeared to me, that all this stuff is adding the Gossip to the active Sim, too, and I didn't see a way to avoid that. So, yes, I'm not using an EventListener right now.
twallan:
Quote from: Buzzler on 2009 August 30, 23:45:44
It appeared to me, that all this stuff is adding the Gossip to the active Sim, too, and I didn't see a way to avoid that. So, yes, I'm not using an EventListener right now.
I'm simply pointing out an example of use.
My suggestion is create your own listener in your mod and do whatever you want in the callback function. Namely display a notification of the birth.
Cheers. :)
Buzzler:
Quote from: twallan on 2009 August 31, 00:49:51
My suggestion is create your own listener in your mod and do whatever you want in the callback function. Namely display a notification of the birth.
Oh, boy, is it just me, or did this conversation just take an embarrassing turn? Like a million voices suddenly raising in laughter, and a single voice becoming silent in embarrassment?
Just two klicks more and it would have been obvious... in my defense: This stuff is pretty voluminous, and it's easy to get on the wrong track, at least if you got roughly a week of experience on your shoulders. ;) Well, on the other side, I could have looked at your code, too... speaking of which: I've seen a lot of checks in your code after using SimDescription.CreatedSim. Can this actually return a null value, unless something's seriously borked?
twallan:
Quote from: Buzzler on 2009 August 31, 14:38:29
Just two klicks more and it would have been obvious... in my defense: This stuff is pretty voluminous, and it's easy to get on the wrong track, at least if you got roughly a week of experience on your shoulders. ;) Well, on the other side, I could have looked at your code, too... speaking of which: I've seen a lot of checks in your code after using SimDescription.CreatedSim. Can this actually return a null value, unless something's seriously borked?
Sims, such as homeless and Service NPCs, which are NOT currently out and about in town will have a CreatedSim == null .
Cheers. :)
Buzzler:
Updated to Version 5. See first post for changes.
I think, I consider this thing done for now. So unless there are bug reports, or something is in need of additional tweaking, or there's a request which really intrigues me, I'll spend my time on something else, maybe a different mod that is haunting my thoughts, or maybe I actually play the game myself a little...
Quote from: twallan on 2009 August 31, 23:42:45
Sims, such as homeless and Service NPCs, which are NOT currently out and about in town will have a CreatedSim == null .
Good to know. Queries.GetObjects<Sim>() gets all Sims, right? If not, my backup method is useless...
Navigation
[0] Message Index
[#] Next page
[*] Previous page