So here goes:
(credit for these go to rife)
For some reason, the editor lacks the ability to detect the difficulty level the player chooses at the beginning of the map or campaign, but this simple script (courtesy of Ururam Tururam) when executed at the beginning of the first day, will allow you to accurately gauge it anyway:
difficulty=5
if gold(human)>4000: difficulty=4
if gold(human)>9000: difficulty=3
if gold(human)>14000: difficulty=2
if gold(human)>19000: difficulty=1
Preventing 'Month of' creatures
'Month of' creatures populate at the sites you place nuetral creatures, and only if the 'month of' creature is of the same alignment as the original nuetral stack. If you have nuetrals guarding creature dwellings, 'month of' creatures can render them useless until cleared. Perhaps you don't want a necromancer player getting an unfair advantage due to repopulating creature stacks. Whatever your reason, you can prevent 'month of' creatures by changing the owner of the nuetral stack in the Defeated event.
Destroying nuetral or AI controlled stacks without fighting
For storyline purposes, you might want to place a hero or army within a player's sight, but have them disappear without having the player engage them in combat. I.e. the big bad guy shows up at the beginning of a map with an impossibly huge army to taunt the player before telling him to meet him at his castle... if he dares. Then the big bad guy disappears.
To make this happen, make this triggerable event on the big bad guy's army:
This Army fights 10000 Black Dragons
Then when you want him to disappear, just call the trigger.
Recursive loops
Let's say you want to set up a quest hut that will pay the player 10000 gold for every cart of ore he has. You've scattered dozens of them across the map, but you need an easy way to pay him the correct amount based on how many of the artifact he has. The way to do this is so: set up the quest hut and check if the player has a cart of ore. If so, trigger the following event.
Triggerable Event PAY THE MAN
Take artifact Cart of Ore
Give current player 10000 gold
If current player has Cart of Ore, Trigger custom event PAY THE MAN
The event will continue to pay until the player has no more carts of ore. Similar events can be used to perform an action up to VARIABLE times. For instance, a hero has gone hunting savage gnashers in a set region. You want to increase his experience by 1000 points for every gnasher killed, so you increase the variable PREY by one for every gnasher in a stack (in it's Defeated event). When he visits the Hunter's Lodge, it triggers the following:
Triggerable Event HUNTER'S REWARD
Set PREY=PREY-1
Increase experience by 1000
If PREY>0, Trigger custom event HUNTER'S REWARD
(credit for these goes to Ranke Fne)
Here's one to improve AI according to the level difficulty you play. (I used that in my new campaign, The Gambler - to see it in practise especially check map3 in that campaign):
First use the DIFFICULTY variables as mentioned,
Champion: DIFFICULTY=5
Novice : DIFFICULTY=1 etc.
On a random town you put these scripts:
TRIGGERED EVENT (in town, called "TOWN#1_CREATURES"):
INCREASE DWELLING POPULATION OF 2nd 3rd level CREATURE by 3
A TIMED EVENT in town each 7th day (and only if AI owns that town!!!!):
TRIGGER TOWN#1_CREATURES
TRIGGER TOWN#1_CREATURES
IF DIFFICULTY>2 THEN TRIGGER TOWN#1_CREATURES
IF DIFFICULTY>3 THEN TRIGGER TOWN#1_CREATURES
IF DIFFICULTY>4 THEN TRIGGER TOWN#1_CREATURES
This way on ADVANCE level you add 3x3=9 3rd level 2nd dwelling creatures, on CHAMPION you add 5x3 = 15 creatures.
You can easy adjust it so if fits the overall gameplay by setting the TIMED EVENT to 5th day instead of 7th day etc.
You can copy a town to the OBJECT PALETTE and copy it from there if you want it on several towns. Just remember, in case you copy these scripts to another town, that you should change the name of the TRIGGERED event to TOWN#2_CREATURES etc., else you'd add extra creatures to the first town (TOWN#1_CREATURES).
I use INCREASE POPULATION instead of GIVE x ANGELS, because this way I will always give the creatures that fits that particular town.
Just remember to give AI extra money too, else he will just be able to hire a lot of creatures but won't have to money for it. Also set AI PROPERTIES in the town to "VITAL" or "HIGH" else AI might not hire all creatures.
You can of course add anything else than 3rd level creatures, the higher creatures you add the more courage the AI will be and attack your towns more often. For instance in The Gambler, map2, I only add level 1 and level 2 creatures, so that AI attacks fewer towns. I even cancelled all level 4 buildings in the AI start town to reduce AI agressiveness. To understand this, you should notice the gameplay in map2 versus map3 in The Gambler.
Towns with 2 level 3 dwellings or 2 level 4 dwellings:
Make a TIMED EVENT or TRIGGERED EVENT or CAPTURED EVENT etc:
CONSTRUCT 1ST LEVEL 3 DWELLING
CONSTRUCT 2ND LEVEL 3 DWELLING
The game will crash if you click the fort to hire creatures. The reason why it crashes is that there has to be 1 free creature circle (meaning only 5 out of 6 creature hire slots-circles, if you know what I mean).
So you can just cancel a 1st level dwelling and the game does not crash!
Same goes for level 4 dwellings.
If you want all level 3 and 4 dwellings = 4 dwellings, you can only have 1 more dwelling from the level 1 and 2 dwellings. 5 in all.
I haven't tried nature towns (they have the creature portal) and that might give problems !?!?
I'm using this in a death campaign, because most people just hire vampires and not venom spawns. The same goes for order towns. People always hire genies, not nagas.
(credit goes to Winfrits)
You would have to make the action on either the first, most powerful or least powerful hero in an army. Of course, you'd have to check presence of one or more heroes first.
A quest like that can be found in the quest hut east of 'The Frog' in scenario 'The Frog' in the AWoT campaign, if you want an example.
This one is not recursive and cannot be made recursive, but if the check is performed on something not hero-specific, like possession of a cart of ore, it can be a loop.
On the 'triggered script' of a quest hut, you'd have something like
IF army has cart of ore
TAKE ARTIFACT cart of ore
GIVE EXPERIENCE 23 TO first hero in this army
ELSE
DISPLAY give me a cart of ore to get a huuuuuuge exp bonus
(credit goes to ScarlettP)
Hey! I just stumbled across an answer to Veldrynus's question from quite some time ago. You CAN make a cliff! It's just rather difficult and not very practical. If you increase the elevation on your source map, then copy it over to a blank, flat map... it makes a cliff.
(my own

The ongoing circle of post 1 doesn't work with creatures (if anyone wanted to try that) for the simple reason that creatures can't be taken or checked in a map-triggered event (that is out of a questhut) and in a questhut you can't trigger it over and over.
[added Nov 14 2005 11:47AM]
In Reply To #1
Oh, another thing, I thought of a way to get a timed event after a triggered one.
If you want a text message (or anything else) after a triggered scipted, you should use a numerical value in the trigger and set boolean, like 'time' set with number that reprisent the number of days + 1.
The boolean makes sure the days start ticking away AFTER you the trigger. So like this (for 3 days after)
Trigger1:
Set Boolean variable: days to true
Set Numerical Value: time to 4
Timed event 1:
Conditional action -
If: 'days'
Then: Set 'time' to time -1
Else: do nothing
Timed event 2:
Conditional action -
If: 'time' = 1
Then: Set boolean 'time_done' to true
Else: do nothing
Trigger2:
Conditional action -
If: 'time_done'
Then: do what you want to do in events
Else: do nothing
See this tread on the old forum for more