Jump to content


Photo

CaH and War of the Ring Problem


  • Please log in to reply
6 replies to this topic

#1 CrazyMoose

CrazyMoose
  • Members
  • 127 posts
  • Projects:Taralomian assault

Posted 07 July 2006 - 10:43 AM

You can only use certain Hero's in the War of the Ring as leaders for your army, seeings as your create-a-hero is usually quite powerfull id like to be able to use them as a learder, is this possible?

Edited by CrazyMoose, 07 July 2006 - 12:40 PM.

Taralomian assault Moddeler and Coder

#2 zimoo

zimoo

    Ecthelion of the Fountain

  • Project Team
  • 2,009 posts
  • Location:Devon, England
  • Projects:Lurking until the off topic begins...
  •  Guardian of the Books

Posted 07 July 2006 - 11:15 AM

Yes, I suggest taking a look through any file that contains the word "livingworld". Once you find them its pretty self-explanatory
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

Playing games? Ah, you'll never be a good modder if you get involved in actually playing them!


#3 CrazyMoose

CrazyMoose
  • Members
  • 127 posts
  • Projects:Taralomian assault

Posted 07 July 2006 - 11:16 AM

hmm I thought I checked those files. I'll go have another look, do you know which file inparticular.

Thanks Zimoo

Edited by CrazyMoose, 07 July 2006 - 11:18 AM.

Taralomian assault Moddeler and Coder

#4 zimoo

zimoo

    Ecthelion of the Fountain

  • Project Team
  • 2,009 posts
  • Location:Devon, England
  • Projects:Lurking until the off topic begins...
  •  Guardian of the Books

Posted 07 July 2006 - 11:23 AM

data\ini\campaigns\common\livingworldstartingunits.inc is one of the files, there's probably more you need to edit though
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

Playing games? Ah, you'll never be a good modder if you get involved in actually playing them!


#5 CrazyMoose

CrazyMoose
  • Members
  • 127 posts
  • Projects:Taralomian assault

Posted 07 July 2006 - 11:28 AM

I'm not sure but I think i've found it in data\ini\campaigns\common\livingworlddefaultarmies

I'll go check it out

Thanks Zimoo

Edit:

OK I have a problem, When adding in the following code I get a game.dat error and the game crashes anybody any ideas?

livingworldbuildableunits.inc
;LivingWorldPlayerArmy
;	Name = MoW_CreateAHeroArmy
;	DisplayNameTag = LWA:MenOfTheWest
;	ArmyEntry
;		ThingTemplate = CreateAHero
;		Quantity = 1
;	End

(Yes I know it's commented out thats what I changed)

livingworlddefaultarmies.inc
SpawnArmy
	ScriptingName = HeroArmy4
	SpawnForTemplates = PlayerMen
	HeroTemplateName = CreateAHero
	PlayerArmy = MOW_CreateAHeroArmy
	Icon = HeroBoromirIcon
	Banner = BannerMen
End

livingworldstartingunits.inc
LivingWorldPlayerArmy
	Name = MOW_CreateAHeroArmy
	DisplayNameTag = LWA:MenHeroArmy	
	ArmyEntry
		ThingTemplate = CreateAHero
		Quantity = 1
	End
End

Edited by CrazyMoose, 07 July 2006 - 12:39 PM.

Taralomian assault Moddeler and Coder

#6 x-pectron

x-pectron
  • Members
  • 14 posts

Posted 15 January 2009 - 02:30 PM

I tried the same code, and then moved to "Name = MoW_CreateAHeroPlayerArmy", but when I click on it during the game gives gamecrash. How do createahero as an army leader?

Go Up, topic

#7 druchii22

druchii22

    WotR Coder

  • Project Team
  • 97 posts
  • Location:Switzerland
  • Projects:RJ-RotWK Beta Tester, Battles of the 3rd Age, some other little mods
  •  INI Coder

Posted 15 January 2009 - 04:00 PM

It's because name doesn't affect army's kind. You just need to add "HeroTemplateName = CreateAHero", and it's Ok. :wink_new:

Posted Image
Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users