PDA

View Full Version : How do I change cooking skill required for certain foods in SimPE???


flowood
9th May 2009, 06:18 AM
searched all over this darned site and couldnt find this. Can someone help???

MogHughson
27th Jun 2009, 04:59 PM
Foods get much of their common behaviour from Food_Globals (Group 0x7F3C9675). It would appear that each food has a private set of constants, BCON 0x1001 which defines the specifics for it that are different from the global food behaviour. I took a look at some of the BHAVs in Food_Globals and found the following.

From Function - Init - Food (0x2001)
Const 0x1001:0x00 - Number of Food Pts
Const 0x1001:0x0B - Group Meal Serving Count

From Sub - Get Skill Based Value - Inverse (0x203F)
Const 0x1001:0x04 - Min Skill (for whichever of single or group is 0)
Const 0x1001:0x05 - Min Skill (for the other)
Const 0x1001:0x0E - Max Skill (for whichever of single or group is 0)
Const 0x1001:0x0F - Min Skill (for the other)

Those are probably the ones you want, but perhaps you can peruse these BHAVs some more to determine for yourself that these are the constants you are looking for.

Cheers
Mog

flowood
5th Aug 2009, 05:17 AM
Foods get much of their common behaviour from Food_Globals (Group 0x7F3C9675). It would appear that each food has a private set of constants, BCON 0x1001 which defines the specifics for it that are different from the global food behaviour. I took a look at some of the BHAVs in Food_Globals and found the following.

From Function - Init - Food (0x2001)
Const 0x1001:0x00 - Number of Food Pts
Const 0x1001:0x0B - Group Meal Serving Count

From Sub - Get Skill Based Value - Inverse (0x203F)
Const 0x1001:0x04 - Min Skill (for whichever of single or group is 0)
Const 0x1001:0x05 - Min Skill (for the other)
Const 0x1001:0x0E - Max Skill (for whichever of single or group is 0)
Const 0x1001:0x0F - Min Skill (for the other)

Those are probably the ones you want, but perhaps you can peruse these BHAVs some more to determine for yourself that these are the constants you are looking for.

Cheers
Mog


THANX A BUNCH