(1) A person who attempts to commit an offense prohibited by law and in such attempt does any act toward the commission of such offense, but fails in the perpetration or is intercepted or prevented in the execution thereof, commits the offense of criminal attempt, ranked for purposes of sentencing as provided in subsection (4). Criminal attempt includes the act of an adult who, with intent to commit an offense prohibited by law, allures, seduces, coaxes, or induces a child under the age of 12 to engage in an offense prohibited by law.

(2) A person who solicits another to commit an offense prohibited by law and in the course of such solicitation commands, encourages, hires, or requests another person to engage in specific conduct which would constitute such offense or an attempt to commit such offense commits the offense of criminal solicitation, ranked for purposes of sentencing as provided in subsection (4).

(3) A person who agrees, conspires, combines, or confederates with another person or persons to commit any offense commits the offense of criminal conspiracy, ranked for purposes of sentencing as provided in subsection (4).

(4)(a) Except as otherwise provided in ss. 104.091(2), 379.2431(1), 828.125(2), 849.25(4), 893.135(5), and 921.0022, the offense of criminal attempt, criminal solicitation, or criminal conspiracy is ranked for purposes of sentencing under chapter 921 and determining incentive gain-time eligibility under chapter 944 one level below the ranking under s. 921.0022 or s. 921.0023 of the offense attempted, solicited, or conspired to. If the criminal attempt, criminal solicitation, or criminal conspiracy is of an offense ranked in level 1 or level 2 under s. 921.0022 or s. 921.0023, such offense is a misdemeanor of the first degree, punishable as provided in s. 775.082 or s. 775.083.

(b) If the offense attempted, solicited, or conspired to is a capital felony, the offense of criminal attempt, criminal solicitation, or criminal conspiracy is a felony of the first degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084.

(c) Except as otherwise provided in s. 893.135(5), if the offense attempted, solicited, or conspired to is a life felony or a felony of the first degree, the offense of criminal attempt, criminal solicitation, or criminal conspiracy is a felony of the second degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084.

(d) Except as otherwise provided in s. 104.091(2), s. 379.2431(1), s. 828.125(2), or s. 849.25(4), if the offense attempted, solicited, or conspired to is a:

the offense of criminal attempt, criminal solicitation, or criminal conspiracy is a felony of the third degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084.

(e) Except as otherwise provided in s. 104.091(2), s. 379.2431(1), s. 849.25(4), or paragraph (d), if the offense attempted, solicited, or conspired to is a felony of the third degree, the offense of criminal attempt, criminal solicitation, or criminal conspiracy is a misdemeanor of the first degree, punishable as provided in s. 775.082 or s. 775.083.

(f) Except as otherwise provided in s. 104.091(2), if the offense attempted, solicited, or conspired to is a misdemeanor of the first or second degree, the offense of criminal attempt, criminal solicitation, or criminal conspiracy is a misdemeanor of the second degree, punishable as provided in s. 775.082 or s. 775.083.

(5) It is a defense to a charge of criminal attempt, criminal solicitation, or criminal conspiracy that, under circumstances manifesting a complete and voluntary renunciation of his or her criminal purpose, the defendant:

(a) Abandoned his or her attempt to commit the offense or otherwise prevented its commission;

(b) After soliciting another person to commit an offense, persuaded such other person not to do so or otherwise prevented commission of the offense; or

(c) After conspiring with one or more persons to commit an offense, persuaded such persons not to do so or otherwise prevented commission of the offense.