Ok i have this bike right here
male_bike
icon='chara.dmi'
icon_state="bike"
verb
Drop()
set src in usr.contents
if(usr.isonbike==1)
usr<<"You are still riding your bike! Click on ride agian to get off!"
else
src.Move(usr.loc)
-----i want scr.Move to create a new diffferent objects at the users location like a different bike at the usrs location how would i do this
Ride()
set src in usr.contents
if(usr.isonbike == 1)
usr << "You get off the bike!"
usr.icon_state = "ash"
usr.isonbike = 0
else
usr << "You get on the bike!"
usr.icon_state = "ashbike"
usr.isonbike = 1
in the middle u can see my problem
ID:149512
Apr 12 2002, 1:52 pm
|
|
In response to Loduwijk
|
|
Yes ok, I want the bike you have to get destroyed adn a different bike to be created at your location
|
In response to Mrhat99au
|
|
I don't see how why that would make much sence, why would you want to delete it then recreate it? O well.
del the bike with del(src) then on the next line use the new proc to make a new one. |
In response to Loduwijk
|
|
Yeah i know. Bike 1 is in my inventory. I want to delete it and create bike 2 on the ground. How exactly would i create bike 2?
|
In response to Mrhat99au
|
|
male_bike
icon='chara.dmi' icon_state="bike" verb Drop() set src in usr.contents if(usr.isonbike==1) usr<<"You are still riding your bike! Click on ride agian to get off!" else del(src) new/obj/bike2(usr.loc) |
Also, we know this is a code problem, that is why it is in the "Code Problems" section of forum. The topic would better be "Bike discarding problem" or something like that.