thebox.lua - take as is
thebox.xml - take as is

==================
chatmanager.lua:  At bottom, add following:

-- Custom: the_box
function throwDice(dragtype, dice, modifier, desc, custom)
	if control then
		control.throwDice(dragtype, dice, modifier, desc, custom);
	end
end
-- End Custom: the_box




				
				
==================
base.xml:  As extra include file, add following:

<!-- the_box -->
	<includefile source="thebox/thebox.xml" />
<!-- end -->




==================
chat_chat.lua:  At bottom, add following:

-- Custom: the_box
function onReceiveMessage(msg)
	if not User.isHost() then
		return false;
	elseif msg.sender ~= "thebox_box_roll:" then
		return false;
	else
		ChatManager.processDie(msg.text);
		return true;
	end
end
-- End Custom: the_box