Bump. — —
Unfortunately I am running into two more problems :
- One that I cant find the exact event to correct (although its not REALLY bad, unless problem 2 is not resolved),
- One that could really be a bug, but again as a non experimented user, I just might be doing something wrong.
Problem 1 : When swapping items, if the item dragged is equipped, both item still swap, even if they end up on the wrong equipment slot. I had the problem of the swap before between inventory and equipment slot, and resolved it for the opposite situation, when you try to swap an inventory item for an equipped item. This does not work anymore if the item would go in the wrong inventory slot.
I might require a particular check for this situation, but I am having trouble to find the right one, since this unique situation has so much elements.
Problem 2 : The attributes given to loot are dependent of the frame playing. This frame is set-up when the loot object is created. Rarity and type, which are attributed randomly determines which frame the sprite will be showing, thus showing item type (picture) and item rarity (background). Attributes are simply variables. When any loot is equipped, it copies its attributes onto the variable of the equipment slot sprite.
In debug mode, I noticed that somehow, on loot created, after 1 frame, the correct attribute (atk, blk or def) was given, and after another 11 frames, the attribute corresponding to the next frame was also given. I do not understand why.
Example : Common sword is created : its attributes are Atk 1 Blk 0 Def 0. its animation frame is frame 1. After 11 steps in debug mode, it will be also given the attributes of frame 2, which is 1 def, making the sword having both 1 atk and 1 def.
In the event sheet, I tried to change the "compare frame" events, and changing them to not only "give X atk, blk or def" to "give X atk AND set blk to 0, set def to 0". The debug mode then shows my stats twitching every more or less 10 frames, quickly jumping from their correct value to 0, and back to their correct value a frame later.
I hope it makes sense, if not, just test it yourself !
If problem 1 was resolved, though, this change in stats would not be a problem, since the equipment slot only copies one single attribute of the loot.
So if anyone can resolve problem 1, then no need to bother for tthis strange bug, although I really would like to know if its a bug or not.
CAPX : https://www.dropbox.com/s/flfplgsn7xwia ... .capx?dl=0