Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 4 - Lands of Axeoth > Thread: Fight vs guards for parchments (started by mugivarus in August 2026)
Fight vs guards for parchments
mugivarus
mugivarus

Tavern Dweller
posted August 02, 2026 09:26 AM

Fight vs guards for parchments

I’m currently creating a building with a special event, and I need your help. There are *Heroes of Fallen Wings* map with the building which I add. Here you can fight a guardian once a day (I’ve set up a daily calendar event for this) to win magic spell parchments. Since it’s impossible to collect spells from all schools on this map (and there are even more spells in Equilibris), I’d like to make that possible. The conditions to start the battle are: minimum level 20, you must be a true archmage (with at least the "Advanced" skill level in all 5 schools of magic), and the hero fights without army. I’m planning seven difficulty levels for the guardian (based on hero levels: 20–24, 25–29, 30–34, 35–39, 40–49, 50–59, and 60+). For now, I’m only working on the first one. For the first difficulty level (for hero level 20–25) planned reward consists of two random Level 1 parchments, one Level 2 parchment, and one Level 3 parchment. I wrote scripts for only the two Level 1 parchments. I created two separate numeric variables (ranging from 1 to 31) for these two parchments (excluding the "Speed" spell, as it is guaranteed to appear on the map). I wrote individual "if-then" statements for each number to reward different parchment. I suspect there might be a simpler way to do this, but I haven't fully mastered variables and scripting yet. It seems to work, but the problem is that during testing, sometimes awards two parchments for a victory and sometimes just one. I don't understand why. Could you take a look at the scripts? Did I do something wrong?

https://drive.google.com/file/d/1BbBEDNWHbSBSZmnhk7RJQ5-4a7Z3KjHr/view?usp=sharing

(After selecting your hero, enter the portal; the building is a tower named "Tower." It is located to your left, near the exit of the one-way portal.)
____________

 View Profile
mugivarus
mugivarus

Tavern Dweller
posted August 02, 2026 03:03 PM

This topic

I've already solved the problem; I just tend to be inattentive sometimes...
____________

 View Profile
Jump To: « Prev Thread . . . Next Thread »
Post New Poll   Post New Topic   Post New Reply

Page compiled in 0.0175 seconds