ID:168194
Nov 28 2005, 2:47 pm
|
|
Hi, I tried asking my friends for a code to get in cars and drive them and get out. No1 wants to help me. Yes, if you wana know I suck at coding. If you can help me...o and how do i code more that 1 type of car that i can go in and drive. Thanks.
|
Nov 28 2005, 2:50 pm
|
|
Learning DM might be a start. Cookbook 'coding' is bad for you.
|
In response to Jp
|
|
um....I can't really find anything on cars though...
|
In response to Bamrulez
|
|
Programming is not about finding 'codes' and throwing them together into an incoherent whole. Learn how DM works, then figure out how to do it yourself.
Either that or use the forum search feature. |
well you could do it like...:(Ghetto way)
obj Keep in mind this is a really ghetto version lol |
In response to Jp
|
|
Dammit, now I can't contradict you and release a car demo!
=D |
In response to CaptFalcon33035
|
|
O,o lol
|
In response to VcentG
|
|
VcentG wrote:
well you could do it like...:(Ghetto way) > mob You have to use typesof() in order to add more than 1 verb at a time. Your method would generate a runtime error. > mob/car/verb/ Removing overlays like that doesn't work. You have to keep a reference to the overlay in a variable or something. |
In response to DeathAwaitsU
|
|
uh the car only has 1 verb to add and that's get out... so no need for typesof() I'd give him the pwnage system but it depends if he has equipment and crap lol
|
In response to VcentG
|
|
Um, no. I'm pretty sure that would be typemismatch.
|
In response to VcentG
|
|
VcentG wrote:
uh the car only has 1 verb to add and that's get out... so no need for typesof() The number of verbs is irrelevant. If you want to add a specific verb, you have to tell it the specific verb too. So in this case, it'd be src.verbs += /mob/car/verb/Get_In If you want to add all verbs, you use typesof(). removing overlays like that works for meeee I'd give him the pwnage system but it depends if he has equipment and crap lol I've tested it and it doesn't work. |
In response to Kalzar
|
|
tell that to my game.. but dont actually cause then it'd realize that and then I'd have to recode it THE HORROR!!!! o,o anyways I'll change it..
|
In response to DeathAwaitsU
|
|
that was mybad I just forgot to add the "Get_In" lol I knew to add it I just didnt so sorry :(
and no need for usin so many quotes >_>' just takes more space when if people have common sense they can get who you're talkin to and what about most of the time XD(this is one of those times) |