ID:141425
 
Code:
mob/var
blob
tai
gen
nin

obj
Log
icon = 'Landscapes.dmi'
icon_state = "tree stump"
density = 1
New()
var/type = rand(1,4)
if(type == 1)
src.tai = 1
src.nin = 0
src.gen = 0
src.blob = 0
src.name = "Taijutsu Log"
if(type == 2)
src.tai = 0
src.nin = 1
src.gen = 0
src.blob = 0
src.name = "Ninjutsu Log"
src.icon_state = "nin stump"
if(type == 3)
src.tai = 0
src.nin = 0
src.gen = 1
src.blob = 0
src.name = "Genjutsu Log"
src.icon_state = "gen stump"
if(type == 4)
src.tai = 0
src.nin = 0
src.gen = 0
src.blob = 1
src.name = "Normal Log"
src.icon_state = ""
..()
verb
Punch()
set name = "Log Train"
set category = "Taijutsu"
set src in oview(1)
if(usr.health<5)
usr<<"Cant train too tired - Rest."
return
if(!usr.doing&&usr.health >= 1)
if(usr && src.tai && !src.nin && !src.gen && !src.blob)
usr.taiexp += rand(500,750)
usr<<"<FONT COLOR=Green>You punch the log.</FONT>"
view()<<'Kick.wav'
flick("Attack",usr)
usr.taiup()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
usr.Exp_Check()
usr.exp += rand(10,26)
usr.maxhealth += rand(500,750)
usr.Mchakra += rand(500,750)
usr.Levelup()
usr.health -= rand(10,20)
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
sleep(0)
if(usr)
usr.doing = 0
else
return
if(usr && src.nin && !src.tai && !src.gen && !src.blob)
usr.ninexp += rand(500,750)
usr<<"<FONT COLOR=Green>You kawarimi the log.</FONT>"
view()<<'EXPLOSION.wav'
flick("hands",usr)
src.icon_state = "smoke2"
spawn(5)
src.icon_state = "nin stump"
usr.ninup()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
usr.Exp_Check()
usr.exp += rand(10,26)
usr.maxhealth += rand(500,750)
usr.Mchakra += rand(500,750)
usr.Levelup()
usr.health -= rand(10,20)
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
sleep(0)
if(usr)
usr.doing = 0
else
return
if(usr && !src.tai && !src.nin && src.gen && !src.blob)
usr.genexp += rand(500,750)
usr<<"<FONT COLOR=Green>You use an illusion Kick on the log.</FONT>"
view()<<'Slice.wav'
flick("KickA-2",usr)
usr.genup()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
usr.Exp_Check()
usr.exp += rand(10,26)
usr.maxhealth += rand(500,750)
usr.Mchakra += rand(500,750)
usr.Levelup()
usr.health -= rand(10,20)
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
sleep(0)
if(usr)
usr.doing = 0
else
return
if(usr && !src.tai && !src.nin && !src.gen && src.blob)
usr.genexp += rand(500,750)
usr.ninexp += rand(500,750)
usr.taiexp += rand(500,750)
usr<<"<FONT COLOR=Green>You kick the log.</FONT>"
view()<<'Slice.wav'
flick("KickA-2",usr)
usr.ninup()
usr.genup()
usr.taiup()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
usr.Exp_Check()
usr.exp += rand(10,26)
usr.maxhealth += rand(500,750)
usr.Mchakra += rand(500,750)
usr.Levelup()
usr.health -= rand(10,20)
usr.doing = 1
usr.Skills()
usr.makeJounin()
usr.makeHunter()
usr.makeMissing()
sleep(0)
if(usr)
usr.doing = 0
else
return


Problem description:
it says blob is not defined
mob/var/blob = 0

Remake your entire code because thats just a mess
In response to Robotyoshi
lol An obj cannot inherit mob variables ;p
In response to Spunky_Girl
so would it have to be
obj/var/blob=0
In response to Kyubi742
Si seņor :3
In response to Spunky_Girl
por favor -forgot word for add n is too lazy to look it up- yo to tu amigos
btw howd you get the ~ on senor
In response to Kyubi742
It's a character in the Times New Roman font. If you have Vista, you can look in the character map program (this may also apply to other Windows OS's). However, this is rather off track, you should post things like this in the Computers and Technology section of the forums.
In response to Jeff8500
jeesh so complicated o_o