Skip to content

Posts from Current questions and answers regarding the map editor.

5.0 (12 ratings)
In reply to advencher
User Avatar
13 years ago
Auto-translated
advencher
I'm writing in the simplest language possible.
I create a region named qaz.
I write this:
function qaz (heroname)
if heroname == "Metlirn" then
CreateArtifact(54, 54, 20, 10, 0);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "qaz", nil);
end;
It gives an "undefined qaz" error. How do I assign the region to it?
So, before turning off the trigger, you probably need to turn it on, and indeed, you're missing an "end".
Add this to the end of your script:

end
Trigger(6,'qaz','qaz')
In reply to MasteR
User Avatar
13 years ago
Auto-translated
Juss456
I'm saying it again: you place an object in the Dungeon, for example, a column. For it, select "Shared" and scroll down to choose the object "downbridge" (there are several of them). It will help!

Added 1 minute ago

Here's how it works. I spent a long time looking for how to do this. It seems like you can unlock them somehow.

Here's a small mod; copy it to the Editor folder, replacing the existing files. Version 3.0 or higher is required. It unlocks all objects that can be found in "Shared" (or almost all of them).
Attachments 1
1 file attached • Total size: 1.0 KB
In reply to RedHeavenHero
13 years ago
Auto-translated
RedHeavenHero
Perhaps you need to enable the trigger before turning it off. And indeed, the "end" command is missing.
Add this to the end of your script:

end
Trigger(6,'qaz','qaz')

If it's not too much trouble, could you describe what should happen and in what order? I've read several manuals, but even a step-by-step example, copied exactly, with the same text output, doesn't work at all. In one, they say one thing follows another, in another, the structure is different, and in a third, they even say to use a different text encoding. I saved the script, clicked "save map," and it froze. I saved it using "save as," and it worked, which is strange. I wish I could find at least one script that works, and then I could build on that. Some advisors say to start triggers with "nil," which is just confusing. I'll try opening the console now; without it, loading the game is just a matter of luck.

Added 37 minutes later
This is all fun and games, but adding the "magic strings" to the specified, and not just the config files, didn't open the console, no matter where I copied them. The manuals from Nival are quite amusing...
User Avatar
13 years ago
Auto-translated
1) The way to open the console in Tribes of the East has changed significantly – I recommend searching in the topics of this forum; there was a detailed instruction somewhere. The old, simple method no longer works.
2)
Trigger(6,'qaz','qaz') - activates a trigger with the name 6 (REGION_ENTER_AND_STOP_TRIGGER) on the map. You need to write this command simply at the beginning of your script (not inside a function).
==
Trigger(6,'qaz',nil) - resets the trigger (after this command, it will no longer work). You need to write it inside your function when you want the specified region to stop working (calling the function).
==
function qazF (heroname)
if heroname == "Metlirn" then
CreateArtifact(54, 54, 20, 10, 0);
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "qaz", nil );
end;
end;
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "qaz", ''qazF'' );
==
This should work.
And also - check if the region name matches what you created in the editor.
13 years ago
Auto-translated
it didn't work, I'm creating a region http://upwww.ru/files/35dd55795cfab715e67efcd385e5f8aa/1625c7d6257d0bfd8179ef5224864932/1.jpg I'm writing the script from above http://upwww.ru/files/17ec2203baa555959630c24759f09afc/86de6a9ff323f61500f8188fe0e91f63/2.jpg the result in the console http://upwww.ru/files/3456b1fbc88e561d40645079a8de24a3/293d736c1212c7c34e3bb276fb6f27e4/3.jpg
when I click to check the script in the editor, the do while loop runs infinitely, causing a freeze.
In reply to advencher
User Avatar
13 years ago
Auto-translated
Almost everything is correct. You just need to write qazF in quotes or single quotes in the script, but not in double quotes:
'qazF' or "qazF", and not ''qazF''.
In reply to Heroist
User Avatar
13 years ago
Auto-translated
In Tribes of the East, the console is opened in the same way.
In the profiles folder, there is a file called autoexec_2. Add the following line to the end of the file:
setvar dev_console_password = schwinge-des-todes, on a separate line.
Then go to
C:\Users\User\Documents\My Games\Heroes of Might and Magic V — Tribes of the East\Profiles\YourProfile
There you will find the file input_a2.
In the //console section, add the following line to the end, on a separate line:
bind show_console '`'

