ID:261766
 
    bed
name=""
icon='items.dmi'
icon_state="bed"
verb
Sleep()
set src in oview(1)
if(usr.energy<=30)
TurnProcess()


    proc
AgeProcess()
[code]
TurnProcess()
usr.energy=100
if(usr.turn==8)
AgeProcess()


mind helping me, what i'm trying to do is make a proc that makes all objects in /obj/example/, variable(var/age) go up 1 if its var/owner=usr.name
Tamaka-san wrote:
    bed
> name=""
> icon='items.dmi'
> icon_state="bed"
> verb
> Sleep()
> set src in oview(1)
> if(usr.energy<=30)
> TurnProcess()
>

>   proc
> AgeProcess()
> [code]
> TurnProcess()
> usr.energy=100
> if(usr.turn==8)
> AgeProcess()
>

mind helping me, what i'm trying to do is make a proc that makes all objects in /obj/example/, variable(var/age) go up 1 if its var/owner=usr.name>
>   proc
> AgeProcess()
> if(src.owner == usr.age)
> usr.age += 1
> else
> usr >> "You do not own this!"
> TurnProcess()
> usr.energy=100
> if(usr.turn==8)
> AgeProcess()
>


Hmm, I believe the following should work:

mob
verb
AgeStuff()
for(var/obj/example/E)
if(E.owner==usr.name)
E.age+=1

BTW, you don't want usr in procs, unless they're always called by a verb. This is in verb format because I didn't know how you want the items to be aged. If you don't know how to convert this into a proc, Give me details of how it'll be called and I'll help.