There are a number of problems with that.
this is currently what I have in the description of that skill
You can't type into the description of a skill and have it execute code.
You can't run code
anywhere except the fields in event commands specifically labeled "Script".
if($gameVariables.value(4)=0)
This is incorrect JavaScript syntax. You can't make a number equal 0. Checking whether something
is equal to 0 is two ==.
{$gameMessage.add(Empty);}
This is also incorrect syntax. The braces, while harmless, are unnecessary. And the add() method expects a string argument, e.g.
"Empty". Just putting a word in code is referring to either a variable or a function.
Also, even if it worked, it doesn't seem like what you'd want to do at all - it wouldn't be doing anything to the skill description, it would be popping up a show text window.
The only thing I can think of would be to use a combination of plugins; Hakuen Studio's Global Text lets you use escape codes anywhere, and his Escape Codes plugin lets you embed JavaScript with an escape code.
So you'd make the description of the skill something like
Code:
=|$gameVariables.value(4) == 0 ? "Empty" : "whatever it is when it's not 0"|=