ID:2029671
 
(See the best response by GreatPirateEra.)
For Example:
if(Z.Attackpower==usr.attackpower)


How would you ask dm if the usr attackpower is double the Z usr.

if(Z.Attackpower==2*usr.attackpower)
var/mob/attacker = new(src)
if(z.attack_power > attacker.attack_power)//checks if z attack power is greater than attacker's.
or
if(z.attack_power == (attacker.attack_power * 2))//multiply's attackers attack power *2
You can use the multiplication operator (*):

if(usr.attackpower == (Z.attackpower * 2))
thanks
Best response
You should prob do
if(src.attackpower >= (Z.attackpower * 2))

Just checking if it is exactly double the attack power means that the statement is almost never going to be true.