M.ailements += U.aile
Problem description:
In this situation:
M is type /mob/player
U s type /obj/ailement
ailements is a list on the mob (mob/var/list/ailements)
aile is the ailement the object applies to M, as text (EX "Poison")
For some reason, it's giving me a type mismatch error when I try to add the ailement applied by the object created into the player's ailement list. Is it no possible to add text into a list with += ?
Broken down, the code would be something like:
myplayer.ailement(list) += ailementobject.aile(ailement added)
("Poison")
runtime error: type mismatch: += "Poison"
proc name: Attack (/mob/monster/proc/Attack)
source file: Monsters.dm,3678
usr: Asch (/mob/player)
src: Lily (/mob/monster/Lily)
call stack:
Lily (/mob/monster/Lily): Attack(Asch (/mob/player))
Lily (/mob/monster/Lily): attackplayer(Asch (/mob/player))
Lily (/mob/monster/Lily): Agrcheck(Asch (/mob/player))
Lily (/mob/monster/Lily): Attack(Asch (/mob/player)
And it's ailments, by the way :P