changing lookup map to script instead of sprite