turf
CTF_Turf
icon = 'Ground.dmi'
icon_state = "Cement"
Entered(var/obj/item/furniture/CTF_Red_Flag/rf)
if(istype(rf,gf))
if(usr.Teamcolor == "Green")
if(gf.loc == locate(86,55,3))
green_team_points += 1
gf.loc = locate(87,76,3)
rf.loc = locate(86,55,3)
world << "[usr] has scored a point for the Green team!"
world << "The score is now Red:[red_team_points] Green:[green_team_points]!"
if(green_team_points == maxpoints)
world << "CTF has [CTF_Status ? "Started" : "Ended"]. The Red team wins! All players on the red team get [prize_money] Gold!"
if(usr.key in CTF_players)
CTF_players.Remove(usr)
usr.Teamcolor = ""
usr.loc = locate(45,49,2)
if(usr.Music == 1)
return
else
usr << sound('Earth Town.mid',1)
if(usr.Teamcolor == "Red")
usr.Gold += prize_money
else
usr << "You can't score for your team unless you have both flags!"
Problem description:
i need this to check to see if the green flag is in the users inventory and thge red flag is on this turf. im not sure how to do it tho. can i have some help?