jtravers88
30th Oct 2010, 02:41 PM
I seem to remember a way to determine this in sims2, but I'm having a brain f$%^ in sims3.
In many cases, a check for a certain trait uses the enums and is easy to see. In others, a typecast to Traitname is performed, on a number like (-5175480303478028976L).
I've followed the HasTrait back thru HasElement and I'm not seeing anything easy.
I guess one way would be to set up a custom HasTrait to pop up a message, only call it for the line of code I need to determine the trait for, then deduce the trait on the sims I get the popup for.
I'm sure there is a better way to do this. And I know one of you guys/gals has a better way.?
Or does this neg # convert to one of the Traitname enums?
In many cases, a check for a certain trait uses the enums and is easy to see. In others, a typecast to Traitname is performed, on a number like (-5175480303478028976L).
I've followed the HasTrait back thru HasElement and I'm not seeing anything easy.
I guess one way would be to set up a custom HasTrait to pop up a message, only call it for the line of code I need to determine the trait for, then deduce the trait on the sims I get the popup for.
I'm sure there is a better way to do this. And I know one of you guys/gals has a better way.?
Or does this neg # convert to one of the Traitname enums?