The 3rd Age

MasterHero Mod 1.9

MasterHero Mod 1.9

Enhances Visuals, provide series of modifications and additions to the game play, support WOR

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Horde Mount/Dismount Ability

Avatar of Rob38

Rob38

Category: Code
Level: Expert
Created: Wednesday December 19, 2007 - 14:55
Updated: Saturday June 27, 2009 - 18:18
Views: 12761
Summary: Giving hordes the ability to toggle between horse and foot.

Rating

Staff says

4.8

Members say

4.0

Average

4.3/5.0

11 votes

Page 1 2 3 4 5 6 7
One of the issues that has stumped modders for quite some time is giving hordes the ability to both mount and dismount from horses. As we all know, doing this for heroes and other single units is relatively easy. For hordes, however, the mount toggle button doesn't work properly and many errors result from it. In this tutorial, I will explain a different method to mount/dismount on a horse that works perfectly with a horde. It's a little bit more tricky than the mount toggle button and their are slight variations to the mount abilty , but it should satisy and impress any coder out there ;) I also will explain how to get the AI to use it properly.

NOTE: In reading this tutorial, I assume that the viewers have at least a basic understanding of how to code units and hordes. If you are having trouble with these things, please refer to other tutorials on the site for more in-depth information.

NOTE: Also, I would appreciate it if you could simply credit me in your mod if you use this tutorial. It took me a long time to get rid of all the bugs and make it work correctly in-game for both the player and the AI. Thanks :)

NOTE: For the AI, I have only tested it on the BFME2 one and not BFME1. While it should work for both games, I can't guarantee this to be true.

Page 1: Introduction
Page 2: Unit Basic setup
Page 3: scriptevents.xml and scripts.lua
Page 4: Mount/Dismount Behaviors and AI
Page 5: Horde Object
Page 6: Banner Carrier Object
Page 7: "Unsolved" Problems

Links / Downloads

 HitsAdded
In-Depth AI Coding2128December 23, 2007 - 20:00

Comments

Display order: Newest first

Rob38 (Team Chamber Member) - Sunday December 23, 2007 - 21:00

Ugh... ok, Sul, I tried your method and I was able to improve everything except for one thing. The animation will play when it's just an individual unit, but when it's a horde, it refuses to play one. I have tried tons of things but nothing works. I'll update this tutorial after I try some other things out.

EDIT: Yeah, I'm stumped. Unless someone can find a way to get the animation to work for the horde, it looks like we'll have to do without them :( Once I clean up and double check to make sure everything runs correctly, I'll edit and fix up the tutorial.

--------

Re-did the tutorial. If you find a solution to any of the problems on Page 7, please let me know :)

Sulherokhh (Team Chamber Member) - Friday December 21, 2007 - 19:59

Sweet! :) It sure looks perfectly functional, and since you tested it, we now all know it works!! :D

For further ideas on switching commandsets (which are identical, except for the single button that buys upgrades) and the use of specific animations to play for mounting /dismounting (by using a special power instead of an OBJECT_UPGRADE button), refer to 'blackrider_SEE.ini' from S.E.E. The specialpower (and LocomotorUpgrades) would have to be installed in both horde AND hordemember, but the LuaFunctions would only be needed in the horde, just like the CommandSetMonitor) These black riders don't mount horses the usual way, as the normal mount behavior has been reserved for mounting fellbeasts.

Rob38 (Team Chamber Member) - Friday December 21, 2007 - 14:19

Yeah, the commandset is quite an annoyance but I can't find any other solution to the problem :(

JEV3 - Friday December 21, 2007 - 11:50

Pity the commandset is so unfriendly... But to have a horde be able to mount and dismount is worth it.

Rob38 (Team Chamber Member) - Thursday December 20, 2007 - 22:35

Please leave comments :)

EDIT: Fixed an error in article... HorseHordeContain is the behavior you want to use for the horde behavior

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
23:13:03