Page 1 of 1

how does statistics component works?

Posted: Mon May 11, 2015 9:45 pm
by Granamir
Hi,
trying to improve my mod, would like to add some secrets.
Anyone knows how to use statistic component? And if it possible to edit somehow it? like adding anything more than secrets and treasures
Ty

Re: how does statistics component works?

Posted: Tue May 12, 2015 1:32 am
by minmay
StatisticsComponent doesn't expose any field to the scripting interface I think. All I know of is GameMode.getStatistic() and GameMode.setMaxStatistic(). (The scripting reference lies, there is no GameMode.setStatistic().)

Re: how does statistics component works?

Posted: Tue May 12, 2015 2:24 am
by Isaac
minmay wrote:(The scripting reference lies, there is no GameMode.setStatistic().)
It looks like it's a typo; the 's' should be 'g'.

Re: how does statistics component works?

Posted: Tue May 12, 2015 8:59 am
by Granamir
Thank you.
Btw 2 questions:
1) my scripting reference link is this http://www.grimrock.net/modding/scripti ... sComponent and as u can see there is nothing about this component, so do u have a better scripting reference?
2) do u know any way to let player know how good is he/she going in secrets finding? i mean something more elaborate than a hudPrint

ty

Re: how does statistics component works?

Posted: Tue May 12, 2015 9:12 am
by Isaac
https://github.com/JKos/log2doc/wiki

It's updated, but it doesn't seem to have any new information on the StatisticsComponent.