blue_knight
10-11-2006, 04:28 AM
I'm using version 2.11.14,
Ok I have two questions:
1) I'm using Link->Item[IT_xxx] to determine if Link has an item in his inventory and doing something if it's true, something like this:
ffc script SomeName
{
run()
{
while(true)
{
if ( Link->Item[IC_CANDLE] )
{
...do something here.
}
Waitframe();
}
}
}
The code inside the if is only executed when the selected item changes (it seems) rather then all the time once the item is acquired. Without the if the code works correctly. What am I doing wrong?
2) Is it possible to detect whether an active item is actually equipped rather then just in the inventory?
Thanks.
Ok I have two questions:
1) I'm using Link->Item[IT_xxx] to determine if Link has an item in his inventory and doing something if it's true, something like this:
ffc script SomeName
{
run()
{
while(true)
{
if ( Link->Item[IC_CANDLE] )
{
...do something here.
}
Waitframe();
}
}
}
The code inside the if is only executed when the selected item changes (it seems) rather then all the time once the item is acquired. Without the if the code works correctly. What am I doing wrong?
2) Is it possible to detect whether an active item is actually equipped rather then just in the inventory?
Thanks.