PDA

View Full Version : [BHAV] Passing GUID to prim 0x0033 by variable or constant ?


xiaoyun
2nd Nov 2011, 08:10 AM
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.

Echo
2nd Nov 2011, 08:23 AM
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.

xiaoyun
2nd Nov 2011, 02:55 PM
Indeed, quite smart workaround. Thank you for your reply. :)