Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!

Author Topic: How to make heroes respawn?  (Read 4985 times)

0 Members and 1 Guest are viewing this topic.

January 19, 2013, 11:57:48 AM

Offline MidnightRider00

  • Recruit
  • *
  • Posts: 2
  • Approval: +0/-0
    • View Profile
How to make heroes respawn?
« on: January 19, 2013, 11:57:48 AM »
Hello, I would like to know where are the lines in the XML files that change the spawning of heroes. I would like to make them respawn because I like those big games that remind me of the battle of Endor(A lot of ships, a lot of chaos), but there's a great chance that the heroes will die. the only heroes that probably should not be changed are the leaders of the Imperial Faction, right?

Thank You

January 19, 2013, 01:25:37 PMReply #1

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: How to make heroes respawn?
« Reply #1 on: January 19, 2013, 01:25:37 PM »
It's one line in GameConstants.xml

   <Default_Hero_Respawn_Time>-360.0</Default_Hero_Respawn_Time>

Change that to a positive value. The end result will be that heroes all respawn, and the era changes will probably crash.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


January 20, 2013, 01:22:01 PMReply #2

Offline MidnightRider00

  • Recruit
  • *
  • Posts: 2
  • Approval: +0/-0
    • View Profile
Re: How to make heroes respawn?
« Reply #2 on: January 20, 2013, 01:22:01 PM »
Thank you. I'll just make sure that the Imperial Leaders do not die.

October 01, 2018, 08:20:45 PMReply #3

Offline Katarnstar

  • Brevet Admiral
  • ****
  • Posts: 50
  • Approval: +0/-0
    • View Profile
Re: How to make heroes respawn?
« Reply #3 on: October 01, 2018, 08:20:45 PM »
Where is the file located?

 

Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!