And now use pcAll!
So, how did it work out?
C.O.C.K. ATTACK
-
- Prole
- Posts: 48
- Joined: Sun Feb 01, 2009 3:32 am
Re: C.O.C.K. ATTACK
Still working on it.
Still having trouble with lua and tables and calling table data later on. It's VERY confusing to me. Code:
later on...
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.
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
Code: Select all
math.random(1,beak_data.dmg)
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: C.O.C.K. ATTACK
You're sure you aren't using locals or resetting values?
Who is online
Users browsing this forum: No registered users and 3 guests