3 Attachment(s)
Function visiblity and data
Hello everyone.
After a break due to work, I resumed experimenting and studying FGU. I have two questions to you who
are much more experienced than I am.
Question 1
I found a way to override a function, which is to regenerate it with the same name and use super. to
recall the old version without having to completely rewrite it. This way I can afford to add my own
code while continuing to keep the function updated if CoreRPG (for example) updates it.
Code:
function A()
super.A();
... my code
end
The operation should correspond to that shown in the figure below
(blue -> old version - yellow -> new version).
Attachment 48106
The problem I have, however, arises when the old version of Func A calls Func B. In this case the behavior
it seems to me corresponds to this.
Attachment 48107
I would like this instead.
Attachment 48108
Do you think is there a way to get it? The only solution I find is to completely overwrite ()copy) the
old function without calling it, and I don't like it.
Question 2
The ruleset I'm trying to experiment on is full of data. I have inserted all data in special LUAs with
functions to extract the info I need. But what if I also want to create a manual? Should I replicate
the data in the relative XML or can I use a data extraction function (perhaps automatically generating
a table, if I need it)?