literacy skill and randomized scrolls of various knowledge

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
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

literacy skill and randomized scrolls of various knowledge

Post by cromcrom »

I am in the process, between two bug hunts, to add a literacy skill to Rigale. The idea is to spawn really randomized scrolls as loot, and if the player can read them (literacy skill check involved), give the party various XPs.
Every thing is going fine so far. Book is defined by its subject ( from global XP scrolls, to specific skills XP scrolls, to global skill XPs, to specific item crafting XP scrolls), its size (time needed to read it), its complexity (how well written it is, and easy to read), and its interest (from futile to deeply interesting...)

With various literacy/skill tests, the player might gain some XPs.

However, to simulate the time it takes to read a book, I would like to remove food from every characters when the book is read (or prevent from reading if not enough food).
Any idea to simulate this ?
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: literacy skill and randomized scrolls of various knowled

Post by cromcrom »

Of course, so simple, thanks for the info, I will give it a look.
A trip of a thousand leagues starts with a step.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: literacy skill and randomized scrolls of various knowled

Post by minmay »

AndakRainor wrote:The most natural way would be GameMode.advanceTime(amount) I believe.
That doesn't cost nutrition. In fact, it doesn't cost nutrition (or advance the time of day) for the party to stand in one place and wait, either; they have to move, attack, rest, etc.

This is incredibly simple though because all you have to do is use Champion:consumeFood().
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
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: literacy skill and randomized scrolls of various knowled

Post by cromcrom »

Indeed, I have some custom permanent time advancement scripts I will need to check. They might be buggy, so food use is indeed for me a very simple way, and probably bug free, way to simulate the passing of time.
I will take a look at both.
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: literacy skill and randomized scrolls of various knowled

Post by cromcrom »

Added both systems. Everythings work as intended, highly randomized and literacy skill relevant.
A trip of a thousand leagues starts with a step.
Post Reply