Jump to content

Limit the amount of trainable heroes in Alpha 9


Deicide4u
 Share

Recommended Posts

I've installed Alpha 9 in order to better understand the game's code and core gameplay loop from a simpler perspective.

I realize that this version has many issues, one of the most glaring ones being able to train more than one hero at a time. And yes, having no phases or technologies doesn't bother me.

How can I limit the amount of trainable heroes to only one?

Link to comment
Share on other sites

7 minutes ago, Deicide4u said:

How can I limit the amount of trainable heroes to only one?

Knowing next to nothing about coding I'd guess as per usual: copy & paste. Find how it's done now, copy it to the old source and build. I'd imagine building that old source could be quite a pain, especially if you'd have to implement that whole function into the engine.

Link to comment
Share on other sites

1 hour ago, Gurken Khan said:

Find how it's done now, copy it to the old source and build

I don't think that building of the source is required. The only thing that needs to be done is to modify the hero unit templates and restrict the training limit in a JS file.

I see there's BuildLimits.js file, but I need a similar one for units. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...