For numeric variables, an *if command requires a certain command to be met, so an (in)equality sign ( >, <, or =) has to follow that variable.
In that case, I assume you want something to happen if there are no more poison_darts, so you want:
*if poisonous_darts=0
That should work.
Oh, and just in case you ever want to post code in the yellow boxes, type in
< pre > codestuffsgohere < /pre >
removing the spaces within the pre tags.