View Full Version : help Needed with Relationship Primitive 0x1A
14th Feb 2006, 07:14 PM
I am working on behaviors that generally use var 00 (STR). Variables are localised in Text Lists: Relationship Labels (group:0x7FD46CD0, instance:0x7FD46CD0)
they looks like this:
[prim 0x001A] Relationship (var 0x00 ("STR") of My 0x000B (object id) to Stack Object's 0x000B (object id), fail if too small: False, use neighbor IDs: False, set from: Literal 0x0001, don't check presence of second object: False)
or like that:
[prim 0x001A] Relationship (var 0x01 ("UI Flags/Ownership Value") of Param 0x0000 to Stack Object ID, fail if too small: True, use neighbor IDs: False, result in: Temp 0x0000, don't check presence of second object: False)
what are these variables, how works this primitive
15th Feb 2006, 02:12 AM
First one is chaning short term relation value of me toward stack object and the new value is literal 1.
Second one is accessing ui flags of param 0 toward stack object and the returned value is stored at temp 0.
15th Feb 2006, 10:12 AM
thanks for your answer christianlov but i don't understand any more.
I'm french and have bad english:
what means "Chaning" ?
What is a "short term relation value"?
What is "ui flags"?
In what case this primitive gives true target or false target?
15th Feb 2006, 03:16 PM
Ah, I meant changing. :D Sorry, it was a typo.
I don't know how to define terms. I just learned how they are used in game.
As I understand
STR -> the "daily meter" bar we see in sims' relationship panel.(shor term)
LTR -> the "lifetime meter" bar we see in sims' relationship panel.(long term)
UI flags -> pink hearts, rings, red hearts and so on. ('Crush', 'Love', 'Married'...)
(but these values are not used only between persons, and they can be used between persons and non person objects and in that case, it means something else.)
Familial Relationship -> sibling, spouse, child and so on.
I think the first one will not return false. The second one might return false in some cases, but I think it's better to add lines like "temp 0 flag set const 0x11c:0x1?" or "temp 0 > literal 0" below to test more.
17th Feb 2006, 05:39 AM
I actually have questions about this as well. What does this primitive do when one of the references is an actual object? For example, in this line:
[prim 0x001A] Relationship (var 0x00 ("STR") of Stack Object ID to Local 0x0000 ([No TPRP label for BHAV 0x1000 Local 0x0000]), fail if too small: True, use neighbor IDs: False, result in: Temp 0x0000, don't check presence of second object: False)
The StO, in this case I believe is the JobData for Private School. L0 is the sim who has that Job (i.e. they are enrolled in Private School).
Since it is a "result in" instead of "set from" is this just checking the relationship? What in particular is it checking for? Is it just verifying that the sim (L0) does indeed have the job (StO)? Or is it checking for something else? What does STR mean in this case, since it isn't a relationship between sims?
Thanks in advance. :)
17th Feb 2006, 09:50 AM
As you see in the relationship of cash register machines and clerks, cash machines also use set some values against clerks but this is not a relationship between sims and this means a tie between the machine and the clerck. I think it depends on where it was and how it is used there.
20th Feb 2006, 12:34 PM
i have found this interessant one in [global 0x0110] Standard entry.
[prim 0x001A] Relationship (var 0x0B ([not set]) of Stack Object ID to Stack Object ID, fail if too small: False, use neighbor IDs: False, result in: Local 0x0000, don't check presence of second object: False)
as you can see the variable 0x0b is not set.
that's making me to think that for objects the place where those variables are defined is not Relationship Labels (group:0x7FD46CD0, instance:0x7FD46CD0) like simpe seems to mean.
but where are they and what are they represent?
27th Mar 2006, 05:12 PM
I have a question about the "relation" primitive (0x001A).
They say you can add pink hearts and other things with it to a Sim with (var 0x01 ("Uiflags/ownership value") But I have a question about this.
How do you know what kind of icon it adds to the Sim? If I want pink hearts,what do I need to do? I don't understand anything about it other than that theres a "UIflags/ownership value" line in the "Relationship Labels" text list file.
Please tell me what to do!! Thanks in advance.
26th Jul 2006, 01:25 PM
i think it's the right time that some one made a tut. on how to set STR LTR ... 'cause i try a bit but it didn't work :\
17th Aug 2006, 05:18 PM
Better yet, put it on the wiki.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.