mob/verb
Drive_Check()
if(usr.drive < 11 && usr.drive > 0) // less then eleven, and greater then zero.
usr << "Yes, I have the Drive attack"
usr.verbs += /mob/verb/Attack1
else
usr << "Drive attack is offline."
mob
verb
Attack1()
for(var/mob/M in get_step(usr,usr.dir))//This makes it so you have to be facing your opponent to attack
if(!M.client)//Checks to see if the opponent is a npc or player
if(M.mon)//Checks to see if the opponent is an enemy
if(!M.dead)//Checks to see if the enemy is dead or not
var/dmg = usr.str - M.def
usr<<"You did [dmg] damage to [M]."
M.Hp -= dmg
if(M.Hp <= 0)
usr.Exp += M.ExpG
usr.Gold += M.GoldG
usr.drive -= 10
usr<<"<b>You gained [M.ExpG] exp and [M.GoldG] gil.</b>"
usr.LevelUp()
del(M)
return ..()
Problem description: How do i make the attack verb hidden until it is checked and then it appears.
O-matic