I am kinda new to byond (5 mouths)i am new to codein and mapin and iconin and things like that,any ways i have a problem with the codeing in the newbie guild at :http://zilal.byondhome.com/tutorials/zbt.html
the part where it says
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away the damage from M
the error is in
usr << "You attack [M]!"
it say:missing comma ',' or right-paren ')'
HELP!!! plz
ID:144305
Jan 24 2007, 2:15 pm
|
|
Jan 25 2007, 11:33 am
|
|
The code you just posted works perfectly when I compile it. Perhaps you fixed the problem when you copied it into this post, or perhaps the problem is elsewhere?
|
im taking a wild guess here but with the error have you put a space so it looks like usr << "you
|
What you have asked for is very trivial. It would be best if you'd read the DM Guide rather than bother to ask this question. The reason for this being that in the future you'll get even more confused about some other trivial things, and will bother us by posting with lots of unnecessary questions that would be answered if you had taken the time to read the guide in the first place. So read it, and don't skim. You'll learn a lot more.
|