Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: [Guide] Adding Teleport ability to creature
Thread: [Guide] Adding Teleport ability to creature
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted December 29, 2007 06:29 PM bonus applied.
Edited by VokialBG at 18:41, 29 Dec 2007.

[Guide] Adding Teleport ability to creature

How to create a teleport for your creature? Its possible to give teleporting ability to every single creature in your Heroes 5. Just you need to know how . This guide is created for everyone who dont know.

In this guide will use the Wraith as experimental mouse.

Step 1

Furst you have to do some changes in the creature ".xdb"

Open GameMechanics/Creature/Creatures/*Choose race*/*Choose creature ".xdb"*

in our case will open GameMechanics/Creature/Creatures/Necropolis/Wraith.xdb

See line number 10 first <Flying>false</Flying>, this is the first thing you have to change. "false" have to be changed to "true", see it here:




Using existing animation as effect

Step 2

After doing this you have go add effect for teleporting.

So go to GameMechanics/CreatureVisual/Creatures/*Choose race*/*Choose creature ".xdb"*

In this guide we will open GameMechanics/CreatureVisual/Creatures/Necropolis/Wraith.xdb

You have to give starting and finishing animation to your new teleporting creature.

When you open the ".xdb" you'll see this:



The changes you have to make are simple. First "<Use>false</Use>" (line 16) must be "<Use>true</Use>". Second line 17 and line 18 are "<StartEffect/>" and "<FinishEffect/>", as it's written the lines are for the animation. You can choose every animation you want. You can place different anim for start and finish (the starting animation is the animation which is shown when the ability begin, on the creatures normal locaton, the finishing anim is shown on the creatures new location, after it get teleported).

You just have to write the animation address (you can use effects of spells, other creatures abilities, etc...) in this case lets use the anim of Harm touch ability, this mean we have to add this text:
href="/Effects/_(Effect)/Characters/Creatures/Necropolis/Wraith/specability_hit.(Effect).xdb#xpointer(/Effect)"/>

(the abilities address) see here:



For example you can give your creature Devils effect with writing this for starting and finishing:

href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>

After this steps you dont have more work, save all changes in map format and try it

Creating own animation as effect

Step 3

Go to Effects/_(Effect)/Characters/Creatures/*Choose race*/*Choose creature folder*

In this case "Effects/_(Effect)/Characters/Creatures/Necropolis/Wraith"

Here you have to add new ".xdb", the basic of it's script you can take form:

Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb

First change "<PerParticleFog>false</PerParticleFog>" to "<PerParticleFog>true</PerParticleFog>" (line 17)



