| Fight vs guards for parchments | |
|
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.)
____________
|
|
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...
____________
|
| |
|
|