Trying to make units trainable from barracks/archer range -1 reply

Please wait...

ozjackal

The Darkness is my sanctum.

50 XP

28th October 2007

0 Uploads

34 Posts

0 Threads

#1 11 years ago

Hello again ^.^

This time around, I am trying (pathetically -.-) to make Dunedain archers trainable from the archery range and Elven Warriors ('Inn' type, not Lorien Warriors) from the barracks. I have the file 'mods\data\ini\object\goodfaction\hordes\men\menhordes.ini' but I am clueless as to what to do next :(

Here is the Dunedain section of which I 'think' I should edit:-

////////////////////////////////////////////////////////////////////////////////// ChildObject GondorRangerHorde_Summoned GondorRangerHorde IsTrainable = No CommandPoints = 10 CommandSet = GondorRangerHordeCommandSet_Summoned EquivalentTo = GondorRangerInnHorde

DisplayName = OBJECT:HordeDunedainRanger KindOf = SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT INFANTRY HORDE ARCHER ARMY_SUMMARY LARGE_RECTANGLE_PATHFIND SUMMONED //////////////////////////////////////////////////////////////////////////////////

I have the first few lines in Bold because if I have IsTrainable to Yes, does that mean the battalion is trainable from a building of my choice? CommandSet is bolded because I don't have a CLUE what i'm supposed to do with that. EquivalentTo is bolded because it mentioned 'Inn' (lol) I bolded the word 'Rectangle' because I can :P

//////////////////////////////////////////////////////////////////////////////////

Any help that can be given will be gladly appreciated, once again :D

Thanks guys. :cya:




Nolis

Panathinaikos 4 ever...

50 XP

15th November 2007

0 Uploads

22 Posts

0 Threads

#2 11 years ago

You have to edit the commandset and commandbutton of the building to do this. If you want more info just ask... And don't change the childobject...




ozjackal

The Darkness is my sanctum.

50 XP

28th October 2007

0 Uploads

34 Posts

0 Threads

#3 11 years ago

Ah ok :) Where can I find the file? Or is it just the commandbutton.ini and commandset.ini files?




ozjackal

The Darkness is my sanctum.

50 XP

28th October 2007

0 Uploads

34 Posts

0 Threads

#4 11 years ago

Ok, Here is what I've done so far.

What I wanted: :) - Make Dunedain Rangers.

What I didn't want but did anyway: :bawl: - Use the summon dunedain (MotW) spell and give them unlimited lifetime.

I understand the commandbuttons/set.ini files now, thanks to a tutorial provided by the3rdge.net ( Thanks Guys :) ) .

Just stumbled upon this in commandset.ini :- //////////// CommandSet CommandSetInnMenFaction 1 = Command_ConstructRohanElvenWarriorHorde ; ;Command_ConstructInnGondorRangerHorde ; Dunedain Ranger 2 = Command_StartSelfRepair End //////////// I have the 3rd line bolded because before "Dunedain Ranger" it says to construct the InnGondorRangerHorde. After that, the next ; does that mean it's a comment or 'Aka'? If yes, that would be how to build them then, yes?

Once again, thanks for your help :)




ozjackal

The Darkness is my sanctum.

50 XP

28th October 2007

0 Uploads

34 Posts

0 Threads

#5 11 years ago

Ok I got the Dunedain working for the archer range :) Thanks!




Nolis

Panathinaikos 4 ever...

50 XP

15th November 2007

0 Uploads

22 Posts

0 Threads

#6 11 years ago

np And I think that after every ; it is a comment, but I'm not sure about it...