Skip to content

Help me create a hero based on this unit.

User Avatar
#6
Auto-translated
Немеzида
Is it possible to create a hero from the Rakshasa Raja unit?
How to turn a game creature into a hero?

You need to dig around in data.pak.
The most tedious part will probably be moving files from data to the mod because they are all protected from editing, and you will have to open them, change them, and save them somewhere else...
On the other hand, there are only 3 files: the hero, the character of the creature, and AnimSet.

There is no need to disable the creature, so we immediately move on to the hero.

Stage 2

Transforming the hero
The academic hero is located in data.pak in \MapObjects\Academy. Let's replace Jalib because he is the least magical. This is the file Tan.(AdvMapHeroShared).xdb

Open it and find the following lines:

   
   
   
   
   
   
   

NOW PAUSE
You need to find everything related to the creature.

There is one special file here - CreatureVisual. From it, we will find the character files and the Rakshasa icons.

CreatureVisual is always located in \GameMechanics\CreatureVisual\Creatures, there is a Academy folder and the file Rakshasa_Rukh.xdb

What's inside the file
Title

    - Rakshasa's name
    - junk
    - Rakshasa's description
    - there is a very small icon
    - a small icon
    - a smaller icon
    <icon128 href="/Textures/Interface/CombatArena/Faces/Academy/ico_Rakshasarukh_128.xdb#xpointer(/Texture)"/> - this is the icon you can put on the hero
    <animcharacter href="/Characters/Creatures/Academy/RakshasaRukh.(Character).xdb#xpointer(/Character)"/> - here it is! Rakshasa's model and animation, copy this line and paste it into the hero
    - if the creature changes its model after death, it is recorded here
    - projectile for shooting
    - this is for phoenixes and elementals
    - the effect of the hit... interesting, black dust flies out of the Rakshasa, not blood...
   
        false - for teleportation
        - the effect of starting teleportation (it will not be interrupted when the animation changes)
        - the effect of teleporting to another cell
   
    - I don't know
    - the point of impact of the projectile... I'm not sure if this thing always works
        -0.0176687
        0.163724
        1.82213
   
    Chest - presumably this is the bone into which the projectile flies - because of it, I am not sure about the previous point


Let's go back to the hero
Let's specify the Rakshasa icon (in principle, it is not necessary if you want, for example, to take the Jalib icon and replace it with a new dds texture)

Change the path to the large icon
    <facetexture href="/Textures/Interface/CombatArena/Faces/Academy/ico_Rakshasarukh_128.xdb#xpointer(/Texture)"/>

Remove the path to the small icon
   

Insert the Rakshasa character
    <herocharacterarena href="/Characters/Creatures/Academy/RakshasaRukh.(Character).xdb#xpointer(/Character)"/>
   
    <herocharacteradventure href="/Characters/Creatures/Academy/RakshasaRukh.(Character).xdb#xpointer(/Character)"/>

If necessary, specify the camera, but in principle, the mage is comparable in size to the Rakshasa, so you can try without it. The camera should be located somewhere in \Cameras\Interface\HireCreatures
   

The wizard's projectile.... if you want to get rid of the projectile, specify the path to the Rakshasa CreatureVisual, but I don't think it's necessary
   


RAKSHASA IN A T-POSE
Stage 3
Well, everything is simple here
Find the file that was recorded in the hero - /Characters/Creatures/Academy/RakshasaRukh.(Character).xdb
In it, as in the vampire, add animations for the map

In the same folder, there is a file with animations RakshasaRukh-arena.xdb
As with the vampire, add cast and rangeattack
Мои мини-моды

Мод RTF

Мои NCF существа