Next go on line 41-75 (<Textures>:



As you see here are the textures. But here they are fire textures, rocks and etc...

You can create your own animation by changing the existing textures addresses. Or if you remove part of them.

So I leaved:

<Item href="/Textures/Effects/_Various/Smoke02.xdb#xpointer(/Texture)"/>
<Item href="/Textures/Effects/_Various/Smoke03.xdb#xpointer(/Texture)"/>
<Item href="/Textures/Effects/_Various/Glow05.xdb#xpointer(/Texture)"/>

Copy the fail in Effects/_(Effect)/Characters/Creatures/*Necropolis*/*Wraith*

Then do again Step 2 but this time use

href="/Effects/_(Effect)/Characters/Creatures/Necropolis/Wraith/Teleport.xdb#xpointer(/Effect)"/>

as address:



Save all changes and try


--------------------

Will be added in Moding Wiki soon


____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
bigjocker
bigjocker


Responsible
Supreme Hero
Forgotten but not Forsaken
posted December 29, 2007 06:37 PM

Thanx a lot man. It seems that everyone got more helpful after Christmas.
____________
HoMM3Lite

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted December 29, 2007 06:57 PM
Edited by sfidanza at 23:25, 29 Dec 2007.

Sorry, I must complete this. You didn't mention creature animation while teleporting. Without it, Wrath would just straigten himself...

There're two values which take part in it:

moveStart and moveEnd

Taking Wraith as mouse or bunny, whatever, we must use his arena animation file, which is:

_(AnimSet)/Creatures/Necropolis/Wraith-arena.(AnimSet).xdb

Inside it, we can find several animation tags, like

Quote:

<Item>
<Kind>attack00</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Necropolis/Wraith/attack00.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>
<Item>
<Kind>death</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Necropolis/Wraith/death.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>
<Item>
<Kind>hit</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Necropolis/Wraith/hit.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>
<Item>
<Kind>move</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Necropolis/Wraith/move.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>
<Item>
<Kind>idle00</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Necropolis/Wraith/idle00.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>
<Item>
<Kind>specability</Kind>
<Anim href="Wraith-arena-specability.xdb#xpointer(/BasicSkelAnim)"/>
</Item>
<Item>
<Kind>happy</Kind>
<Anim href="Wraith-arena-happy.xdb#xpointer(/BasicSkelAnim)"/>
</Item>



As we can see, there are no moveStart or moveEnd tags here. I encourage you to copy, in example attack animation, and make it appear when Wraith starts to teleport and idle00 when ends. So, it goes like:

Quote:

<Item>
<Kind>happy</Kind>
<Anim href="Wraith-arena-happy.xdb#xpointer(/BasicSkelAnim)"/>
</Item>
<Item>
<Kind>moveStart</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Necropolis/Wraith/attack00.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>

<Item>
<Kind>moveEnd</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Necropolis/Wraith/idle00.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>




This should clear things up.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted December 29, 2007 07:04 PM
Edited by VokialBG at 19:11, 29 Dec 2007.

Quote:
Without it, Wrath would just straigten himself...


nope it doesnt happen


moveStart and moveEnd are not needed, you can create anim without to edit them.

When you have different or only some of the textures in Teleport, the anim is new.

As for moveStart and moveEnd they will be needed only if you want to create different starting and finishing animation, but also you can go it by creating Teleport.xdb and Teleport_1.xdb (or another name) and use them in the script as address.

So it just unnecessary to do it (doesnt mean that its dangerousy but its waste of time).

Also generally is using one alike anim for star and finish. I recommend to use existing animation.
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted December 29, 2007 07:17 PM

Of course moveStart and moveEnd may have specified the same BasicSkelAnimation, the case is withuot such tags Wrath wouldn't animate at all, just effect would be played.

People will do as they want, but without my step creature will just look like a teleportng broom with some fireworks around.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted December 29, 2007 07:24 PM
Edited by VokialBG at 19:25, 29 Dec 2007.

The animation work perfectly and the teleport as ability too. Without other move- Start and End.

Any way everyone can do it in one of the 3 ways if he have time.

I guarantee that my way work perfectly.

Try test mod with existing animation
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted December 29, 2007 07:35 PM
Edited by radar at 19:47, 29 Dec 2007.

Well, as I wrote... he doesn't animate, just this green effect covers him ... wait... did I meantion something about teleporting broom?

Oh well...

What is Squire doing?... wanna be Jesus or something?



That's why you NEED TO specify it

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted December 29, 2007 07:54 PM
Edited by VokialBG at 20:31, 29 Dec 2007.

Well this is the model thing not the teleportation itself. The teleportation mechanics is in the first post.

--------

Added in Wiki

@Radar: If you have time add your 3th post in the wiki article too.
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
bigjocker
bigjocker


Responsible
Supreme Hero
Forgotten but not Forsaken
posted December 29, 2007 09:55 PM
Edited by bigjocker at 18:33, 30 Dec 2007.

Radar..even if it does not move it still looks cool

EDIT: None of your variants work for me for "begin teleportation" only for finishing it. I was trying to make druids teleport
____________
HoMM3Lite

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted December 30, 2007 06:56 PM

Hmm I just tried do make the druids and it works fine, check the starting anims address.
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
bigjocker
bigjocker


Responsible
Supreme Hero
Forgotten but not Forsaken
posted December 30, 2007 07:06 PM
Edited by bigjocker at 19:08, 30 Dec 2007.

Quote:
Hmm I just tried do make the druids and it works fine, check the starting anims address.

This is what I added to animset:
</Item>
<Kind>moveStart</Kind>
<Anim href="/_(BasicSkelAnim)/Creatures/Preserve/Druid/attack01.(BasicSkelAnim).xdb#xpointer(/BasicSkelAnim)"/>
</Item>

and this is what I added to creature visual:

<TeleportingMove>
<Use>true</Use>
<StartEffect href="/Effects/_(Effect)/Characters/Creatures/Necropolis/VampireLord/moveStart.xdb#xpointer(/Effect)"/>
<FinishEffect href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>
</TeleportingMove>

But there's no starting animation somehow.(It's for a druid)
____________
HoMM3Lite

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted December 30, 2007 07:38 PM

