Skip to content

Posts from Scripts

4.8 (8 ratings)
In reply to Олегарх
User Avatar
13 years ago
Auto-translated
Oligarch
Is there a command to change a hero's name?

Changing the name (scripted) is only possible by creating a copy of the hero with a new name.
In reply to KioM
User Avatar
13 years ago
Auto-translated
I don't need to change the scripted name; I need to change the name that is set in the hero's properties.
User Avatar
13 years ago
Auto-translated
and this isn't done in the scripts.
In reply to Sanctuary
User Avatar
13 years ago
Auto-translated
Sanctuary
This isn't done through scripts.
I need it to change during gameplay.
User Avatar
13 years ago
Auto-translated
Could you tell me what it's for? Maybe you can just replace the heroes with teleporters, and that's it?
In reply to Ment
User Avatar
13 years ago
Auto-translated
Ment
Could you tell me what it's for? Maybe you can just replace the heroes with teleporters, and that's it?
This is an option, but then you would have to copy the army from the old hero to the new one.
User Avatar
13 years ago
Auto-translated
This is an option, but then you would have to copy the army from the old hero to the new one.
Well, it's not that difficult ;)
13 years ago
Auto-translated
How can I change the model of an object displayed on the map using a script, without causing bugs or lag, or using mods?
In reply to Polegche
User Avatar
13 years ago
Auto-translated
Polegche
How can I change the model of an object displayed on the map using a script, without causing bugs or lag, or requiring mods?
Could you provide more details?
13 years ago
Auto-translated
To be more specific, you need to place a demon on the map, which is one of the quest monsters, but it is disguised as a tree. The player can kill the demoness to make the illusion disappear, or find it themselves by listening to rumors in the tavern. The problem is that I can't change the quest type when I change the quest mob, so this task can only be accomplished by changing its model display on the map. All my attempts ended with a crash to the desktop.
In reply to Polegche
User Avatar
13 years ago
Auto-translated
Easier
To be more specific, you need to place a demon on the map, which is one of the quest monsters, but it is disguised as a tree. The player can kill the demoness to make the illusion disappear, or find it themselves by listening to rumors in the tavern. The problem is that I can't change the quest type when I change the quest mob, so this task can only be done by changing its model display on the map. All my attempts ended with a crash to the desktop.
Or create 2 objects? One demon with a tree model, and another regular demon, and when the illusion disappears, simply replace them? Of course, for the tree-demon, we remove the animation ;)
13 years ago
Auto-translated
The problem is that I can't change the quest type when I change the quest mob, so this task can only be accomplished by changing its model display on the map. All my attempts ended with a crash to the desktop.
In reply to Polegche
13 years ago
Auto-translated
Easier
The problem is that I can't change the quest type when I change the quest mob.
That's strange. It should be possible to do it with scripts.
13 years ago
Auto-translated
Here's another feature I'd like to implement. There's a caravan, but I also need to disguise it, but this time it should look like golems. (When the turn is skipped, the player will definitely be surprised when a legion crosses their path).
In reply to Polegche
User Avatar
13 years ago
Auto-translated
Polegche
The problem is that I can't change the quest type when I change the quest mob, so this task can only be accomplished by changing its model display on the map. All my attempts ended with a crash to the desktop.
What are you inventing? A real solution is given. No script-based substitutions are needed:confused::rolleyes:

Added 1 minute ago
Polegche
Here's another thing I'd like to implement. There's a caravan, but I need to disguise it too, but this time it should look like golems. (When the turn passes, the player will definitely be surprised when a legion crosses his path).
It's exactly the same. Don't forget about the animation - you need to remove it, otherwise it will crash.

Statistics

Welcome our newest member: recijeb