
I think i put this in wrong place so nobody can see it. I just want to calculate if shoot hit target, its easy. But if "yes" so result is bigger then 0 its start macro to calculate damage. If result is 0 or below then it shows MISS. More info in link below I find this part in wiki... Conditional Statements Using the multiplicative properties of 0(absorption) and 1(identity) you can write conditional statements for integer values(and to some extent floating point values too) An example of this is the formula "if x greater than or equal to A, then T; else F," where T and F are some values. This can be written as a macro with [[-1*floor((A-x-0.1)/(abs(A-x-0.1)+0.001))*T - floor((x+0.1-A)/(abs(x+0.1-A)+0.001))*F]]Similarly, "x greater than A, then T; else F" is written [[-1*floor((A-x+0.1)/(abs(A-x+0.1)+0.001))*T - floor((x-0.1-A)/(abs(x-0.1-A)+0.001))*F]] "x equals A" is simpler, and works when x is a dice roll, but not when F is a dice roll [[F + round((T-F)/(10*(x-A+.1)))]] Now for some identities: "x less than A" is the inverse of "x greater than or equal to A," so the conditional can be written as "x greater than or equal to A, then F; else T" using the formulas above. Similarly with "x less than or equal to A" and "x greater than A," as well as with "x not equal to A" and "x equal to A." I guess its exactly what i need by for goblin sick i cant apply that... Now its looks like: &{template:default} {{name=Nakine, Gun, 12,5m -}} {{Hit on 0+=[[ 1d10 + @{Nakine Maui|Ref_Base} +@{Nakine Maui|Handgun_Skill} -15+?{Modifier|0}]]}} Result need to by higher then this 15 on the end so everything bigger then 0 is HIT everything lower is MISS And i want to make it so that if its "HIT" then its starting next macro like /r 2k6+1 for example So on the end after you click macro it show MISS or HIT and amount of dmg too. Best Regards Maciej