I have an object for the player's currently held weapon and for a weapon on the ground. When the player swaps weapons all of the stats in the currently held weapon get transferred into a temporary variable (e.g: Set tempAccuracy to weapon.accuracy). All of the temporary variables are local static variables. After this the currently held weapon gets the stats from the weapon on ground and weapon on the ground gets the original stats from the held weapon.
Here is a picture of this part of the event sheet (zoomed out as far as I could while making it legible):
However, when the weapons are swapped the stats do not carry over correctly:
Before the swap
After the swap
Does anyone know how I can make this work? (and possibly more efficiently than an event that is dozens of actions long)