And it will work.
13 years ago
Auto-translated
Hello everyone! I have a problem: I created one task, for example, "Capture a town within 7 days." How do I create a second main task? (The hero must survive).
User Avatar
13 years ago
Auto-translated
Similarly, add a new item to the quest menu, assign it the type OBJECTIVE_KIND_HERO_MUSR_SURVIVE, and specify the script name of the hero as the parameter (Parameters, Add).
----
To clarify: Go to MapPropretiesTree, find the string objectives->primary->playerSpecific->0->objectives. There should be one item (0) inside, which corresponds to the quest of capturing a city in 7 days (if you have changed anything there, otherwise it will simply be the "Kill-em all" quest, but that's not the main point). Add a new item there, specifically, right-click on objectives (on this objectives: "objectives->primary->playerSpecific->0->objectives"), and select Add. Then, enter the quest name (Caption), description (Description), type (Kind, I specified which one), and parameter (Parameters, right-click, Add) – the script name of the hero. You can find it by selecting the hero, pressing the spacebar, and going to the Settings tab; it will be written there as "Script name." Good luck!
In reply to RedHeavenHero
User Avatar
13 years ago
Auto-translated
RedHeavenHero
Almost everything is correct. You just need to write "qazF" in the script, using single quotes, but not double quotes:
'qazF' or "qazF", and not ''qazF''.

Oh, that was a mistake on my part, sorry. My keyboard is acting up, and the quotes aren't working properly, so I put '' =)
13 years ago
Auto-translated
I'll try to figure it out later, why does the AI start thinking for about 15 seconds before each turn? And why does it start lagging when it finds the "Tomb of the Warrior" and just stands there, doing nothing for several turns.
User Avatar
13 years ago
Auto-translated
Hmm, there's something on the map. Maybe the Necropolis has been prioritized, so it's being targeted. Or maybe it's just out of desperation.
User Avatar
13 years ago
Auto-translated
Does anyone know where I can find the models of the Haven dwellings that appear in some of the videos? I couldn't find them in the editor...
13 years ago
Auto-translated
Hello everyone. I still can't figure out the tasks, that is, how to complete them. One person even explained step-by-step how to complete the second main task, and here's what I got: In the game, some tasks have appeared, but the names and descriptions of these tasks are missing. Also, I wanted to create one task, but there are two in the game. Here are the links to the images: http://vk.com/idprototype66?z=photo100458859_298189394%2Fphotos100458859 http://vk.com/idprototype66?z=photo100458859_298189393%2Fphotos100458859
In reply to Heroist
User Avatar
13 years ago
Auto-translated
Heroist
Does anyone know where I can find the models of the Haven buildings that appear in some of the videos? I couldn't find them in the editor...
They should be in Shared; look more carefully.

Added 15 minutes later
Cok69320
Hello everyone. I still can't figure out the quests, that is, how to complete them. One person even explained step-by-step how to complete the second main quest, and here's what I got: Some quests have appeared in the game, but the names and descriptions of these quests are missing. Also, I wanted to create one quest, but there are two in the game.
Here are links to the images:
http://vk.com/idprototype66?z=photo100458859_298189394%2Fphotos100458859

http://vk.com/idprototype66?z=photo100458859_298189393%2Fphotos100458859

1) Create text files that will contain the names and descriptions of the quests and upload them to the appropriate windows: ObjectiveCaptionFileRef (name) and ObjectiveDescriptionFileRef (description). It's best to create the files using an editor.
2) In the Common section, the editor has automatically set the task to kill everyone. Go to Common, then Primary, and under number 0 is that very quest.

Statistics

Welcome our newest member: recijeb