Have 1 map for each person(Ex:Map005_Battle, Always go there to battle, but..cant see the other peoples and monsters..do I edit the Z?)
My pet wont die:
mob/proc/HpCheck()
if(src.Hp <= 0)
if(src.pet1 == 1)
world<<"[src] died!"
alert("Sorry 'bout the no save feature!")
del(src)
else if(src.pet1 == 0)
if(SmD == 1)
..()
else if(usr.SmD == 0)
alert("[usr.pet] died!")
usr.SmD = 1
Ok, Pet info on Greenlimes demo,
SmD means Smifflion dead...
mob/proc/War()
var/Btl = rand(1,20)
if(Btl <= 15)
..()
else if(Btl >= 15)
if(usr.case == 1)
var/Enem = rand(1,100)
if(Enem >= 50)
usr.Enemie = new/mob/Skren(locate(5,8,5))
usr.EHp = 100
else if(Enem <= 50)
usr.Enemie = new/mob/Kann(locate(5,8,5))
usr.EHp = 300
usr.XYZ = usr.loc
usr.loc = locate(5,3,5)
usr.pet:loc = locate(6,3,5)
alert("[usr.Enemie] appears!")
poopdoggie
alert("You attack!")
var/damage = rand(1,10)
s_damage(usr.Enemie, damage, "#FFCCCC")
usr.EHp -= damage
if(usr.EHp <= 0)
usr.EHP0Check()
else if(usr.EHp >= 0)
if(usr.SmD == 0)
alert("[usr.pet]'s turn!")
switch(input("Choose a command!")in list("Attack","Slap"))
if("Attack")
var/damagee...
Thats snippet of battle
plz help!