The advanced features of the Heroes IV map editor can be a bit daunting, considering the lack of proper documentation. Fortunately, it's surprisingly easy to find some help with scripting, especially at the Round Table's Mapmaking Guild. But if you are looking for a good reference to help you get started, you need to take a look at Thelonius' new guide, The Basics of Scripting. He lists all the scripts found in the editor, describes what they do and how you can use them in your map, and highlights the most useful ones. The article might even provide some inspiration for your next map -- after all, how many maps out there were born with a cool idea with a script?
If you need more help with your Heroes IV map, check out the Celestial Heavens mapmaking tips section. Mapmakers such as Ururam Tururam, Charles Watkins and Vladimir Kuzmanov are waiting for you there.
If you would like to take a look at the original page visit this link:
https://www.celestialheavens.com/517
Heroes IV Scripting Guide
Heroes IV Scripting Guide
Last edited by Pol on 13 Nov 2019, 06:40, edited 1 time in total.
Scripting Guide
That is a really nice guide, great work and thanks for putting it together Thel
- Ururam Tururam
- Scout
- Posts: 163
- Joined: 06 Jan 2006
- Location: the Void
- Contact:
Scripting Guide
So you know the letters. Now write a poem!
Hoc est opus!
UT homepage: http://urtur.webpark.pl
UT homepage: http://urtur.webpark.pl
Scripting Guide
Bah! H4 is old skool. Bring on Heroes 5! *evil grin*
-------------------------------------------------------------------------------------
Acutally, this is quite a good guide, and I might use it while I wait for H5.
-------------------------------------------------------------------------------------
Acutally, this is quite a good guide, and I might use it while I wait for H5.
- DaemianLucifer
- Round Table Hero
- Posts: 11282
- Joined: 06 Jan 2006
- Location: City 17
Nice overview!
Some suggestions for changes/additions:
Combat - ghost script:
script only works when the army does not have ghosts; else the check needs to be done on another type of creature.
Conditional action - example:
the example lacks the ‘remove script’ action
Display message:
the ‘side scripts’ will be visible within the actual message (which is the function of using scripts here).
Equals – example:
This is a timed event repeating every day. Else you will not ‘get a message each first day of the week’ like is said here.
Give spell:
A spell is only added to the hero’s spellbook when the hero has the required magic skill. Along the same lines you could say that the Give skill script only works when the hero already has the specified skill or a free skillslot.
Increase current movement:
Text mentions “It decreases...” . Also, you might want to note that the script is bugged in the normal editor (but fixed in equi)
Less than – example:
1. using the triggered tab of the quest hut like this results in the quest bcoming incompletable in several common situations so is unwise. The variable should be set at the start of the game.
2. putting the quest requirement in the completion tab of the quest hut is confusing and will probably result in the quest becoming incompletable in common situations (unless the quest requirement is repeated in the requirement tab). Why not just put the requirement in the quest requirement?
Some suggestions for changes/additions:
Combat - ghost script:
script only works when the army does not have ghosts; else the check needs to be done on another type of creature.
Conditional action - example:
the example lacks the ‘remove script’ action
Display message:
the ‘side scripts’ will be visible within the actual message (which is the function of using scripts here).
Equals – example:
This is a timed event repeating every day. Else you will not ‘get a message each first day of the week’ like is said here.
Give spell:
A spell is only added to the hero’s spellbook when the hero has the required magic skill. Along the same lines you could say that the Give skill script only works when the hero already has the specified skill or a free skillslot.
Increase current movement:
Text mentions “It decreases...” . Also, you might want to note that the script is bugged in the normal editor (but fixed in equi)
Less than – example:
1. using the triggered tab of the quest hut like this results in the quest bcoming incompletable in several common situations so is unwise. The variable should be set at the start of the game.
2. putting the quest requirement in the completion tab of the quest hut is confusing and will probably result in the quest becoming incompletable in common situations (unless the quest requirement is repeated in the requirement tab). Why not just put the requirement in the quest requirement?
Are you suggesting coconuts migrate?
- Thelonious
- Round Table Knight
- Posts: 1336
- Joined: 06 Jan 2006
- Location: right behind the next one
Scripting Guide
@ Daemian
Sorry man, I just started the process some 2 weeks ago...
@ Wimfrits:
Thanks for taking out the bugs, might want to talk to AS about that, to get them out.
@ All:
Many thanks for the positive reactions
Sorry man, I just started the process some 2 weeks ago...
@ Wimfrits:
Thanks for taking out the bugs, might want to talk to AS about that, to get them out.
@ All:
Many thanks for the positive reactions
Grah!
Scripting Guide
I have this guide printed out and frequently consult it, but is a revised version likely to appear soon? (please)
RobB
- iLiVeInAbOx05
- Equilibris Team
- Posts: 788
- Joined: 21 Jul 2014
Re: Heroes IV Scripting Guide
The basics of scripting link is page not found. Any chance of getting the link fixed?Angelspit wrote: ↑19 Apr 2006, 17:50 But if you are looking for a good reference to help you get started, you need to take a look at Thelonius' new guide, The Basics of Scripting. He lists all the scripts found in the editor, describes what they do and how you can use them in your map, and highlights the most useful ones. The article might even provide some inspiration for your next map -- after all, how many maps out there were born with a cool idea with a script?
Re: Heroes IV Scripting Guide
This link should work: https://www.celestialheavens.com/517iLiVeInAbOx05 wrote: ↑14 Jan 2023, 19:54 The basics of scripting link is page not found. Any chance of getting the link fixed?
- iLiVeInAbOx05
- Equilibris Team
- Posts: 788
- Joined: 21 Jul 2014
Re: Heroes IV Scripting Guide
Ah the url had a quote on the end of it.
Who is online
Users browsing this forum: No registered users and 2 guests