In Visual you don't link animation but an effect (sparks, fire, smoke etc)! You can put Devil's tele there also.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bigjocker
bigjocker


Responsible
Supreme Hero
Forgotten but not Forsaken
posted December 30, 2007 07:44 PM
Edited by bigjocker at 19:51, 30 Dec 2007.

Quote:
In Visual you don't link animation but an effect (sparks, fire, smoke etc)! You can put Devil's tele there also.

When I put both devils teleportations the game crashes. AND I want it to use his shooting animation before teleporting
____________
HoMM3Lite

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted December 30, 2007 07:52 PM

I mean

<TeleportingMove>
<Use>true</Use>
<StartEffect href="/Effects/_(Effect)/Characters/Creatures/Necropolis/VampireLord/moveStart.xdb#xpointer(/Effect)"/>
<FinishEffect href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>
</TeleportingMove>

You can use the same effect here but not an animation.

<TeleportingMove>
<Use>true</Use>
<StartEffect href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>
<FinishEffect href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>
</TeleportingMove>

with moveStart you did it well, I guess druid animates and moves himself when starts to tele?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bigjocker
bigjocker


Responsible
Supreme Hero
Forgotten but not Forsaken
posted December 30, 2007 07:56 PM

Quote:
I mean

<TeleportingMove>
<Use>true</Use>
<StartEffect href="/Effects/_(Effect)/Characters/Creatures/Necropolis/VampireLord/moveStart.xdb#xpointer(/Effect)"/>
<FinishEffect href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>
</TeleportingMove>

You can use the same effect here but not an animation.

<TeleportingMove>
<Use>true</Use>
<StartEffect href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>
<FinishEffect href="/Effects/_(Effect)/Characters/Creatures/Inferno/Devil/Teleport.xdb#xpointer(/Effect)"/>
</TeleportingMove>

with moveStart you did it well, I guess druid animates and moves himself when starts to tele?


As I wrote (edited post) when I put both (begin and end) Devil's Teleport the game crashes when I try to play. And about moveStart druid does not animate himself (he's like your crusader)
____________
HoMM3Lite

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted December 30, 2007 07:59 PM

Ehh... could you upload it?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bigjocker
bigjocker


Responsible
Supreme Hero
Forgotten but not Forsaken
posted December 30, 2007 08:39 PM
Edited by bigjocker at 21:23, 30 Dec 2007.

EDIT: Okey everything works except for High Druid
____________
HoMM3Lite

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Sunjah
Sunjah


Hired Hero
posted January 03, 2008 08:36 PM
Edited by Sunjah at 20:37, 03 Jan 2008.

where are the files to link to for the third upgrade, like banshee or nosferatu???  I copied what someone else did and it worked fine, but there are no 3rd unit files in game mechanics I can find.  This folder is where I found the other 2 to edit  "data\_(AnimSet)\Creatures\Necropolis," but can't find the third.

HEEELLLLPPPP........, please?!?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted January 03, 2008 09:04 PM
Edited by VokialBG at 21:28, 03 Jan 2008.

They are in:

\Characters\Creatures\*Necropolis*\*AlternativeUpgrade*

EDIT_NOTE:

Look for "-arena" suffix in the ".xdb" name.
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
radar
radar


Responsible
Legendary Hero
Castle/Haven player
posted January 03, 2008 09:06 PM

You can find them in

Characters/Creatures/[Faction]/AlternativeUpgrade folder,

but the last one is tricky. It can be AlternativeUpgrade, Alternative_Upgrade, AlternativeUpgrades etc.


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0622 seconds