Page 1 of 1

lua help

Posted: Thu Oct 04, 2012 9:27 am
by jenx
in the following line:

if target.type.."/"..target.subtype == t or target.type == t then dam = dam + dam * idt / 100 break end

i want to add a second instruction after the dam = ..., such as:

if target.type.."/"..target.subtype == t or target.type == t then
dam = dam + dam * idt / 100
maxdam = maxdam + maxdam * idt /100
break
end

is this correct? I'm not sure about the "break".

Re: lua help

Posted: Thu Oct 04, 2012 10:37 am
by Grey
Get rid of the break and it's fine. The break is for loops which you're not using here. I don't know what the .. means in if target.type.."/"..target.subtype == t though.