Posts from Scripts
Auto-translated
Yeah, he created it. He added hotkeys there to make it easier.
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).
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.
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
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
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.
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.
So, what exactly is a cut scene?
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.
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)...
Well, it seems that the `MarkObjectAsVisited` command is intended to do just that (mark an object as visited)...
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.
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").