~ Forums of Enroth ~
Would you like to react to this message? Create an account in a few clicks or log in to continue.

~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Immortal Realms: Vampire Wars (HoMM like game)
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby Unknown_Hero 2020-09-18, 23:10

» They talked about fheroes2!
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby sirDranik 2020-09-13, 02:51

» GoG Homm2 vs fheroes2 comparison review
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby sirDranik 2020-09-11, 01:19

» Resurrection of fheroes2 with 0.8 version
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby Tibor0803 2020-09-08, 06:32

» [Enhancement] Enhancement for the information displayed when the player right clicks on an object
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby sirDranik 2020-09-07, 20:45

» Free Heroes of Might and Magic II (fheroes2) General Announcements
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby ihhub 2020-09-05, 02:34

» [Enhancement] Enhancement for Scouting secondary skill
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby Unknown_Hero 2020-09-03, 21:26

Poll
Global announcements should be:
Everlasting, 1 for each project.
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar110%[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar11100%[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar110%[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar12
 0% [ 0 ]
Total Votes : 6
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
Heroes III: The Succession Wars v0.8.1 Beta
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
Project Ironfist announcements
Introduce yourself
Welcome fellow Enrothians!

 

 [Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions

Go down 
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero

Messages : 724
Quality Points : 74
Registration Date : 2015-09-06

[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Empty
PostSubject: [Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions   [Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitime2018-09-26, 07:51

***** 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. Very Happy

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)

--  Description:
--  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.

--  Questions:
--  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)?

--  Settings:
--  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.
Back to top Go down
Unknown_Hero
Mage
Mage
Unknown_Hero

Messages : 724
Quality Points : 74
Registration Date : 2015-09-06

[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Empty
PostSubject: Re: [Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions   [Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitime2018-12-09, 10:34

***** Updated on December 08, 2018 *****

This script is now part of the Unknown Mod.
See this thread: [Unknown Mod] General Informations
Back to top Go down
 
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
~ Forums of Enroth ~ :: Modding Guild :: Heroes of Might and Magic II: Project Ironfist :: Modding and Mapmaking-
Jump to: