Hello,
The example that I provided does do a check atm.. As I mentioned in
the last reply, skills and spells are listed in the command table..
->pcdata->learned checks the second to the last slot in the command
table to return a percentage. Otherwise I could just check the
percentage with foo == percent from the actual spell/skill itself but
I haven't gotten that far yet. The command table is the only thing
that I haven't gotten to yet mainly because I've been busy doing other
things.

General excerpts from lua.

1) Functions can be defined using the function keyword and are covered
in section 2.5.8 [1] of the Reference Manual.

2) Lua has no need for you to declare function types and arguments!
Lua is a dynamically typed language with first class objects. This
means that we only find out whether something is a function when we
try to call it at runtime.

However, Stock rom has to know this or it gets befuddled.. Hence the
reason I don't need to define gsn's.. A Rom skills use a gsn for what?
GSN, or "Global Skill Number" are nothing more than a reference number
for ROM.

Hopefully this one makes sense,
Chris

Reply via email to