MarekkPie wrote:yarickyarick wrote:I did not understand a bit and then n * n, VarB and the like ...
function A(n) just multiplies n by itself (n^2).
function B(n) calls function A with 5 (which returns 25) and adds n to it.
The return B(7) is called whenever you attempt to load the script.
So if "blabla == 100" then call the script and get the value of B(7)...in our case: 25 + 7 = 32.
MarekkPie wrote:So, I think to answer your original question if you did something like:
Code: Select all
-- In file script.lua
function callFunctions()
A()
B()
C()
D()
end
function A()
-- stuff
end
function B()
-- stuff
end
function C()
-- stuff
end
function D()
-- stuff
end
return callFunctions()
Then in main.lua you did:
Code: Select all
if blabla == 100 then
require "script.lua"
end
You could run a bunch of other functions just by loading another script.
Well, I talk to many European languages ...
But the English language I have never succumbed to ... to my surprise, English and Russian language almost identical, but the Ukrainian language (As for me a simplified version of the Russian language for Europeans ...) just did is very different from English ... And especially in your language does not give me time continuum of words
You have too many ...
Past from the future ...
Past from present, and so on ...
even as examples of the similarity of Russian and English:
December = Декабрь(Deckabr)
November = Ноябрь(Noyabr)
January = Январь(Janvar)
And so on ...
Well, I can hardly be so ...
I have many advanced features introduced ...
This is simply not normal mentally ... as for me just a computer can not survive every second check, for example, or clicked in some of those coordinates, and so on ...
If you click it private, a heavy load on the application after which the average PC will not sustain the load and simply shut down or burn out (Well, if you click "with the speed of light" and possibly burn Comp)