ID:160020
 
My question is how do I target every mob thats in the player world to change a variable.

for the var define I have
Mob/var
---event = "none"

then to change it I have

mob/EventKeeper
verb
Set_Event(mob/M)
set category = "Event Keeper"
switch(input("What event do you want to Create?", text) in list("Darkside At Island","Riku In Hollow Bastion","Radient Garden Event.","Cancel"))
if("Darkside At Island")
world<<"Darkside Has Appeared On The Island"
M.event = "Darkside Has Appeared On The Island"
if("Riku In Hollow Bastion")
world<<"Riku Has Appeared In Hollow Bastion"
M.event = "Riku is In Hollow Bastion"
if("Radiant Garden Event")
world<<"Radiant Garden has opened."
M.event = "Radiant Garden is Open."



How would I target every mob instead of a list asking me about the mobs in my view?

or is there an easier way to have a Var kept in another place so that when someone logs in they have the same var?
for(var/mob/player in world)
player.lol = "lol"
In response to Haywire
Thanks