In response to Sorcerb
comment it then please. :)
In response to Shoe
mob/EarthGod //who gets it
verb //wut it is
BoulderThrow() //the verb
set category="EarthGod" //where the verb goes
var/obj/S=new/obj/GodBoulder //create a new obj
S.loc=(usr.loc) //where to create it
S.damage=30 //how much damage it does
S.owner=usr //who cant be hurt by it
walk(S,usr.dir,2) //it moves
sleep(50) //how long it lasts
***delay(10)***
LvlCheck(usr) //check if you are a hi enuf lvl
del S //delete the boulder
return //return it
In response to Sorcerb
Sorcerb wrote:
mob/EarthGod //who gets it
verb //wut it is
BoulderThrow() //the verb
set category="EarthGod" //where the verb goes
var/obj/S=new/obj/GodBoulder //create a new obj
S.loc=(usr.loc) //where to create it
S.damage=30 //how much damage it does
S.owner=usr //who cant be hurt by it
walk(S,usr.dir,2) //it moves
sleep(50) //how long it lasts
***delay(10)***
LvlCheck(usr) //check if you are a hi enuf lvl
del S //delete the boulder
return //return it

judging by the grammar, that is not the same commentor.
you didn't tell me what delay(10) did, nor did you comment well. please re-comment and this time be informative. :)
In response to Shoe
Shoe wrote:
Sorcerb wrote:
mob/EarthGod //who gets it
verb //wut it is
BoulderThrow() //the verb
set category="EarthGod" //where the verb goes
var/obj/S=new/obj/GodBoulder //create a new obj
S.loc=(usr.loc) //where to create it
S.damage=30 //how much damage it does
S.owner=usr //who cant be hurt by it
walk(S,usr.dir,2) //it moves
sleep(50) //how long it lasts
***delay(10)***
LvlCheck(usr) //check if you are a hi enuf lvl
del S //delete the boulder
return //return it

judging by the grammar, that is not the same commentor.
you didn't tell me what delay(10) did, nor did you comment well. please re-comment and this time be informative. :)

1) Yes it is still me.
2) Delay(10) doesn't do anything because I was asking you guys how to make it so it meant something.
3) The commenting is fine because you understand everything I wrote.
4) I don't want to, because it will basically say the same exact thing...
In response to Sorcerb
1) Yes it is still me.
2) Delay(10) doesn't do anything because I was asking you guys how to make it so it meant something.
3) The commenting is fine because you understand everything I wrote.
4) I don't want to, because it will basically say the same exact thing...


point proven, you didn't code that code nor do you understand it.

in reply to 4): no, actually it would be much more understandable. -.-
In response to Shoe
Actually, I wrote that whole code, and it worked fine, then, I added the delay part because I didn't know if it would do something or not, because I was assuming it would because it seems that it would.
In response to Sorcerb
So you know sleep(), and spawn(), yet you don't know how to make a delay?

Right, and then you want us to believe you? :/
In response to Mysame
Sleep is how long it lasts? Whereas spawn is how much longer it takes for the mob to respawn?
In response to Sorcerb
What the hell? That just proves even more you didn't write that code. :/ DM Reference, check it out, and read the DM Guide while you're at it.
In response to Mysame
Why don't you read it?
In response to Sorcerb
You are the one who doesn't know what the hell you're doing. It's obvious that you did NOT write that by the looks of the horrible commenting. If that was your commenting, when you are done reading the DM guide please read, you know, the dictionary and maybe fifth or sixth grade grammar.

-Exophus
In response to Exophus
No, that was just quick commenting because someone else in this thread wanted me to do it, I didn't really look at the lines I was commenting on.
In response to Sorcerb
Cut the damn flame war! Let's get back on topic and get this right so this damn 32 replys topic can go the hell away!

The reason delay isn't working is because DELAY IS NOT A PROC UNLESS YOU MADE IT ONE!

It's your trying to have a cool down time then here is what you do.

First off, remove that delay crap. Create a var called attacking and put it after set category.
set category = "whatever"
var/attacking = 0


Now,set attacking to 1 when they cast the spell.
S.owner = usr
usr.attacking = 1


Last, after all the damage calculation and crap is done, add this to the bottom after all that other code.
spawn(50) //will wait 5 seconds
usr.attacking = 0
del S //S im assuming is the spell


Make sure the del S lines up with spawn() so that way spawn() ativate but it doesn't wait 5 seconds to delete. Got it? I hope so, so we can shut everyone the hell up and dump this topic.
In response to Sorcerb
Sorcerb wrote:
Why don't you read it?

Mysame most likely already has;

You're asking for help in exactly the fashion I referred to earlier - You're passing off code which obviously was not written by you, or you do not understand what you yourself are writing.

It is not anyone elses job to read stuff for you. It is also not anyone elses job nor duty to help you. People do so because they are friendly, and them attempting to help is a nice thing; Derogatory commentary towards people trying to help is NOT appreciated.

You've already been provided with more than enough assistance in how to fix the problem - You're asking to do something which your code already does, and that is a clear indicator that you haven't actually read up on at least those parts of the code.

You can fix your problem by reading the corresponding entries in the information already available to you.

To make your life easier, here you go:

sleep() procedure

spawn() procedure

DM Guide Chapter 13: Realtime events

It took me LESS than 2 minutes to find a link to those three places, copy-paste them here.

Look things up before you ask. And stop trying to pass it off as if you already have- Its fairly obvious you haven't. If you don't understand something, try reading it again and experimenting.
In response to Pyro_dragons
mob/EarthGod
verb
BoulderThrow()
set category="EarthGod"
var/attacking = 0
var/obj/S=new/obj/GodBoulder
S.loc=(usr.loc)
S.damage=30
S.owner=usr
usr.attacking = 1
walk(S,usr.dir,2)
sleep(50)
LvlCheck(usr)
spawn(50)
usr.attacking = 0
del S
return


Godstuff.dm:10:error:usr.attacking:undefined var
Godstuff.dm:15:error:usr.attacking:undefined var
Godstuff.dm:5:attacking :warning: variable defined but not used
In response to Sorcerb
That's my fault. It should be mob/var/attacking since the player is the one attacking, by bad. But that really wasn't hard to figure out.
In response to Pyro_dragons
That's the thing though, dont yell at me, but I don't havew that eye yet to spot out the problems.
In response to Pyro_dragons
Godstuff.dm:15:error:usr.attacking:undefined var
Godstuff.dm:5:mob :warning: unused label
Godstuff.dm:5:attacking :warning: variable defined but not used
In response to Sorcerb
I'm not yelling, I'm just tired of these topic that take up so much space for something so simple.
In response to Pyro_dragons
Ok, then you definately input that wrong, show me the current code.
Page: 1 2 3 4