Increase the ATTACKPower
Posted: Fri Nov 20, 2015 12:51 am
So I'm attempting to work on a script that would check for the value of a counter and then set that value as an monsters attack power value. Listed below is my attempt to stab in the dark and figure out how to do it. It doesn't seem to like what I put in for the setattackpower value so gonna need to figure out how to get it to take in the counters value.
Code: Select all
function settehpower()
local x = counter_57.counter:getValue()
if findEntity("mummy_1") ~= nil then
mummy_1.monster:setAttackPower(x)
end
end