Page 2 of 2

Re: C.O.C.K. ATTACK

Posted: Mon Mar 02, 2009 7:27 pm
by bartbes
And now use pcAll! :P
So, how did it work out?

Re: C.O.C.K. ATTACK

Posted: Tue Mar 03, 2009 8:12 pm
by philnelson
Still working on it.

Still having trouble with lua and tables and calling table data later on. It's VERY confusing to me. Code:

Code: Select all

function load ()
    beak_data = {dmg=8,spd=2,tohit=10}
end
later on...

Code: Select all

math.random(1,beak_data.dmg)
Gives error "bad argument #2 to random, number expected got nil", which just plain doesn't make sense to me. Past frustration and well into anger by now.

Re: C.O.C.K. ATTACK

Posted: Wed Mar 04, 2009 2:22 pm
by bartbes
You're sure you aren't using locals or resetting values?