More Awesome Than You!
Welcome, Guest. Please login or register.
2024 April 25, 23:28:06

Login with username, password and session length
Search:     Advanced search
540270 Posts in 18066 Topics by 6513 Members
Latest Member: Linnie
* Home Help Search Login Register
+  More Awesome Than You!
|-+  TS2: Burnination
| |-+  The Podium
| | |-+  Modding Question - Using things from Inventory
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Modding Question - Using things from Inventory  (Read 2192 times)
rufio
Non-Standard
Uncouth Undesirable
****
Posts: 3030


More Nonstandard Than You


View Profile WWW
Modding Question - Using things from Inventory
« on: 2009 January 11, 21:26:59 »
THANKS THIS IS GREAT

So, I've been playing around with object modding a little bit, to see what I can do with it.  I've cloned the anti-witch potion, got it a new GUID, made it buyable, and made it so non-witches can use it.  Now I want to make it usable from inventory, and while there is a pie menu option that is connected up to the Use From Inventory BHAV, the Guardian BHAV was set to something like "Hide Interaction" and the option didn't come up.  So I wrote a new BHAV with just "Manage Inventory (Set To Next Token Of GUID <GUID of cloned object> : visible non-memory)" with true returning true and false returning false (this I gleaned out of someone else's potion hack - I'm guessing it means "find the next object in inventory with this GUID") and made that BHAV the Guardian.  However, in the game, the option still doesn't come up when I click on the sim with the potion in inventory, but I get an error when I click on the potion not in inventory, apparently coming from the new BHAV.  It looks to me like the Inventory menu option is overriding the Use From World option, and so the game is using its Guardian BHAV instead of the other one.  So, I need some way to specify that the one interaction is use from Inventory, and the other is for use from World.  How do I do that?  I've looked at corresponding pie menu interactions from the other hack, but I can't see anything different about them.
Logged

I was thinking about these things and I am a feminist.

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



View Profile
Re: Modding Question - Using things from Inventory
« Reply #1 on: 2009 January 12, 02:50:21 »
THANKS THIS IS GREAT

Making an object usable from INSIDE the inventory, I.E., when it doesn't really exist, by clicking on a sim, involves a lot of rigamarolity, and your inventory-based code will never actually run and you cannot place it on the object itself. You need one of those Download Social Launchers the way Macrotastics and the salvaged CS crap does it.
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.
rufio
Non-Standard
Uncouth Undesirable
****
Posts: 3030


More Nonstandard Than You


View Profile WWW
Re: Modding Question - Using things from Inventory
« Reply #2 on: 2009 January 12, 03:31:49 »
THANKS THIS IS GREAT

Yeah, I thought it might be a pain in the ass, but the pie menu option was just there, so I wondered if it might just work.  Cheesy  Trust EA not to make it that simple.

Who designed whatever language BHAVs are written in, anyway?  It's what, one step above assembly?  It's like they designed it to be difficult to mod or something.  I'm having fun, though, which is all that really matters here.
Logged

I was thinking about these things and I am a feminist.

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.054 seconds with 20 queries.