Skip to content

Scripts for beginners.

#94
Auto-translated
Dear masters "RedHeavenHero" and "Ment", I need your help! I have 2 tasks:
-1- I'm creating a map for a multiplayer game with 2 to 8 players, with teams possible. I need to implement the following condition: when a player, for example, Player 1, attacks an enemy player's Castle (Player 2) and wins the battle, that Castle should turn into a pile of ruins. Then, any player whose hero "touches/enters" this pile of ruins should receive a message: "Do you want to rebuild a Castle of your Faction for N resources?" and be offered a choice of "yes" or "no". If the answer is "yes", N resources are deducted from that player, and a Castle of that player's Faction, at the initial level, appears in place of the pile of ruins. If there are not enough resources, a message "not enough resources" should be displayed. Otherwise, it gets tedious to control Castles of alien Factions, and it's difficult to manage units and dangerous to give them to the enemy!
-2- (not entirely fair) In the very first version of Heroes 5, the "Humans" Faction could retrain units without any restrictions, as long as there was enough gold. In subsequent versions, they introduced a maximum limit of 14 units per week, which makes me very sad((((! I need to remove this limit for all players who play as the "Humans" Faction.
---- These should be 2 separate scripts, or implemented in some other way, so that I can apply them separately or together. I'm going to play on a licensed version over a home network or on one computer. It would be great if it were possible to play this modified map with a friend over the internet.
---- Since I value the time of competent/experienced people, I am willing to pay a reasonable amount for "technical support" for these tasks. As an option, you can provide a Qiwi wallet and the amount. In Heroes 4, where you could create scripts from ready-made blocks, I figured it out myself, but here it takes a long time to learn, and there are many questions. Since I have been interested in the game for a long time, there may be more questions/tasks in the future. It would be good to meet on Skype or Teamspeak for possible explanations.