Jump to content


Photo

hero icon change


  • Please log in to reply
4 replies to this topic

#1 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 30 April 2015 - 08:02 AM

hey

 

is it possible to change both hero icon and hero portrait by only reaching an specific level (and if yes how^^)? simple texture change didnt work


Edited by sam-the-brave, 30 April 2015 - 08:03 AM.


#2 Kwen

Kwen

    Vileartist

  • T3A Staff
  • 4,865 posts
  • Location:Korea I wish
  • Projects:It'sa secreeet
  •  T3A's First N00b
  • Division:BFME
  • Job:T3A Expert
  • Donated

Posted 30 April 2015 - 04:23 PM

I'm fairly certain this is hard coded as the only existing example is gandalf. I believe at one point I attempted to reverse engineer the code to implement that feature to another hero but I found dead end trails of code and got nowhere. You could take a stab though by looking at gandalf and see if you can come up with anything.

                           https://www.twitch.tv/vileartist - Yes shameless self-promotion

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

                            "Old modders never die, they just fade away" ~ Hostile


#3 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 30 April 2015 - 07:12 PM

hm thanks

 

sounds really nasty ;)

when i have enough time maybe i'll try

 

 

i have an other question:

 

how can i let the troll cage (in lvl 3) spawn level-2-trolls (not drummer trolls) like the mumakil pen?


Edited by sam-the-brave, 30 April 2015 - 07:21 PM.


#4 Rider of Rohan

Rider of Rohan

    The Lazy Modder

  • Division Leaders
  • 1,555 posts
  • Location:The Caribbean
  • Projects:Age of the Ring and the HD Editions
  •  Mathijs' Bug fix expert
  • Division:BFME
  • Job:T3A Leader

Posted 30 April 2015 - 08:53 PM

how can i let the troll cage (in lvl 3) spawn level-2-trolls (not drummer trolls) like the mumakil pen?

Look for 

Behavior = ProductionUpdate ProductionUpdateModuleTag
In the Troll Cage object, and add right under that:
VeteranUnitsFromVeteranFactory = Yes ;I am higher than my default level, I will give a free level to those I produce
Or just copy and replace the original code with this:
  Behavior = ProductionUpdate ProductionUpdateModuleTag
	NumDoorAnimations            = 1
    DoorOpeningTime              = 3250  ;in mSeconds how long you want doors to be in open state
    DoorWaitOpenTime             =2000  ;in mSeconds time the door stays open, so units can exit
    DoorCloseTime                = 4000  ;in mSeconds how long you want doors to be in open state
    ConstructionCompleteDuration = 1500  ;in mSeconds   wait time so if you have multiple units they don't run over each other
    ;;;;;;;;;UnitPreparationTime			 = 4333		; time of the unit build animation
	;;;;;;;;;; 4-1/3 second prep needs to be set in THingTemplate, for Both trolls, now
	VeteranUnitsFromVeteranFactory = Yes ;I am higher than my default level, I will give a free level to those I produce
  End

99dxc486ltde132zg.jpgh5je9noaofg3o26zg.jpg

No parent should have to bury their child - King Theoden


#5 sam-the-brave

sam-the-brave
  • Members
  • 45 posts

Posted 30 April 2015 - 10:02 PM

great thanks!! :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users