First, the Flag Code:
var/have_red_flag
var/have_blue_flag
obj
Red_Flag
density = 1
icon = 'Red Flag.dmi'
Bumped(mob/M)
if(istype(M, /mob))
if(M.team == "Blue")
src.loc = M
M.overlays += src.icon
world << "<font color=red size=3><b>[M] has the [src]!</b></font>"
have_red_flag = "Yes"
else
M <<"You can't pick up your own team flag!"
Blue_Flag
density = 1
icon = 'Blue Flag.dmi'
Bumped(mob/M)
if(istype(M, /mob))
if(M.team == "Red")
src.loc = M
M.overlays += src.icon
world << "<font color=red size=3><b>[M] has the [src]!</b></font>"
have_blue_flag = "Yes"
else
M <<"You can't pick up your own team flag!"
Now, the Stat Code:
mob
Stat()
..()
statpanel("Team")
if(src.redteam == team)
stat("Have the Blue Flag: [have_red_flag]")
else
stat("Have the Red Flag: [have_blue_flag]")
Please try and help!
Thanks!
~~SSJ4_Gohan_Majin