Welcome to
Mod The Sims
Online: 2230
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: 2 (Who?), Viewed: 2372 times.
Search this Thread
Old 2nd Nov 2011, 08:10 AM [BHAV] Passing GUID to prim 0x0033 by variable or constant ? #1
xiaoyun
Original Poster

Test Subject

Join Date: Oct 2011
Posts: 54
Thanks: 269 in 2 Posts
5 Achievements


Hello.
Heres a little code to illustrate the problem :

[prim 0x0002] Expression (Temp 0x0000 := Literal 0x0000)
[prim 0x0033] Manage Inventory (Set To Next Token Of GUID,
token: GUID 0x12345678,
Category: non-visible non-memory,
reversed: False,
Inventory (singular): Neighbor: Param 0x0000,
index: Temp 0x0000)


I would like to know, if there is a way to receive the same effect as code shown above,
but with ability to pass GUID to 0x0033 as constant or variable, instead of hardcoding it as in example above.
Old 2nd Nov 2011, 08:23 AM #2
Echo
Duck



Join Date: Dec 2004
Posts: 3,918
Thanks: 48062 in 48 Posts
26 Achievements

View My Journal


I don't think there is a specific command for that. This might solve your problem though; use the "Set To Next Token by Category" inside a loop. For each found token, use Expression to test the token's GUID against your variable. When you find the one you want, exit the loop.
Old 2nd Nov 2011, 02:55 PM #3
xiaoyun
Original Poster

Test Subject

Join Date: Oct 2011
Posts: 54
Thanks: 269 in 2 Posts
5 Achievements


Indeed, quite smart workaround. Thank you for your reply.
Reply


Section jump:


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