how does statistics component works?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

how does statistics component works?

Post 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
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: how does statistics component works?

Post 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().)
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.
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: how does statistics component works?

Post 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'.
Granamir
Posts: 202
Joined: Wed Jan 07, 2015 7:19 pm

Re: how does statistics component works?

Post 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
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: how does statistics component works?

Post by Isaac »

https://github.com/JKos/log2doc/wiki

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