loading Superhero.dme
Battlesystem.dm:65:error::bad assignment
Battlesystem.dm:86:error::missing expression
Battlesystem.dm:89:src :warning: unused label
Battlesystem.dm:89:repop :warning: unused label
Superhero.dmb - 2 errors, 2 warnings (double-click on an error to jump to it)
basically what its suppose 2 do is check either if its a monster, or a player and then choose accordingly
mob
verb
Attack()
set src in oview(1)
set category = "Battle"
set name = "Attack"
usr.random = rand(1,10)
if(usr.hp > 1)
if(usr.random == 1)
view(6) << "[usr.name] kicks [src.name]!"
src.hp -= usr.str/3
sleep(20)
deathcheckplayer()
deathcheckmon()
if(usr.random == 2)
view(6) << "[usr.name] punches [src.name]!"
src.hp -= usr.str/4
sleep(20)
deathcheckplayer()
deathcheckmon()
if(usr.random == 3)
view(6) << "[usr.name] misses [src.name]!"
// Nothing happens and no power is lost.
if(usr.random == 4 && src.agility >= usr.agility)
view(6) << "[src.name] is to fast for [usr.name] and he misses."
if(usr.random == 5 && usr.def>= src.def)
view(6) << "[src.name] is like a brick and [usr.name] attacks do nothing."
if(usr.random == 10 && src.luck >= usr.luck)
view(6) << "[src.name] seems like hes to lucky to be hit by [usr.name] so he misses."
mob
proc
gecheck()
if(src.ge <= 0)
usr.alignment = "Good"
if(src.ge <= 0)
evil = good
mob
proc
deathcheckplayer()
if(src.hp <= 0 & player = 1)
src << "You have died!"
dead = 1
if(src == evil && usr == good)
usr.good += 1
if(evil >= 0)
usr.evil -= 2
gecheck()
if(src == evil && usr == evil)
usr.good -= 2
if(evil >= 0)
usr.evil += 4
gecheck()
if(src == good && usr == good)
usr.good -= 5
if(evil >= 0)
usr.evil += 3
gecheck()
src.loc=locate(20,10,2)
deathcheckmon()
if(src.hp <=0)
if(usr.player = 0)
del(src)
sleep(500)
src.repop
thanks alot again
[edit]...heh i figured out the whole assignment thing i was missing an = sign but now the label thing in src.repop is messed up still sorry....if anyone can help i'll appreciate it
i will post the one i did when i get back home