More Awesome Than You!
Welcome, Guest. Please login or register.
2024 November 25, 06:11:40

Login with username, password and session length
Search:     Advanced search
540287 Posts in 18067 Topics by 6545 Members
Latest Member: cincinancy
* Home Help Search Login Register
+  More Awesome Than You!
|-+  TS2: Burnination
| |-+  The Podium
| | |-+  Six trees, one chainsaw-wielding maniac
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Six trees, one chainsaw-wielding maniac  (Read 4387 times)
Marvin Kosh
Feckless Fool
*
Posts: 264



View Profile WWW
Six trees, one chainsaw-wielding maniac
« on: 2009 April 11, 09:56:23 »
THANKS THIS IS GREAT

I'm doing what I thought would be a simple mod of visitors.  But I've only really started to get a handle on what the following nest of functions does:

CT - Start Visiting (group 0x7F92C866E, instance 0x1001)
 - [private 0x100A]  Start Visiting - Knock on Door()
 - - [prim 0x001C] Run Tree by Name("CT - Knock On Door")

The thing I'm not sure about is which of the six variants of "CT - Knock On Door" is actually used for visitors that have been invited to the lot (I managed to comprehend that the one that is used depends on the type of object - Sim in this case).  I'm think it could be the one in group 0x7FD0DEBA because the others seem to be specifically for service and scenario NPCs.  But the past six hours reading code and testing the mod tends to suggest that I could be wrong.  Tongue

Logged

J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: Six trees, one chainsaw-wielding maniac
« Reply #1 on: 2009 April 12, 10:13:41 »
THANKS THIS IS GREAT

A local CT for the given knocked object will be executed first if it exists. If there is no local (0x1XXX) for a specific object that the sim is trying to knock on, the semiglobal one (0x2XXX) will be executed instead. If this doesn't exist, the global one will be used (there isn't one). If none of these exist, the entire thing returns false and nothing is run.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Marvin Kosh
Feckless Fool
*
Posts: 264



View Profile WWW
Re: Six trees, one chainsaw-wielding maniac
« Reply #2 on: 2009 April 30, 20:12:14 »
THANKS THIS IS GREAT

That makes things a bit clearer.

Thankfully, I didn't have to modify any of those trees.  The reason why Sims would walk far far away after knocking was staring me in the face (top level) the whole time.  Some Eaxian bright spark decided it would be fun to roll a d100 to see whether the Sim wanders about or wanders about, making for a whole lot of unnecessary and annoying code.
Logged

J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: Six trees, one chainsaw-wielding maniac
« Reply #3 on: 2009 April 30, 23:03:20 »
THANKS THIS IS GREAT

I still think the best BHAV in the game is 0x1D2, "Coin Flip".
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
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.076 seconds with 19 queries.