C.O.C.K. ATTACK

Show off your games, demos and other (playable) creations.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: C.O.C.K. ATTACK

Post by bartbes »

And now use pcAll! :P
So, how did it work out?
philnelson
Prole
Posts: 48
Joined: Sun Feb 01, 2009 3:32 am

Re: C.O.C.K. ATTACK

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: C.O.C.K. ATTACK

Post by bartbes »

You're sure you aren't using locals or resetting values?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 9 guests