Welcome to
Mod The Sims
Online: 1710
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 9 (Who?), Viewed: 1946 times.
Search this Thread
Old 19th Oct 2017, 5:20 PM DefaultWhat are these parameters being tested for? #1
omglo
Original Poster

Scholar

Join Date: Oct 2010
Posts: 1,557


I've searched the boards without finding an answer.

For example, I've seen lines like like Param 0 == Literal 0x0065 in social bhavs. I haven't been able to figure out where Param 0 is being set to that value in the first place (or not, if it returns false) and what that value represents.
Old 19th Oct 2017, 6:09 PM #2
Nysha
Née whiterider



Join Date: Jul 2005
Posts: 19,715
Thanks: 42699 in 93 Posts
36 Achievements

View My Journal


Parameters are passed in by the BHAV that calls your BHAV. So if, for example, a BHAV accepts an argument for "number of llamas", any BHAV which calls the llama BHAV will have to pass an arg containing the number of llamas, and that arg will then become a param in the llama BHAV.

What I lack in decorum, I make up for with an absence of tact.
Old 19th Oct 2017, 6:55 PM #3
omglo
Original Poster

Scholar

Join Date: Oct 2010
Posts: 1,557


Okay, thanks. So, a BHAV can pass a parameter even if it doesn't immediately precede it? In other words, if you have three BHAVs and 1 calls 2, which calls 3, can the argument from 1 be used by 3? In the thing I'm looking at, The BHAV that's doing the calling has an arg count of zero. I'm guessing that it must actually be BHAV 2, and BHAV 1 must be tucked into a semiglobal that's not actually in the package.
Old 19th Oct 2017, 7:00 PM #4
Nysha
Née whiterider



Join Date: Jul 2005
Posts: 19,715
Thanks: 42699 in 93 Posts
36 Achievements

View My Journal


No, the param has to come from BHAV 2, but BHAV 2's arg count is irrelevant - that tells you how many arguments BHAV 2 takes, not how many it gives. Look at the line which calls BHAV 3 and open it in the instruction wizard - hopefully you'll be able to see what all the arguments are for in there.

What I lack in decorum, I make up for with an absence of tact.
Old 19th Oct 2017, 9:19 PM #5
omglo
Original Poster

Scholar

Join Date: Oct 2010
Posts: 1,557


I have this page here.


And line F is linked to this event.

I'm not even sure I'm on the right track to learning where the values came from.
Screenshots
Click image for larger version

Name:  x.jpg
Views: 0
Size:  129.9 KB   Click image for larger version

Name:  y.jpg
Views: 0
Size:  305.3 KB  
Download - please read all instructions before downloading any files!
File Type: zip social-arrest.zip (6.6 KB, 2 downloads) - View custom content
Old 19th Oct 2017, 9:45 PM #6
Nysha
Née whiterider



Join Date: Jul 2005
Posts: 19,715
Thanks: 42699 in 93 Posts
36 Achievements

View My Journal


Yep, you've found them. You see on line F, in the instruction settings pane, there are a load of options for the BHAV? "Animation: soc-cuff-cuffer // Event tree: 1005" etc.? Those are the arguments/parameters. If you click the instruction wizard button (the crossed tools) you'll be able to see them in more detail, and change them.

What I lack in decorum, I make up for with an absence of tact.
Old 19th Oct 2017, 10:22 PM #7
omglo
Original Poster

Scholar

Join Date: Oct 2010
Posts: 1,557


Thank you! Maybe I can finally start to really get a grasp on this.
Old 20th Oct 2017, 1:07 AM #8
Lamare
just a girl

Join Date: Jan 2014
Posts: 664
Thanks: 3429 in 26 Posts
16 Achievements


Since this is animation, param 0 is controlled by animation resource. Values 0x0065, 0x0066, etc represent particular points in animation sequence. This way event tree is syncronized with the animation, so the game knows that in at one point it needs to create handcuffs accessory in sim's hand, at another point it needs to delete the handcuffs and so forth.
As you can see, when the param 0 == 0x0065, it's time to create an object (I suppose handcuffs), snap it into sim's hand and run called tree to do some stuff, and that's it for now. When the animation shoots 0x0065 in param 0, event tree knows that it's time to delete whatever it is in the sim's hand (that would be handcuffs). When it's 0x0064 it isn't time to do anything.

Assorted mods: Moving out and job options
Apartment rent agreement mod - fresh update
Testers wellcome on Electrical box & Fertile land
Functional sofa bed is ready to be tested as well
Old 20th Oct 2017, 2:33 AM #9
omglo
Original Poster

Scholar

Join Date: Oct 2010
Posts: 1,557


I see. Thanks.
Old 20th Oct 2017, 6:29 PM #10
ankoyume
Field Researcher

Join Date: Aug 2013
Posts: 384
Thanks: 221 in 5 Posts
13 Achievements

View My Journal


Those parameters, are they automatic ?
For instance, if you create an animation and you want it to be linked to an event, will it be automatic or do you have to mess with codes ?

I believe in the "Thanks" button and its amazing powers !!!
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.