mob
var
MaxHealth=0
MaxExp=0
MaxLvl=0
MaxAttack=0
mob/Bulbasaur
icon = 'Kanto Pokemon.dmi'
icon_state = "Bulbasaur"
density = 1
var
src.Health=5
src.Exp=0
src.Lvl=1
src.Attack=5
proc/Evolve()
lvl=16
if(lvl < 16)
usr << "Do you wish to evolve Bulbasaur to Ivysaur?","evolve") in list("Yes","No")
if("Yes")
del src
src.icon/I = new('Kanto Pokemon.dmi',icon_state = "Ivysaur",)
src.icon = I
return
if("No")
return
Problem description:
im trying to do a evolving code on my own not working out so good cause i got 2 errors can someone help please
Errors are:
Pokemon.dm:22:error: ,: expected }
Pokemon.dm:20:error: location of top-most unmatched {
to
and your if("No") isn't indented properly.
And in the future, show us which lines have the errors. We can't read minds - and it's harder over the internet anyways.