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".
lua help
Moderator: Moderator
Re: lua help
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.