mob
proc
be_a_dumbass()
set name="be a dumbass"
walk(src,0)
if(AI == "be a dumbass") AI=null
if(overrideAI == "be a dumbass") overrideAI=null
return
aggressive_fight(mob/M,oldloc)
if(turns)
sleep(20)
if(!M)return
M.attackedme += src
var/mob/N
for(N in M.followers)
N.attackedme += src
if(rand(1,100)<(src.mp/src.maxmp)*50)
if(src:offence_spells.len)
var/V = pickfrom(src:offence_spells) //this is where the problem resides as well in many diffrent areas within the code
usr=src
call(V)(M)
return
turns--
walk_to(src,M,1,src.speed())
M.underlays.Add(/obj/hit)
spawn(20)
if(!M)return
M.underlays.Remove(/obj/hit)
walk(src,0)
if(hp && combat)
loc = oldloc
if(M)
src.dir = src.face(M)
underlays.Remove(/obj/turns)
var/obj/O
var/adddamage
var/damage=0
for(O as obj in equipped)
if(O.attackeffect && O.canattack.Find(attacktype))
adddamage= call(O.attackeffect, "effect")(src, M, O)
if(isnum(adddamage))
damage += adddamage
else
if(adddamage == "evaded")
view(M, 5) << "\italic[M.name]\i evades \bold[usr.name]'s\b attack."
damage=adddamage
break
if(isnum(damage))
damage = round(damage)
if(damage < 1) damage=1
view(M,5) << "[src.name] attacks [M.name] for [damage] damage."
M.hp -= damage
Problem description:
ai.dm:155:error:pickfrom:undefined proc
I'm figuring that it probally requires a external file to function properly either that or its missing a library to make this work...
If you need more information I am currently re-writing the Dreamoor 3.0 code and this error is coming from the ai.dm file as well as several others...
my MSN is [email protected] if you have questions.
Pickfrom() is not a predefined proc in BYOND so unless you ment pick() you need to post the code where you defined the pickfrom() proc.
I'll look trough it again if you could do this.
- Fint