Connection ErrorBad RequestSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
So, is it impossible to do this on a map for 8 players? I've just seen mods where neutral heroes exist, but not as objects on the map. They appeared when engaging in combat with any stack of neutral creatures. To be more precise, here's that mod: http://heroescommunity.com/viewthread.php3?TID=41303
On a map with 8 players, it's impossible to create a neutral hero as an object. If a neutral hero is only needed in combat, the StartCombat function will suffice.
On a map with 8 players, it’s impossible to create a neutral hero as an object. If a neutral hero is only needed in combat, the StartCombat function will suffice.
There was a case where I put a hero in reserve, gave him the Player_none attribute, and somehow used him as a neutral hero. I need to check again.
Perhaps I displayed a modified model of an object on the map as a hero, and then used that function.
Or, I brought him out of reserve onto the map, where he was neutral, and only then initiated combat.
Рыцарь Бездны
10 years ago
Auto-translated
Please tell me, what is wrong here? After Raileigh dies, the mission won't continue. It used to work, but now it doesn't.
I don't even understand it myself. I created two more copies of this startThread function.
In general, there are also IsabellKill and DalomKill. All 3 functions are identical in structure (except for the function names and script names of the heroes in IsHeroAlive).
Could it be that it's not working because of the duplicated functions?
The built-in and external script editors don't complain about the syntax, and I can't check the console because it refuses to open...
All other scripts work without problems, but the functions for hero death have stopped working...
Although, I noticed that the lines are not aligned properly, maybe that's the problem... I need to fix that.
OrnsteinDragonslayer
10 years ago
Auto-translated
Guys, I need some help. I started learning scripts, following the manual. I did everything as described, but it doesn't work. Here's the script: function kamillaF (heroname) (paragraph)MessageBox("Maps/SingleMissions/MyMapforVani4/Spasi.txt"); (paragraph)Trigger(REGION_AND_STOP_TRIGGER, "test", nil); end;
Hey guys, I need some help. I started learning scripts, following the manual. I did everything as described, but it doesn't work. Here's the script: function kamillaF (heroname) (paragraph)MessageBox("Maps/SingleMissions/MyMapforVani4/Spasi.txt"); (paragraph)Trigger(REGION_AND_STOP_TRIGGER, "test", nil); end;
That's it. I'm writing from my phone because I don't have internet on my PC right now. There are definitely no typos. I hope you can help.
Well, for starters, it's not REGION_AND_STOP_TRIGGER, but REGION_ENTER_AND_STOP_TRIGGER.
Add ENTER, and it should work.
OrnsteinDragonslayer
10 years ago
Auto-translated
No, nothing works anyway. Not even the trigger.
RedHeavenHero
10 years ago
Auto-translated
The last line is missing a closing parenthesis.
OrnsteinDragonslayer
10 years ago
Auto-translated
Thank you. Everything is working.
But I have a problem with the editor itself. It crashes intermittently when I open the script menu. Is there a more stable version? Because I'm getting really frustrated. Right now, for example, it's completely frozen. I had to restart my PC. Can't I write scripts without using the editor?
Added 22 minutes later Okay. It seems to have calmed down. I have a question. How do I trigger a battle with units that I specify after a message is read? Okay. And how do I make it so that after reading the message, a hidden hero on the map (who already has an army assigned) teleports to me and a battle begins?
Ment
10 years ago
Auto-translated
Maybe it's not working because of duplicated functions?
It's better not to duplicate them.
I don't understand it myself.
Well, it's better to understand. Maybe you can provide the entire script? Check the console to see what it outputs...
But here's the problem: I have issues with the editor itself. It crashes intermittently when I open the script menu.
You're lucky; it always crashed for me... Edit the scripts with Notepad or a dedicated script editor if it bothers you again.
And how do I make it so that after reading a message, a hidden hero on the map (who already has an army) teleports to me and a battle begins?
Read about the MessageBox and SetObjectPosition functions in the manual. It's not complicated. MessageBox("path to the message", TeleporateHero); function TeleporateHero() SetObjectPosition("script name of the enemy hero", x coordinate, y coordinate, on the surface or in the Dungeon); MakeHeroInteractWithObject("script name of the enemy hero", "script name of your hero"); end;
You can read more about the MessageBox and SetObjectPosition functions in the manual.
OrnsteinDragonslayer
10 years ago
Auto-translated
Yes, I understand. Thank you.
And are the x and y coordinates for the location FROM WHICH to teleport, or TO WHICH to teleport? I think it's TO WHICH, but it's best to clarify for reference. Otherwise, it didn't work out in the past.
Ment
10 years ago
Auto-translated
Where. And I added a little more there to make the battle happen.
Well, it's better to understand. Maybe you can provide the entire script? Check the console to see what it outputs...
You're lucky; it always crashed for me... Edit the scripts with Notepad or a dedicated script editor if it bothers you again.
Read about the MessageBox and SetObjectPosition functions in the manual. It's not complicated. MessageBox("path to message", TeleporateHero); function TeleporateHero() SetObjectPosition("script name of the enemy hero", x coordinate, y coordinate, on the surface or in the Dungeon); MakeHeroInteractWithObject("script name of the enemy hero", "script name of your hero"); end;
You can read more about the MessageBox and SetObjectPosition functions in the manual.
Regarding my question, I don't know what it was. I restored a backup of the map, and everything works there. Apparently, I messed something up somewhere. Oh well...
And how do I prevent them from being duplicated? I have no idea how to make a defeat occur when one of the three heroes dies in a single function.
Ment
10 years ago
Auto-translated
Could you please tell me how to prevent them from being duplicated? I have no idea how to implement a defeat condition based on the death of one of three heroes within a single function...
Well, you can put a loop into one function, and within the loop, run a check not for the death of one hero, but for the death of any of the three (either using or, or by placing several if statements in one loop).