Skill event.

Quick questions. Probably extremely easy but, I want to make a skill that when it is used it will reduce the players HP to 1. Just 1. 

Similar to Shock in FF9. Basically I want the enemy to use the Shock skill on the main character. I made the skill and tried entering in the formula b.hp - 1. But I get a error whenever it is used and the game crashes.
Please give a screenshot of the error, then we can help

Original thread: https://forums.rpgmakerweb.com/threads/skill-event.47879/