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
how does statistics component works?
Re: how does statistics component works?
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().)
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: how does statistics component works?
It looks like it's a typo; the 's' should be 'g'.minmay wrote:(The scripting reference lies, there is no GameMode.setStatistic().)
Re: how does statistics component works?
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
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?
https://github.com/JKos/log2doc/wiki
It's updated, but it doesn't seem to have any new information on the StatisticsComponent.
It's updated, but it doesn't seem to have any new information on the StatisticsComponent.