View Full Version : Alternative resource system,Energy
Dickrash
07-23-2011, 11:19 AM
Has anyone figured out is this possible to make?
I tried to implement this by putting heroes start mana to 100 and mana regen to 20,this works fine until you start buying items,is there way to disable addional mana regeneration and int gain?
Pixologic
07-23-2011, 11:24 AM
search the game game.mechanics and you might find something about int equal to mana or something, never searched for it....but this should work
Nytemair
07-24-2011, 01:08 AM
The only way around it at the moment is to make the items unavailable for your hero/remove the items altogether.
Until S2 improves the scripting engine, we have to work with what we have.
Oloko
07-24-2011, 08:28 AM
What you can do is to copy the "game_settings.cfg" file that is in the resources0.s2z file into your map (resources folder).
In that file, you can find a lot of useful variables you can change. In your case you want to change:
Set "hero_mpPerInt" "13.0000"
Set "hero_mpRegenPerInt" "0.0400"
You can set both to 0, so that your hero won't gain extra mana/regen if he gains intel. You will still have the issue with items that directly give mana regen.
FlameStick
07-24-2011, 01:30 PM
Or you can just wait till drunken brawler comes and copy his files :)
Dickrash
07-24-2011, 01:37 PM
Or you can just wait till drunken brawler comes and copy his files :)
ye hopefully that will help with solution :P
messing with gameconfig is problematic because that will break any other hero in the map who uses mana as a resource
haschisch
07-24-2011, 02:19 PM
Or you can just wait till drunken brawler comes and copy his files :)The script files for him and how that mana-management was implemented were actually already released in the second dev blog.
Oloko
07-24-2011, 02:38 PM
You can already use the "shield" system used in Moraxus ultimate if you want.