ID:1122015
 
(See the best response by Fushimi.)
Code:
obj
Tailed_Beast_Blast
icon="TBB.dmi"
density=1
var/Damage=30
Bumb(var/mob/m)
if(ismob(m)
m.HP -= Damage
view(m) << "[m] was hit with Fu's Tailed Beast Blast for [Damage] Damage!"


Problem description:
just wondering why this gives me the error:Objects.dm:8:error: m: missing comma ',' or right-paren ')'
which is the line that says "m.HP -= Damage"

and how to fix it please!

if(ismob(m))

Please check twice your code before doing a topic for each Compile error you get,

Super Saiyan X has made a post a while ago about them, you should read it.
oh sorry about that, i wasnt looking at that line since it wasnt the one i got the error for
Best response
Generally the line outputted by that compile error is the next line where the error originally is. So yeah, it is a bit confusing at first but once you know it, you almost don't need to pay attention
This should help you, man.


Edit: And this is the post Fushimi was speaking of written by Super Saiyan X.

These are quite handy in trying to figure out what the compiler is trying to tell you. Good luck ;)
so i was looking over a demo on projectiles, and i like this coding for my sidescroller game:
    Clay_Owl
icon_state = "Clay Owl"
delay = 0
Damage=9

for the verb:
mob/deidara/verb
Clay_Owl() //test verbs for firing beams.
set category = "Shoot"
var/obj/projectile/Clay_Owl/P = new(null,usr)
walk(P,P.dir,P.delay)


obj/projectile
icon='projectiles.dmi'
density=1
var
delay=2
length=500
Damage=5
mob/owner
New(_loc,mob/_owner)
if(_owner)
src.dir = _owner.dir
if(!src.loc) src.loc = get_step(_owner,_owner.dir)
src.owner = _owner
Move()
src.length--
if(!src.length) del src
return ..()
Bump(atom/O)
if(ismob(O))

viewers(O) << "[src.owner] has hit [O:name] with \his [src]!"
else if(isobj(O)) del O
else if(isturf(O))

it works fine and all with no errors, but i cant seem to get it to go anyfaster.....any tips?
Fool with the delay time and experiment :)
is 0 the lowest you can go with delays? or can u go negative? O_o. i made the delay 0 for the owl, but it still isn't at a speed i wanted :/ it still currently moves much slower than the players
Check out my pixel_projectile library: http://www.byond.com/developer/FIREking/PixelProjectile