Hi My English is not good. So I help myself with translator. Sorry if something is not understood.
Code:
mob var Enemykill=(new/mob/Monster/Krolik) proc KillEnemyInQuest() for(var/mob/Monster/M in src.Enemykill)
if("[M.name]"== "Krolik") src.quest1killed+=1 usr << output("<B>System :<font color=#DA5101>[M.name] </font>zabito [quest1killed]/[quest1killedmax] </font>", "ChatPaneSys.Output")
|
Problem description:If I kill an enemy who is in the list "Enemykill" This should add to the usr "quest1killed + = 1". A problem is that if you kill an enemy it gives me var from every enemy on the map of the same type. How do I fix this? . Please write the correct code. Because there is a chance that I do not understand :p.