Jump to content

Behaviour Constant (Bcon)


Rebecah

Recommended Posts

  • Administrators

Behaviour Constants are setting that are used in coding of the Behaviour Functions.

 

post-12-0-14624500-1410961246_thumb.jpg

 

These are settings that do not change.  Their value is constant, within the particular items coding.  

 

When setting these values, you are able to use either hexadecimal or decimal values.

 

An example for this items is that this bookcase has a limit of 30 books.

 

post-12-0-88332400-1410961507_thumb.jpg

 

An example of a call to a constant. 

 

The code on line 2 of this BHAV sends the constants values to call another BHAV.   They are called by their instance number which in this case is 1001 and then by their line number within that instance, this one happens to call all three constants.

 

post-12-0-33665400-1410961939_thumb.jpg

 

post-12-0-62844600-1410961937_thumb.jpg

 

Another constant example is Sims needs.  Energy, comfort, etc.  Needs are set as a total of 200.  100 is the highest value, while -200 is the lowest value.  

 

I will try to explain more about Constants when working with BHAVs.  Which will most likely be my last tutorial as it is the most difficult.

 

 

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...