ID:178224
Jun 7 2002, 10:28 am
|
|
I want it so when u spend a certain amount of time with a pet, its icon will change, like it is growing, now the tricky part is, if ur with the evil aliance, it turns to a dark icon, if ur with the light aliance, it turns to its light icon, is this possible?
|
In response to Airjoe
|
|
I have one Idea,
var evil good proc evolve() sleep(500) if(usr.aligment=good) icon=??? icon_state=??? else icon=??? icon_state=??? my indents might be off but it should work can you help me with my problem now? |
In response to SpaceCowboy
|
|
how does it know which charas are good and which are evil?
var dark shadow light sonic ??? |
In response to Airjoe
|
|
just change the vars around!
|
In response to SpaceCowboy
|
|
what?
I think I need a real oldbie |
In response to Airjoe
|
|
What?
|
In response to SpaceCowboy
|
|
mob/proc/Evolve() Run this proc when you get the chaio |
In response to Thief Jack
|
|
and under all good guys, I should have a var/good = 1 or sumtin, or like var.good:
sonic icon = 'sonic.dmi' var/good ? |
In response to Airjoe
|
|
No..........Not unless you need it
|
In response to Thief Jack
|
|
how do I make it after 10 minutes it happens?
|
In response to Thief Jack
|
|
mob
normalpet var/Owner verb Adopt() if(src.Owner) usr << "This has an owner!" else set src in oview(1) src.Owner = usr.ckey usr << "You adopted a chao!" Check() set src in oview(1) if(src.Owner) usr << "This pet belongs to [src.Owner]." else usr << "This pet is wild." icon = 'smile.dmi' icon_state = "normal" turf Click() for(var/mob/normalpet/P in world) if(P.Owner == usr.key) walk_to(P,src,0,6) break that is the code, fill in what I need |
mob
normalpet
var/Owner
verb
Adopt()
if(src.Owner)
usr << "This has an owner!"
else
set src in oview(1)
src.Owner = usr.ckey
usr << "You adopted a chao!"
Check()
set src in oview()
if(src.Owner)
usr << "This pet belongs to [src.Owner]."
else
usr << "This pet is wild."
icon = 'smile.dmi'
icon_state = "normal"
turf
Click()
for(var/mob/normalpet/P in world)
if(P.Owner == usr.key)
walk_to(P,src,0,6)
break
I want the icon to change after 10 minutes, to darkchaoicon.dmi, or lightchaoicon.dmi