Page 1 of 1
[Fixed for V0.42] Equip and Unequip problem
Posted: Wed Aug 02, 2006 3:40 pm
by Tonari
When it is operated alone, Convert of Unequip is normal now.
However, Unequip doesn't work when the item that changes alternately by Equip and Unequip is made.
For instance, the coin that changes into the sword when equipping it is made.
It returns to the coin when the sword is removed from equipment.
However, the sword doesn't return to the coin.
This need not be repaired in a hurry.
I have already devised the action method.
Posted: Wed Aug 02, 2006 5:32 pm
by George Gilbert
Hi - I think this is just a misunderstanding as to how equip / unequip work.
When an item is equipped, the object type is changed *permanently*; specifically, it retains no information about what it used to be.
So, when you want a coin that converts to a sword when equipped and then converts back again to a coin when the sword is unequipped, then you need the following:
OBJECT_COIN CONVERT_EQUIP=(NEW_OBJECT:OBJECT_SWORD)
*and*
OBJECT_SWORD CONVERT_UNEQUIP=(NEW_OBJECT:OBJECT_COIN)
What I think you're doing (if not, please say so!) is:
OBJECT_COIN CONVERT_EQUIP=(NEW_OBJECT:OBJECT_SWORD) CONVERT_UNEQUIP=(NEW_OBJECT:OBJECT_COIN)
which won't work, because once the item is equipped (and it's now a sword) there's no instructions *for the sword* to tell it to convert to a coin when unequipped.
Posted: Wed Aug 02, 2006 6:56 pm
by Tonari
It is not such a mistake.
I made it as follows.
New dungeon.
The clone of the coin made, and both hands be equipped, sets it.
It is set that the clone of the sword is made, and it changes into the coin in UNEQUIP.
It is set that the clone of the coin changes into the sword in EQUIP.
The clone of the coin is put on the dungeon.
It changes into the sword if it equips it with the coin.
However, it doesn't change into the coin even if the sword is removed.
Posted: Wed Aug 02, 2006 10:53 pm
by George Gilbert
Thats great thankyou - I now understand what is going on.
This is a bug in V0.41 - now fixed for V0.42