Skip to content

Posts from Scripts

4.8 (8 ratings)
11 years ago
Auto-translated
I need a script that, when all artifacts are delivered to the prophet's hut, registers a victory.

Added 5 hours and 18 minutes ago
In general, I need a script that, upon entering the city with the artifacts of Sar-Iss, registers a victory.
In reply to Аскет2
User Avatar
11 years ago
function visitTown(hero)
if
HasArtefact(hero, ARTIFACT_ROBE_OF_MAGI) and
HasArtefact(hero, ARTIFACT_STAFF_OF_MAGI) and
HasArtefact(hero, ARTIFACT_CROWN_OF_MAGI) and
HasArtefact(hero, ARTIFACT_RING_OF_MAGI)
then
Win()
end
end

Trigger(4, 'имягорода', 'visitTown')
User Avatar
11 years ago
Auto-translated
Good day! I recently replayed Heroes 5: Tribes of the East, and it made me want to create my own campaign. Could you please tell me how to create the initial and final cutscenes?
User Avatar
11 years ago
Auto-translated
/topic/3747/
This topic contains a lot of information.
In reply to Ment
User Avatar
11 years ago
Auto-translated
Ment
/topic/3747/
There's a lot of information in this thread.
Thank you so much! And one more thing: so that it doesn’t get boring for experienced mapmakers like you, could you send me a manual in Russian? Because I only have the English version
In reply to inQizitOr
User Avatar
11 years ago
Auto-translated
inQizitOr

Sorry, but the description of script functions in Russian doesn't work.
Unpack it from the archive. It opens with a program like "Excel".
User Avatar
11 years ago
Auto-translated
Hello everyone! I'm a beginner mapmaker. I want to create my own campaign, but I'm facing some HUGE difficulties. I don't know any scripts except for PlayObjectAnimation, and even that one doesn't work for me. I need scripts for battles between creatures on the world map, for triggering events when a hero approaches them, for displaying pop-up messages, and for mission objectives: the main hero must survive, kill all Knight units on the map, save all Orc slaves, burn down all villages, and capture a city. Also, I'm interested in how to place spell animations on the world map. Thank you in advance.

Added after 16 hours and 45 minutes
Will anyone help me?
User Avatar
11 years ago
Auto-translated
You can look at examples from other maps or even campaigns. Also, these scripts have already been mentioned several times in this thread; it would be good to search for them. I spent 10 seconds searching (message 673): /topic/at/591694/
In reply to Dyrman
User Avatar
11 years ago
Auto-translated
Dyrman
Extract from the archive. It opens with a program like "Excel".
I can't figure out this script. I need a fireball animation on the world map. I found it in the Nival campaign. I think I understand it, but what is "boom"?
Here is the script: PlayVisualEffect( FIREBALL, '', 'boom', x, y, 0, 0, GROUND );

Play3DSound( "/Sounds/_(Sound)/SFX/FireballHitMono.xdb#xpointer(/Sound)", x, y, 0);
In reply to inQizitOr
User Avatar
11 years ago
Auto-translated
inQizitOr
I can't figure out this script. I need a fireball animation on the world map. I found it in the Nival campaign. It seems like I understand it now, but what is "boom"?
Here is the script: PlayVisualEffect( FIREBALL, '', 'boom', x, y, 0, 0, GROUND );

Play3DSound( "/Sounds/_(Sound)/SFX/FireballHitMono.xdb#xpointer(/Sound)", x, y, 0);
/topic/11343/
11 years ago
Auto-translated
We need a function that allows a city to be assigned to the first player.
In reply to Аскет2
User Avatar
11 years ago
Auto-translated
Aescet2
We need a function to assign a town to the first player.
Create a region in front of the town and add a trigger. Let's say the trigger is:
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Town", "TownF")
Then write the following:
Function TownF()
SetObjectOwner("TownName", PLAYER_1);
end;
Instead of TownName, insert the name of the town, which you need to specify in the settings. (Select the town and click on the "name" field in the left panel. Write what you want. If it doesn't work, I'll write later, because I'm using my phone and don't have access to my map.
11 years ago
Auto-translated
How can I set it up so that a certain number of resources are deducted from a player on a specific day? Thanks in advance.

Statistics

Welcome our newest member: recijeb