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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...