Skip to content

Posts from Scripts

4.8 (8 ratings)
User Avatar
12 years ago
Auto-translated
There seems to be an issue with the program that’s supposed to read the file. Perhaps you could try reinstalling it.
In reply to RedHeavenHero
User Avatar
12 years ago
Auto-translated
RedHeavenHero
There seems to be an issue with the program that's supposed to read the file. Maybe try reinstalling it.
I knew Adobe Reader 9 was outdated. But it's not a big deal, my dad will figure it out :D Anyway, thanks for the manual! :)
User Avatar
12 years ago
Auto-translated
How can I determine the orientation of an object? For example, a portal. And not just the object itself, but even its "base" – the tiles for activation and blocking. (With non-standard rotations, such as 45 degrees, they do not rotate, unlike the object's visual representation). It's a drawback that the active tile does not determine the object's location.
User Avatar
12 years ago
Auto-translated
No way. And what would it be for? Maybe it can be replaced with something else.
In reply to RedHeavenHero
User Avatar
12 years ago
Auto-translated
RedHeavenHero
No way. And what would it be for? Maybe it can be replaced with something else.
To calculate the guard of the portal, so as not to affect other creatures on the map.
I'm currently thinking of calculating the portal itself from the turning point (coordinate point) along closed tiles forming a shape, with the active tile and from it along the coordinate towards freedom - the army.
User Avatar
11 years ago
Auto-translated
A question arose regarding the TakeAwayHeroExp function, which removes experience from heroes. Has anyone encountered a bug where, after using this function, the hero receives experience, but their level remains the same? Under what conditions does this bug occur?

Added 4 hours and 45 minutes later
Could the SetHeroesExpCoef function have influenced this bug?
In reply to RedHeavenHero
User Avatar
11 years ago
Auto-translated
RedHeavenHero
I have a question about the TakeAwayHeroExp function, which removes experience from heroes. Has anyone encountered a bug where, after using this function, the hero receives experience, but their level remains the same? Under what conditions does this bug occur?

Added after 4 hours and 45 minutes
Perhaps the SetHeroesExpCoef function could have influenced this bug?

I have encountered this and even described it somewhere here. This function glitches if it removes experience from a hero while that hero is simultaneously gaining experience after a battle. In general, you need to add a pause using Sleep and only then remove the experience.
In reply to MasteR
User Avatar
11 years ago
Auto-translated
MasteR
I've encountered this issue and even described it somewhere here. This function glitches if it removes experience from a hero while the hero is simultaneously gaining experience after a battle. Basically, you need to pause using Sleep and only then remove the experience.
An interesting point is that the hero doesn't gain any experience in battles due to the SetHeroesExpCoef(0) function. The coefficient only becomes =1 after the battle and the experience has been removed.
In reply to RedHeavenHero
User Avatar
11 years ago
Auto-translated
RedHeavenHero
An interesting point is that the hero doesn't gain any experience in battles at all due to the SetHeroesExpCoef(0) function. The coefficient only becomes =1 after the battle and the experience is deducted.

It seems the game doesn't care about the coefficient...

I have these questions: how do I reserve a scripted hero? And how do I specify a particular arena in StartCombat? I tried writing a path like "/Arenas/CombatArena/FinalCombat/FinalCombat.(AdvMapTownCombat).xdb#xpointer(/Arena)", but that's obviously not it. I need an arena with an Inferno castle, and ideally, an arena from the last mission in the original campaign.
In reply to MasteR
User Avatar
11 years ago
Auto-translated
MasteR
apparently, the game doesn't care about the coefficient...

I have these questions: how do I reserve a scripted hero? And how do I specify a particular arena in StartCombat? I tried writing a path like "/Arenas/CombatArena/FinalCombat/FinalCombat.(AdvMapTownCombat).xdb#xpointer(/Arena)", but that's obviously not it. I need an arena with an Inferno castle, and ideally, an arena from the last mission in the original campaign.
Thank you. No matter how many times I check, the bug doesn't manifest itself; only players in the forum wrote about it, so I can't check it myself.

You can reserve a scripted hero by temporarily placing a mod that unlocks these heroes in the data folder. There is also another option: create a non-scripted hero, in players>player_number>ReservedHeroes (property tree), click "..." on the desired hero, and select Shared with the scripted hero.
Combat arenas are objects of type AdventureFlybyScene.
User Avatar
11 years ago
Auto-translated
By the way, a question about the StopTrigger function. Doesn't it do absolutely nothing?
In reply to RedHeavenHero
User Avatar
11 years ago
Auto-translated
RedHeavenHero
By the way, a question about the StopTrigger function. Doesn't it do absolutely nothing?

Thanks, I'll try it. Regarding StopTrigger - it might do something, but in my opinion, it's useless.

Added 54 minutes later
Something went wrong in both cases. I reserved a hero using the second method, but when the function accesses him, the console says that a hero with that name is not reserved.

I didn't quite understand where to find the Arena. I tried a path like /Maps/CombatArenas/.../...xdb, but the console still complains. It's unclear what to write in the xpointer.
User Avatar
11 years ago
Auto-translated
Thank you, I'll try it. Regarding StopTrigger – it might do something, but in my opinion, it’s useless.
It depends on who you ask. For me, it’s a great find, especially if it really doesn’t do anything. I think I’ll implement some standard Lua functions (see sections 5.1, 5.4, 5.5, and 5.6), which the Nival Interactive developers once removed.
I encountered some issues with both points. I reserved a hero using the second method, but when the function accesses him, the console says that a hero with that name is not reserved.
Perhaps he needs to be added to the list of heroes available on the map. Who is this anyway? Does the hero refuse to appear on the first attempt?
I didn’t quite understand where to look for the Arena. I tried a path like /Maps/CombatArenas/.../...xdb, but the console still complains. It’s unclear what to write in xpointer.
You can search in the extended editor.


Voilà! The link is ready!
Attachments 1
1 file attached • Total size: 34.0 KB
In reply to RedHeavenHero
User Avatar
11 years ago
Auto-translated
RedHeavenHero
It depends on the person. For me, it's a great find if it really doesn't do anything. I think I'll add some standard Lua functions (see sections 5.1, 5.4, 5.5, 5.6) that Nival Interactive once removed.
Maybe it should be added to the list of heroes available on the map. Who is this anyway? Does the hero not want to appear right away?

You can search for it in the advanced editor.


Voilà! The link is ready!

I'll try now.

The hero is Warlord. I enter his script name – "Kha-Beleth." I think maybe I should try giving him another name…



)
Attachments 1
1 file attached • Total size: 6.2 KB

Statistics

Welcome our newest member: recijeb