Auto-translated
Another question regarding the model: during battle, the model is replaced, but the attack animation is missing.
New here? I'm Roha — want a quick tour?
For the author, it opens because there are copies and a cache of the map in the game folders.
What error does the editor give you when opening this map?
Hello everyone, could you please tell me how to put a hero on a ship?
Manually enter the coordinates of a point on the water where you want to place him. At the beginning of the game, a ship will automatically be created under the hero.
The editor has stopped working; Windows is looking for a way to fix the problem. It's halfway there. I have a licensed version of Windows 7. Core-3 processor, 8 GB of RAM, GeForce GTX 1050 Ti, Heroes is patched and licensed. This is already my fifth computer, and it didn't work on any of the previous ones either, neither in XP nor in 10.
function arena_level_up_pl1F (hero)
MakeHeroInteractWithObject(heroname, "monster_arena1_pl1");
end;
Trigger(OBJECT_TOUCH_TRIGGER, "arena_level_up_pl1", "arena_level_up_pl1F");
And no one can help me; why isn't this nonsense working?
But no one will help me, why isn't this nonsense working?
Can anyone help me understand why this isn't working?
function arena_level_up_pl1F (hero)
MakeHeroInteractWithObject(heroname, "monster_arena1_pl1");
end;
Trigger(OBJECT_TOUCH_TRIGGER, "arena_level_up_pl1", "arena_level_up_pl1F");
heroname definitely needs to be replaced with hero. If that doesn't help and there are no errors in the object names, then it's possible that you can't interact with the monster_arena1_pl1 object, or that you can't attach OBJECT_TOUCH_TRIGGER to arena_level_up_pl1.
Try enabling the console; there are instructions online on how to do it. It will be very helpful.
heroname definitely needs to be replaced with hero. If that doesn't help and there are no errors in the object names, then it's possible that you can't interact with the monster_arena1_pl1 object, or that you can't attach OBJECT_TOUCH_TRIGGER to arena_level_up_pl1.
Try enabling the console; there are instructions online on how to do it. It will be very helpful.
It seems I have a very rare case.
1) I've already used this command and wrote "heroname," and it works, and still does.
2) The console doesn't say anything about my error, either when interacting with the object or afterward.
You would be better off listening to advice and fixing obvious errors instead of saying that something works somewhere. The function receives the hero variable, so it should be used further. Somewhere else in the code, you accidentally created a global variable named heroname and assigned it the name of the main hero. That's why, during testing, it seemed to you that this function worked as it should. But it's just a coincidence that can disappear at any moment.
I described debugging methods in my FAQ. To make the console work at full capacity, you need to use debug messages. Before/after/inside the function, before/after the trigger.