~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» [H3SW 0.8.1] The Ultimate Mug of Ale
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby Ctesiphon Today at 06:27

» Lands of Enroth 2018 & 2019
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby GodRage Today at 06:14

» Heroes of Might & Magic 2 Civilization 2 Mod!
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby GodRage Today at 05:15

» [H3SW 0.8.1] A Crossroad Tavern
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby GodRage Yesterday at 21:23

» [H3SW 0.8.1] Migration
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby Ctesiphon Yesterday at 20:46

» play online
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby YhyJasne Yesterday at 09:30

» Lands of Enroth - Maps system
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Icon_minitimeby Orzie Yesterday at 00:45

Poll
"Wait" in HoMM2?
Yes
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar1180%[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar12
 80% [ 55 ]
No
[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar1120%[Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions Redbar12
 20% [ 14 ]
Total Votes : 69
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW: Dwelling Development
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
H3SW Map List: Work in progress
Welcome fellow Enrothians!
Heroes III: The Succession Wars v0.8.1 Beta
Enrothian Fan Art
Commanders?

Share
 

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

Go down 
AuthorMessage
Unknown_Hero
Vampire
Vampire
Unknown_Hero

Messages : 471
Quality Points : 63
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
Vampire
Vampire
Unknown_Hero

Messages : 471
Quality Points : 63
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
 Similar topics
-
» Help with snow script and java.
» Script reformat is needed
» Radio script on every pages
» Any New Java Script removes Chatbox from Toolbar?
» Malware in Gzip script = Avast blocking forum

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: