***** Updated on December 08, 2018 *****
This script is now part of the Unknown Mod.
See this thread: [Unknown Mod] General Informations
I wanted to make shrines of "better strategic locations" on the adventure map, by making them restore magic points when visited.
That's what they do now with this script, and at the same time, the hero can buy a magic book at any shrine if he does not have one.***** Updated on October 04, 2018 *****
I added tweaks to some secondary skills (what is possible, for now, with Project Ironfist tool).
I added the possibility to "forget" the secondary skill learned at any witch's hut.
All is not perfect, for example, the hero must leave the square where the witch's hut is located to decide whether or not to keep the secondary skill he has just learned, but it is not possible to do otherwise with what is available for now with the Project Ironfist tool.
Nevertheless, I encounter some problems with this script.
First, the "shrineVisitedWeek" and "secondarySkillLevel" tables are not saved in the save file, I do not know if it should work in this version of the program.
Second, the script is designed to work globally with all heroes (and even AI heroes), but that does not seem to work, AI heroes do not fill the "shrineVisitedWeek" table when they visit a shrine.
I'd like to know more about this, how is it handled now, because I'd like AI heroes to also get the bonus when they visit a shrine.
If Darmani or someone from the team could tell me about it, that would be nice.
Download - GitHub: See this thread: [Unknown Mod] General Informations
-- This script has been tested with Ironfist version 1.3.0
-- Script Name: _MapName.MX2.lua (temp)
-- Script version: v0.3 - 20181004 (temp)
-- Map Name: _MapName.MX2 (temp)
-- Author: Unknown_Hero (LeHerosInconnu on GitHub)
-- This script is designed to work in a global way with any scenario. Since Project Ironfist does not yet support global scripts, you will have to rename this script with the name of the scenario each time you want to play another scenario, for example, rename "_MapName.MX2.lua" to "ENROTH.MP2.lua" to use the script with ENROTH scenario.
-- I suggest you play on small maps at the moment because the autosave time is too long and hard to bear.
-- What it does:
-- The hero without Magic Book can buy one at any shrine.
-- Once a week, the hero recovers some spell points when he visits a shrine.
-- Tweaks: Mysticism gives additional spell points each day on the adventure map and at the start of each combat.
-- Tweaks: Navigation also generates gold every turn.
-- Tweaks: Basic Estates, small adjustment to stay better than Basic Navigation.
-- The hero can choose whether or not to keep the secondary skill he learns at any witch's hut when he leaves it.
-- Problems encountered:
-- The table "shrineVisitedWeek" is not saved in the save file.
-- The table "shrineVisitedWeek" is not filled by the heroes controlled by the AI player (if the two players are controlled by human players, it works fine).
-- The table "secondarySkillLevel" is not saved in the save file.
-- How to make "Advanced Message Box" work like "Question Box"?
-- Do heroes controlled by the AI player get the same bonuses (they don't fill the table)?
-- All options are enabled by default and can be turned off individually, set to "0" to turn the option off.
-- You can also change the values at your convenience.