Skip to content

Posts from Stratholm, a duel map for 2 heroes, question regarding ERM.

No ratings yet — be the first to rate!
User Avatar
8 years ago
Auto-translated
Off-topic: Hello, friends. I'm a big fan of the Heroes series, especially parts 3 and 3.5. I made a lot of maps back in the day, but unfortunately, I didn't distribute the beautiful and large ones anywhere. I figured out ERM scripts myself and sometimes read the forums, so thank you to heroesworld - the forum.

Right now, I'm working on a map called Stratholme - it's a bit of a story-driven take on a campaign from Warcraft III. I've managed most of the scripts, but I still can't get one thing to work correctly, which is preventing me from finishing the map.
Map: L
Number of players: 2 / 1 Player vs AI
Objective: Save 20,000 peasants

The essence of the question is this: The Player and the Computer can only fight with one hero each; each is allowed only one hero, no more (all heroes on the map are disabled in the settings except for these two, one controlled by the player, the other by the computer; naturally, the tavern is empty for hiring). The computer opponent's hero is not re-purchased by the AI in the tavern after being killed or fleeing. How can I make a script so that after each time the same hero is killed, the computer buys him back in the tavern, specifically him, within a week or immediately the next day? How can this be done? Can any experienced ERM masters please advise? :)

Statistics

Welcome our newest member: recijeb