More Awesome Than You!
Welcome, Guest. Please login or register.
2024 November 23, 00:27:10

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
| | |-+  Help ME!!! My brain it's broken (Dyn.Menu)
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Help ME!!! My brain it's broken (Dyn.Menu)  (Read 2494 times)
MaximilianPS
Undead Member
*
Posts: 437


da grammar killer


View Profile
Help ME!!! My brain it's broken (Dyn.Menu)
« on: 2006 July 20, 09:29:58 »
THANKS THIS IS GREAT

This place is filled by the most brilliant TS2 developer, so, i hope someone will help me to understand...  Wink

My objective is to target all guest sim on the lot by a menu, just something like in insim. with "quick relation"
when you click on the menu' it will show all sim present on the lot and give to the selected sim some parameters...

I've made a STR# with the label that will be used in the menu "test.../$Object" actually the istance of the STR# is 0x12E just 'cause i've cloned it form another object.
On the TTAs (instance 0x1) i've the menu string "Test", the istance is x1
On the TTAB (instance 0x1) under interaction i've "Test" that will call a bhav that start with an OpCode 0x32, for some reason, here i can read the right menu string ("test.../$Object")

but in the game it won't be display or sometime (depend on what a kind of mess made) it will show a menu coming from other objects  Shocked

So i hope to find some good guy/girl, so good, to explain to me how those things interact each other, and also how the game will know that my target is a sim  Grin

thnx in advice.

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



View Profile
Re: Help ME!!! My brain it's broken (Dyn.Menu)
« Reply #1 on: 2006 July 20, 09:48:19 »
THANKS THIS IS GREAT

The generation of the menu is handled inside the TEST BHAV for that menu option.
Set the stack object to the object ID of the sim in question, then call "Add/Change Action String" (0x32)

Your code will look something like this
Stack Object := 0
Set To Next Person
Testy Stuff (T: next line, F: previous line)
Add Change Action String (T/F: Back to "set to next person")

That's the short explanation.
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.
MaximilianPS
Undead Member
*
Posts: 437


da grammar killer


View Profile
Re: Help ME!!! My brain it's broken (Dyn.Menu)
« Reply #2 on: 2006 July 20, 10:23:44 »
THANKS THIS IS GREAT

but how the TextList will chained with the menu and the bhav ?
i didn't find in ttab too any reference to the text ... and i didn't undrestand why in the bhav i see the right menu ... "test.../$Object"
and in the game i see a totally diffferent voice  Embarrassed

thnx alot J.M. Smiley
« Last Edit: 2006 July 20, 12:51:34 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.088 seconds with 20 queries.