Very basic question. I see a lot of Lua script fragments on the forum have for loops with 0 to x-1 ranges. Is there a rule on when to use the and when to use 1 to x
My guess would be 0 to x-1 for any table generated with a CA supplied function (ie from C+) and 1 to x if i make my own table in lua or any tables defined by CA in lua rather than C+
I am just starting modding Rome 2. I have done some basic fiddling of values with Lua in another game (Dawn of war 2) but I am self-taught and not a programmer so please forgive basic questions




Reply With Quote






