ID:263029
 
Code:
client/proc/make(var/turf/O)
usr.credits -= 10
var/mob/a = new/mob/units/soldiers/droid(O)
var/obj/b = new/obj/overlay/color(O)
b.icon_state = usr.color
usr.color = a.color


Problem description:
not much. a refuses to read ANYTHING from usr.

I think the problem is its a Client verb. I just have a feeling.


Try src.
In response to RedlineM203
It still isnt working, heres the new and full code
mob/proc/make(var/turf/O)
src.credits -= 10
var/mob/a = new/mob/units/soldiers/droid(O)
a.color = src.color
var/obj/b = new/obj/overlay/color(O)
b.icon_state = src.color

obj/overlay/color
icon = 'colors.dmi'
obj/var/part2 = 0
atom
Click()
if(isturf(src))
if(usr.selectreal&&!usr.selected)
walk_to(usr.selectreal,src,10)
if(usr.selected)
if(usr.selected == "droid"&&usr.credits >= 10)
usr.make(src)
if(usr.selected == "push"&&usr.credits >= 20)
usr.credits -= 20
var/a = new/mob/units/force/push(src)
usr.units += a
a:icon_state = usr.color
else
src:clickproc()

anyone have any idea?
In response to Rky_nick
use src.mob.var in the proc
In response to Mysame
When i try that, it outputs errors
In response to Rky_nick
No abuse : operator. Especially no use src with : operator. Ungh!

Lummox JR