underscorpion wrote:
It's not working
It still teleports me from Inventory to Inventory :/
Yes, because "
Each use"
in the second script is never called. Both scripts contain the line "
Equipment 0,4,20000"
. This sets the "
Command"
equipment slot to 20000 -- i.e. the first script, the one that takes you to the inventory -- so when you press "
Command"
it will go to "
Each use"
in the first script and will go to the inventory. You can never get out.
There are two ways round this. One, make your second script a character's
default script -- let's say the character with ID 20001. Then, after "
Go to level entrance"
in the first script, put "
Equipment 0,4,20001"
so that the second script is called next time, taking you out of the inventory. And put "
Equipment 0,4,20000"
after "
Go to level entrance"
in the second script so you can get back into the inventory again. Or, have just one script and use a variable to flip between the two behaviours (this is mxvladi's solution).
rman wrote:
Anyway (I'm about mxvladi's script now), are you sure that you have the var Inv?
Variables cannot unexist. If a variable is queried before it has ever been set, its value will be 0.
____________________________
50th Skywatcher
[Last edited by Nuntar at 04-22-2009 05:17 PM]