| Search this Thread |
|
|
[BHAV] Passing GUID to prim 0x0033 by variable or constant ? #1 |
| xiaoyun |
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. |
|
|
|
|
|
#2 |
|
Echo
|
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. |
|
|
|
|
|
#3 |
| xiaoyun |
Indeed, quite smart workaround. Thank you for your reply.
|
|
|
|
![]() |

Have an opinion? Of course you do!


Twitter
del.icio.us
StumbleUpon
Google