Title: Lifetime Want / Aspiration BCon killing me Post by: MaximilianPS on 2006 August 02, 16:40:00 This is an cool answare for J.M. and the other modders arourd here..
i need to check if the sim that is using my object, have a specific aspiration. for example, i need to made everyone on the lot enemy with my sim if his aspirations is about friends :D if my sim have a "rich/success" aspiration, with a special function i will subtract / add money to his accout.. tecnically i've made a some test with bcons (without knowing for sure what i'm making lol) btw: 0: [prim 0x0002] Expression (my person data 0x002E (Aspirations) Equals? Constant Value 0x013E:0x04 (Value: 0x0004)) true: 1 false:2 1: [prim 0x1011] Function: Do Some1 2: [prim 0x1012] Function: Do Some2 at the start i suppose that 0x013E pecify to the game that i wanna put my hand on the aspiration and 0x04 is the aspiration... (maybe friends ?) but i'm walking with sun glasses on a dark room... :-\ any help ? Title: Re: Lifetime Want / Aspiration BCon killing me Post by: twojeffs on 2006 August 02, 17:33:29 Asprirations are set as flags not literal values. To test for the fortune aspiratiion you need to use this:
0: [prim 0x0002] Expression (my person data 0x002E (Aspirations) Flag Set? Constant Value 0x013E:0x03 (Value: 0x0003)) true: 1 false:2 The code for that expression in Simpe would be: 2E 00 03 5F 00 08 12 1A 00 00 00 00 00 00 00 00 Title: Re: Lifetime Want / Aspiration BCon killing me Post by: MaximilianPS on 2006 August 03, 08:14:48 yay thnx .. :D
did you know where can i find a list of all aspiration codes ? 0x03 fortune .... 0x09 grilled chees p.s. i need to check the aspiration point (if the aspiration bar is red or green), does it work with bcon too ? Code: [prim 0x0002] Expression (my person data 0x002E (Aspiration) > Literal Value 0x0046) i didn't find nothing on wikipedia and on mts2 everyone gives realy few infos :( Title: Re: Lifetime Want / Aspiration BCon killing me Post by: twojeffs on 2006 August 03, 16:50:04 Aspiration score is persondata A0. I believe there is a global bhav that you can call though to get the asp level. Aspiration - Get Level or something like that. There is also one that may be global, but if not you could steal it from one of the asp reward objects, Aspiration reward - success? if you want your code to use the same success test as a reward object.
The different aspirations are (indexes in Bcon 013E:XX): 01 Romance 02 Family 03 Fortune 04 Not used 05 Popularity 06 Knowledge 07 Grow-up 08 Pleasure 09 Cheese Title: Re: Lifetime Want / Aspiration BCon killing me Post by: MaximilianPS on 2006 August 05, 09:43:21 i'm here again :)
i've got the code from the aspiration reward "smart milk"... after a little investigation i think my bhav should be a sub called Sub - Successful Attempt? Code: 0: [prim 0x0002] Expression (Local 0x0000 := Stack Object ID 0x0000) t:1 f:E is the 0x03BC the one that check the aspiration ? ??? at the end it gives True and False as final resoult so maybe it's the right one ? **** edit **** ehe.. nope.. it didn't work :( Title: Re: Lifetime Want / Aspiration BCon killing me Post by: dizzy on 2006 August 05, 14:57:25 p.s. i need to check the aspiration point (if the aspiration bar is red or green), does it work with bcon too ? Code: [prim 0x0002] Expression (my person data 0x002E (Aspiration) > Literal Value 0x0046) i didn't find nothing on wikipedia and on mts2 everyone gives realy few infos :( You may be thinking of the score IIRC. Quote 0x14C: Aspiration Score 0x14E: Aspiration Reward Points Spent (/10) 0x150: Aspiration Score Raw (/10) Title: Re: Lifetime Want / Aspiration BCon killing me Post by: twojeffs on 2006 August 05, 16:25:06 Yes, the global 03BC is the one you want to use to check the aspiration level. That is what all of the reward objects use. That global will return false if the asp level is too low. However there is a random chance of success even with low aspiration level.
Title: Re: Lifetime Want / Aspiration BCon killing me Post by: MaximilianPS on 2006 August 05, 17:39:17 Dizzy if you wanna confuse me.. you got it ;D
0x14C: Aspiration Score it's a BCON ??? Title: Re: Lifetime Want / Aspiration BCon killing me Post by: dizzy on 2006 August 06, 06:22:58 No, the 0x14C refers to the index into the Person Data array (i.e. "my person data 0x14C").
Title: Re: Lifetime Want / Aspiration BCon killing me Post by: MaximilianPS on 2006 August 06, 10:01:24 [prim 0x0002] Expression (my person data 0x00A0 (Aspiration Score) > Literal Value 0x005A)
by PJ wizard Aspiration Score is 0xA0 .. 0x14C seems empty.. btw i'll test aspiration score too yea !! that work thnx everyone again :) |