ID:145522
 
Code: Allows the player to choose their Graphiti Tag, and do it on something.
mob/var
fired = 0 //the variable for the fire
team
lives = 20
bullets = 20
cash = 20
nopvp = 0
hit = 0
shot = 0
score = 0
icontag = ""
icontagstate
verb
Change_Tag_Icon(I as icon)//Let the usr be able to choose a song from thier own cpu
set catagory = "Tag Setup"
icontag = I
Change_Tag_Icon(I as icon)//Let the usr be able to choose a song from thier own cpu
set catagory = "Tag Setup"
icontagstate = I
Tag()
var/obj/Ta = new/obj/Tag
Ta.loc = usr.loc
Ta.icon = usr.icontag
Ta.icon_state = usr.icontagstate
usr << "Tagged!"
return


Problem description: Its the Tag(). Its either 29 of...
error:usr.loc: compile failed (possible infinite cross-reference loop)

Or 7 non-varified errors. (Remove one indent from var/obj/Ta) I see no link, but it does it for something.


You're doing /mob/var/verb...
In response to Mysame
I see no problem with that.
In response to RedlineM203
Well, there is a problem with that because verbs aren't variables.
In response to Artemio
I moved the Variable (and back again after), still 29 errors.
In response to RedlineM203
mob
var
fired = 0;team;lives = 20;bullets = 20;cash = 20;nopvp = 0;hit = 0;shot = 0;score = 0
icontag = "";icontagstate;
verb
Change_Tag_Icon(I as icon)
set category = "Tag Setup"
if(!I)return
var/iconstate=input("Which icon state from [I] should your tag icon be?")as null|anything in icon_states(I)
if(!iconstate) return
icontag=I
icontagstate=iconstate
Tag()
var/obj/Tag/Ta=new
Ta.loc=locate(usr.loc)
Ta.icon=usr.icontag
Ta.icon_state=usr.icontagstate
usr<<"Tagged!"


It should look something like that.
In response to Artemio
Brilliant it works! I like my vars spaced out though, no real problems though, except you can't choose a Null icon if there is multiple ones. I'll see what I can do to that.

mob
var
icontag = ""
icontagstate
verb
Change_Tag_Icon(I as icon)
set category = "Tag Setup"
if(!I)return
var/iconstate=input("Which icon state from [I] should your tag icon be?")as null|anything in icon_states(I)
if(!iconstate) return
icontag=I
icontagstate=iconstate
Tag()
var/obj/Tag/Ta = new/obj/Tag
Ta.loc=usr.loc
Ta.icon=usr.icontag
Ta.icon_state=usr.icontagstate
usr<<"Tagged!"


I took out the other vars since they have no use if I show it here. The problem with your code that I fixed was Locate didn't work. I made it exact.