Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
Auto-translated
Yeah, he created it. He also assigned hotkeys to make it easier to use.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
Auto-translated
Ment
Yeah, he created it. He added hotkeys there to make it easier.
But the field for delay cannot be edited. Also, when launching, a black screen appears, and the dialogue and everything else are missing.
User Avatar
Auto-translated
Sorry, in that dialog box, it's called "Pause after actor's replica."
 

К А
Стикеры GBF в Telegram
User Avatar
Auto-translated
Need help with scripts:
1) The simplest thing. Could someone upload the official manual? It's not included in the gold edition.
2) I need a script that:
a) plays a video
b) after the video finishes playing, the enemy hero switches to your side with all their experience, artifacts, abilities, and at least some army (they can't be without an army).
Нам нужен мир:smile15: ...Желательно весь!:smile14:
User Avatar
Auto-translated
after launching the scene, there is a command:
void StartDialogScene(spDialogSceneXDB, sCallback = nil, sSaveName = nil);
1. The first value is the scene itself (created in the editor; I haven't had time to try it yet).
2. The second value is the function to be executed after the scene.
3. It seems to force an autosave.

The following example might satisfy your requirements:

StartDialogScene(Scene01.(format).xdb, HeroTransferFunction, nil);

function HeroTransferFunction()
    SetObjectOwner(HeroName, PLAYER_1);
end;

If something is wrong, let more experienced users in this matter add to it.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
In reply to Вестник
Auto-translated
Messenger
Need help with scripts:
1) The simplest thing. Could someone upload the official Manuals? I don't see them in the gold edition.
2) I need a script that:
a) plays a video
b) after the video plays, the enemy hero switches to your side with all their experience, artifacts, abilities, and at least some army (they can't be without an army).


1) Both on this forum and on Hero's Corner (ag.ru) there are links to various script Manuals (by Novik; by Ogo; the official documentation package from the developers);

2) a) StartDialogScene (starts a dialog scene) or StartCutScene (starts a video);
b) There are also variations here - you can use SetObjectOwner (changes the ownership of an object - i.e., this function can also be used to change the ownership of static objects on the map - for example, cities); you can use DeployReserveHero (materializes a hero on the map who is in the player's reserve); finally, you can use SetPlayerTeam (sets the player's team) - I think the script is chosen after the screenwriter has decided on the plot
In reply to antonag07
User Avatar
Auto-translated
what is a cut scene and how do I create one?
I pause after a line of dialogue, but not much changes, oh well, maybe I'm setting a small value. But regarding the black screen - when it starts, only the dialogue is visible.
User Avatar
Auto-translated
A dark screen simply means that your camera is not pointed in the right direction. It has moved somewhere behind the scene, and that's all.
 

К А
Стикеры GBF в Telegram
In reply to Ment
User Avatar
Auto-translated
Ment
A dark screen simply means that your camera is not pointed in the right direction. It has moved somewhere behind the scene, and that's all.
When I set it using the 'E' button (new camera), it seems to work fine. But it turns out...
User Avatar
Auto-translated
I don't know. I can't say for sure, I haven't had any problems with this method...
 

К А
Стикеры GBF в Telegram
Auto-translated
Hello everyone. I need some help :)
The command
MarkObjectAsVisited (object, hero);
should mark 'object' as visited for 'hero', but for some reason, the object is marked as visited for other heroes as well, even those who haven't interacted with it yet. What could be the problem? :smile32:
The object is disabled, by the way.
In reply to JonnyP
Auto-translated
JonnyP
Hello everyone. I need some help :)
The command
MarkObjectAsVisited (object, hero);
should mark 'object' as visited for 'hero', but for some reason, the object is marked as visited for all other heroes as well, even those who haven't interacted with it yet. What could be the problem? :smile32:
The object is disabled, by the way.


Well, it seems that's what the MarkObjectAsVisited command does (marks the object as visited)...
In reply to antonag07
Auto-translated
antonag07
Well, it seems that the `MarkObjectAsVisited` command is intended to do just that (mark an object as visited)...
No, you don't understand. The command should only mark the object as visited for the hero who visited it, but for some reason, it's marking it for all heroes.
In reply to JonnyP
Auto-translated
JonnyP
No, you don't understand. The team should make the object accessible only to the hero who visited it, but for some reason, it makes it accessible to everyone.
I understand that – it's just that for the command to work (MarkObjectAsVisited), the object must be turned off – that's why other heroes can't interact with it.

Added 1 minute ago
P.S. I suggest doing a "trick" – turn off the object using a command (through a script), and not using the editor (for example, when the desired hero enters a specific region, the object is "turned off").

Statistics

Welcome our newest member: Emil