mob
proc
medals(medal)
switch(medal)
if("Login")//you can customize this so you can check for certain types of medals, such as "Combat", "Level", "Item Found"
var/has_medal = world.GetMedal("New Player",src)
if(has_medal) return//if they already have the medal, you don't want them to get it again
else
world.SetMedal("New Player Medal",src)//give them the medal
world<<"<font size=5><Font face=times new roman><font color=Yellow>:Congratulations! [usr] have acheived the 'New Player' Medal!:"
//customizable alert string ^
if("Logout")//just displaying how you can diversify it again
var/has_medal = world.GetMedal("Logout Medal",src)
if(has_medal) return
else
world.SetMedal("Logout Medal",src)
world<<"<font size=5><Font face=times new roman><font color=Yellow>:Congratulations! [usr] have acheived the 'Logout Medal' medal!"
if(level>5000)//you can customize this so you can check for certain types of medals, such as "Combat", "Level", "Item Found"
var/has_medal = world.GetMedal("Half Way",src)
if(has_medal) return//if they already have the medal, you don't want them to get it again
else
world.SetMedal("Half Way Medal",src)//give them the medal
world<<"<font size=5><Font face=times new roman><font color=Yellow>:Congratulations! [usr] have acheived the 'Half Way' Medal!:"
//customizable alert string ^
Problem description:
Programming\Medals.dm:18:error: : expected a constant expression