grabbee.liftlb -= (drainlift = grabbee.liftlb / 20)
grabbee.health -= (drainhealth = grabbee.health / 10)
Problem description:
The code above has a missing expression error on both lines.
I recieved it as a help understanding a further coding that i'll display below.
mob/skills/verb/Bio_Extract()
set category="Abilities"
set name="Bio Extract"
grabbee = locate(/mob) in get_step(usr,dir)
if(grabbee)
var/repeat = 26, drainlift, drainhealth
view() << "[usr] is absorbing [grabbee]'s Bio Extract!"
while(repeat--)
if(!grabbee)
return
grabbee.liftlb -= (drainlift = grabbee.liftlb / 20)
grabbee.health -= (drainhealth = grabbee.health / 10)
usr.liftlb += drainlift
usr.health += drainhealth
if(grabbee.health <= 1000)
grabbee.Death()
sleep(350)
Does anyone know what the missing expression can be? I've tried a few things but im stumped for ideas and humbly come for advice ^_^ (>^-^)>
If you want to do that you'd do something like: