Blockland Forums > Modification Help
Changing a weapon in a slot?
FrogFreak:
Is there a way, script wise, for a weapon to be changed to another weapon by means of, say, alt fire? When the weapon is changed, it replaces the one that was in a certain slot with the new one, and it stays that new weapon as well.
Amade:
Yes.
Katadeus:
--- Quote from: Amade on August 08, 2011, 02:55:21 PM ---Yes.
--- End quote ---
That was exceedingly helpful.
Amade:
--- Quote from: Katadeus on August 08, 2011, 05:50:06 PM ---That was exceedingly helpful.
--- End quote ---
All he asked was if.
otto-san:
%player.tool[slot] = itemdatablock;
%player.tool[%player.currtool] = somesillyItem;
modify as needed