counting secret script help pls

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

counting secret script help pls

Post by Drakkan »

Hi,
I have seen this somewhere in the dungeon - when finished to count how many secrets player has discovered (like 15/ 20). Is there some script which checks how many secret has been discovered and how to work with that ? Thanks
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: counting secret script help pls

Post by msyblade »

I do not know the answer to this, but here's my guess. It is likely as simple as counting how many "secret" entities are placed, compared to how many were "triggered".
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: counting secret script help pls

Post by Komag »

in the reference:
getStatistic(stat)
Returns the value of a built-in statistic. Possible statistics are: “play_time”, “monsters_killed”, “items_found”, “secrets_found”, “treasures_found”, “toorum_notes_found”, “skulls_found”, “grimrock_doors_opened”, “tiles_moved”, “pit_falls”, “melee_attacks”, “ranged_attacks”, “unarmed_attacks”, “rocks_thrown”, “spells_cast” and “potions_mixed”.
So maybe you could run that right before the end
Finished Dungeons - complete mods to play
Post Reply