ID:179011
![]() Feb 28 2002, 3:32 pm
|
|
is there a demo that can teach me the code to get a car and get in it???
|
![]() Feb 28 2002, 3:32 pm
|
|
Nope!
|
Do you want it like this?
mob/verb/Get_Into_Car() And if thats not what you want,try attempt to make one your self! -Non-PC |
ok i got the car code to work (i made a few changes) Now i can't get OUT of the car. can u tell me what a code is that would help?
P.S. I'm using an overlay to get the code to work |
its still not working. i'll post the code i am using...
turf Car_Dealer verb talk() set src in oview(1) switch(input("Welcome to Cars-R-Us! Do u want a car??","???")in list("Yes","No")) if("Yes") usr.verbs+=new/mob/proc/Get_In_Car if("No") usr<<"Ok, but you don't know what you are missing out on!" ..() turf/Car_Dealer icon = 'freak.dmi' density= 1 obj/overlays CarEnd icon='Car.dmi' icon_state="red" layer=MOB_LAYER+1 CarStart icon='car.dmi' icon_state="red" layer=MOB_LAYER+1 mob/proc/Get_In_Car() usr.verbs+=new/mob/proc/Get_out usr<<"puff puff" usr.overlays+=/obj/overlays/CarEnd sleep(80) usr.overlays-=/obj/overlays/CarStart sleep(1) view(src) << "is driving" obj/Car icon='car.dmi' icon_state="red" that is the code i'm using to get in the car. can u tell me the opposite of that so i can get out of the car. I've been trying for hours and havn't got anywhere. |
Alienman22774 wrote:
is there a demo that can teach me the code to get a car and get in it??? Please refrain from using the phrase "the code" like this. This phrase is only valid when you're referring to a distinct and unique set of program instructions, or a specific example which you already have. Right: "The code below demonstrates a simple door." Wrong: "This is the code for a door." Right: "This is the code for doors in my game." The wrong form suggests, with "the", that this is the only way to program something; when you ask for "the code" for something you're making the same mistake. The right form uses "the" to refer specifically to the code shown, not to suggest it's the only possible way you could do it. Wrong: "This is a code for a door." Still wrong because program code is inherently plural. This should be "some code". (This would be right, however, if you were referring to an entry code for a door lock; then you've got a code in the singular sense.) The correct choice of article in your case would have been "some", not "the". Lummox JR |
Alienman22774 wrote:
fine "The code below demonstrates how to get in a car in my game." You still used "The code".. |
Yes, but he used it differently. That was is ok. What else is he suppose to say? "A code below..."? he is saying 'the' to specify which one, this time. Its like having an apple, and saying, 'an apple is mine'. Doesn't sound right, eh? But then, "the apple i am holding is mine.". You get what i mean, right? Not to be a pest, just bored. :D
-Rcet |
Alienman22774 wrote:
i still need help. does anyone know?? Yes, alot of people know, alot of people also don't like when someone bumps their post. |
usr.overlays+=/obj/overlays/CarEnd What the heck do you think this code does? You add CarEnd to overlays, then subtract CarStart... at what point, exactly, is CarStart added to overlays? Because if it's not in overlays, what will subtracting it accomplish? This is why I keep telling people, instead of asking for "codes," you just learn to ****ing code to begin with... how are you ever going to make a game, slapping together junk you don't understand at random? |