More Awesome Than You!
Welcome, Guest. Please login or register.
2024 May 28, 20:03:57

Login with username, password and session length
Search:     Advanced search
540275 Posts in 18066 Topics by 6514 Members
Latest Member: Llama
* Home Help Search Login Register
+  More Awesome Than You!
|-+  TS2: Burnination
| |-+  The Podium
| | |-+  Lifetime Want / Aspiration BCon killing me
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Lifetime Want / Aspiration BCon killing me  (Read 4576 times)
MaximilianPS
Undead Member
*
Posts: 437


da grammar killer


View Profile
Lifetime Want / Aspiration BCon killing me
« on: 2006 August 02, 16:40:00 »
THANKS THIS IS GREAT

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  Cheesy
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...   Undecided
any help ?
Logged
twojeffs
Stupid Schlemiel
****
Posts: 1690



View Profile WWW
Re: Lifetime Want / Aspiration BCon killing me
« Reply #1 on: 2006 August 02, 17:33:29 »
THANKS THIS IS GREAT

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
Logged
MaximilianPS
Undead Member
*
Posts: 437


da grammar killer


View Profile
Re: Lifetime Want / Aspiration BCon killing me
« Reply #2 on: 2006 August 03, 08:14:48 »
THANKS THIS IS GREAT

yay thnx .. Cheesy
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)

2E004600FF0012070000000000000000
i've tryed with this.. but  it will resoult always false  Undecided
i didn't find nothing on wikipedia and on mts2 everyone gives realy few infos Sad
« Last Edit: 2006 August 03, 15:40:27 by MaximilianPS » Logged
twojeffs
Stupid Schlemiel
****
Posts: 1690



View Profile WWW
Re: Lifetime Want / Aspiration BCon killing me
« Reply #3 on: 2006 August 03, 16:50:04 »
THANKS THIS IS GREAT

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
Logged
MaximilianPS
Undead Member
*
Posts: 437


da grammar killer


View Profile
Re: Lifetime Want / Aspiration BCon killing me
« Reply #4 on: 2006 August 05, 09:43:21 »
THANKS THIS IS GREAT

i'm here again Smiley

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
1: [prim 0x0002] Expression (Stack Object ID 0x0000 := My 0x000B (object id)) t:2 f:E
2: [global 0x03BC] Aspiration - Reward Object Success? (1 arg:  My 0x000B (object id)) t:3 f:5
3: [prim 0x0002] Expression (Stack Object ID 0x0000 := Local 0x0000) t:4 f:E
4: [prim 0x0002] Expression (Stack Object's attribute 0x0001 ("numOfBugs") := Literal 0x0001) t:1 f:E
5: [prim 0x0002] Expression (Stack Object ID 0x0000 := Local 0x0000) t:6 f:E
6: [prim 0x0002] Expression (Stack Object's attribute 0x0001 ("numOfBugs") := Literal 0x0000) t:F f:E

is the 0x03BC the one that check the aspiration ? Huh
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 Sad
« Last Edit: 2006 August 05, 10:00:43 by MaximilianPS » Logged
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: Lifetime Want / Aspiration BCon killing me
« Reply #5 on: 2006 August 05, 14:57:25 »
THANKS THIS IS GREAT

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)

2E004600FF0012070000000000000000
i've tryed with this.. but  it will resoult always false  Undecided
i didn't find nothing on wikipedia and on mts2 everyone gives realy few infos Sad

You may be thinking of the score IIRC.

Quote
0x14C: Aspiration Score
0x14E: Aspiration Reward Points Spent (/10)
0x150: Aspiration Score Raw (/10)
Logged

twojeffs
Stupid Schlemiel
****
Posts: 1690



View Profile WWW
Re: Lifetime Want / Aspiration BCon killing me
« Reply #6 on: 2006 August 05, 16:25:06 »
THANKS THIS IS GREAT

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.
Logged
MaximilianPS
Undead Member
*
Posts: 437


da grammar killer


View Profile
Re: Lifetime Want / Aspiration BCon killing me
« Reply #7 on: 2006 August 05, 17:39:17 »
THANKS THIS IS GREAT

Dizzy if you wanna confuse me.. you got it   Grin

0x14C: Aspiration Score
it's a BCON Huh

Logged
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: Lifetime Want / Aspiration BCon killing me
« Reply #8 on: 2006 August 06, 06:22:58 »
THANKS THIS IS GREAT

No, the 0x14C refers to the index into the Person Data array (i.e. "my person data 0x14C").
Logged

MaximilianPS
Undead Member
*
Posts: 437


da grammar killer


View Profile
Re: Lifetime Want / Aspiration BCon killing me
« Reply #9 on: 2006 August 06, 10:01:24 »
THANKS THIS IS GREAT

[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 Smiley
« Last Edit: 2006 August 06, 11:24:19 by MaximilianPS » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.084 seconds with 19 queries.