Heroes IV Scripting Guide

Feedback for the articles that appear on Celestial Heavens.
User avatar
Angelspit
CH Founder
CH Founder
Posts: 6746
Joined: 18 Nov 2005
Location: Angelspit
Contact:

Heroes IV Scripting Guide

Unread postby Angelspit » 19 Apr 2006, 17:50

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
Last edited by Pol on 13 Nov 2019, 06:40, edited 1 time in total.
I'm on Steam and Xbox Live.

User avatar
Orfinn
Round Table Hero
Round Table Hero
Posts: 3325
Joined: 06 Jan 2006
Location: Norway

Scripting Guide

Unread postby Orfinn » 19 Apr 2006, 17:58

That is a really nice guide, great work and thanks for putting it together Thel :D

User avatar
Ururam Tururam
Scout
Scout
Posts: 163
Joined: 06 Jan 2006
Location: the Void
Contact:

Scripting Guide

Unread postby Ururam Tururam » 19 Apr 2006, 19:56

So you know the letters. Now write a poem! :)
Hoc est opus!
UT homepage: http://urtur.webpark.pl

User avatar
Kalah
Retired Admin
Retired Admin
Posts: 20078
Joined: 24 Nov 2005

Unread postby Kalah » 19 Apr 2006, 22:29

Nice guide - I'm sure lots of mapmakers will find a use for it.
In War: Resolution, In Defeat: Defiance, In Victory: Magnanimity, In Peace: Goodwill.

User avatar
Furay
Peasant
Peasant
Posts: 69
Joined: 06 Jan 2006

Scripting Guide

Unread postby Furay » 20 Apr 2006, 02:27

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.

User avatar
DaemianLucifer
Round Table Hero
Round Table Hero
Posts: 11282
Joined: 06 Jan 2006
Location: City 17

Unread postby DaemianLucifer » 20 Apr 2006, 06:15

Nice guide.I just wish it was made a couple of years ago :S

User avatar
wimfrits
Round Table Knight
Round Table Knight
Posts: 2050
Joined: 06 Jan 2006
Location: Utrecht, the Netherlands

Unread postby wimfrits » 20 Apr 2006, 09:04

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?
Are you suggesting coconuts migrate?

User avatar
Thelonious
Round Table Knight
Round Table Knight
Posts: 1336
Joined: 06 Jan 2006
Location: right behind the next one

Scripting Guide

Unread postby Thelonious » 20 Apr 2006, 14:51

@ 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
Grah!

declan935
Lurker
Lurker
Posts: 1
Joined: 04 Sep 2006

Scripting Guide

Unread postby declan935 » 04 Sep 2006, 07:49

good job guys

User avatar
RobB
Scout
Scout
Posts: 160
Joined: 16 Nov 2006
Location: Perth W Australia

Scripting Guide

Unread postby RobB » 06 Dec 2007, 05:58

I have this guide printed out and frequently consult it, but is a revised version likely to appear soon? (please)
RobB

User avatar
iLiVeInAbOx05
Equilibris Team
Equilibris Team
Posts: 788
Joined: 21 Jul 2014

Re: Heroes IV Scripting Guide

Unread postby iLiVeInAbOx05 » 14 Jan 2023, 19:54

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?
The basics of scripting link is page not found. Any chance of getting the link fixed?

User avatar
Angelspit
CH Founder
CH Founder
Posts: 6746
Joined: 18 Nov 2005
Location: Angelspit
Contact:

Re: Heroes IV Scripting Guide

Unread postby Angelspit » 16 Jan 2023, 13:01

iLiVeInAbOx05 wrote: 14 Jan 2023, 19:54 The basics of scripting link is page not found. Any chance of getting the link fixed?
This link should work: https://www.celestialheavens.com/517
I'm on Steam and Xbox Live.

User avatar
iLiVeInAbOx05
Equilibris Team
Equilibris Team
Posts: 788
Joined: 21 Jul 2014

Re: Heroes IV Scripting Guide

Unread postby iLiVeInAbOx05 » 17 Jan 2023, 15:45

Ah the url had a quote on the end of it.


Return to “Articles”

Who is online

Users browsing this forum: No registered users and 2 guests