ID:262778
 
Code:
if(usr.Elemental_Alignment = Fire & M.Elemental_Alignment = Ice)
var/damage = usr.Attack * 2 - M.Defense


Problem description:

it says the i have a missing comma or right para. where does that go?
You have to use a different format in statements like this.

= is ==
& is &&.
In response to Artemio
could you show me i think i understand but i wanna be sure
In response to Artemio
oh i tried that and it still asks me to put a , or ) somewhere
In response to Pyro_dragons
The problem probably lies before that piece of code. Usually those errors come up in other lines.
In response to Dark Weasel
ok heres what comes before it

mob
verb
Attack(mob/M as mob in oview(1))
set category="Combat"
usr << "You attack [M]!"
if(usr.Elemental_Alignment = Fire & M.Elemental_Alignment = Ice)
var/damage = usr.Attack * 2 - M.Defense
In response to Pyro_dragons
oh and where the error is is at one of the = missing , or )
In response to Pyro_dragons
You still didn't fix the problem the original responder pointed out.

= means to set something equal to (IE a = b means set a to the value of b)
== means compare to see if something is equal, returns 1 if equal, 0 if not

They CANNOT be used interchangeably.

If you lookup '&' in the help, you would see it is the binary and operator. Not what you want at all.

I think you want the && operator which if you lookup in the help checks if both things are true (a && b means both a and b have to evaluate to true).

This is one of the most basic concepts to DM that's explained in every DM tutorial I've ever read. I can only assume you still haven't read any :/

Here's a good place to start:
http://www.byond.com/docs/guide/

If you would just read it you wouldn't waste days and days getting other people to write code for you. You could learn to do it yourself!