| 08-23-2004, 11:41 PM | #1 |
Hey all, This is a repost since i probably posted it in the wrong forum the first time. I'm not a complete Jass newbie (or SLK newbie for that matter), but this one has me stumped. I am adding new "Heros" into the War3Patch.mpq. I am not doing this through the WE at all, I'm doing it by editting the SLKS, TXTs, and Js directly. The issue is, the new Hero functions perfectly (art, build time, revival, showing the icon on the left side of the screen etc) with one minor flaw, the Requires count does not seem to function. So in other words, I can build one new hero, then a second, then a third and even a fourth, and I assume I could build a fifth is I so desired. Not of the same hero however, only one of each of the new heros. The building of the new hero does not seemingly effect the maximum hero count nor does it require me to build a "Castle" or the next level town hall even though it is expressly defined in the HumanUnitFunc.txt. The "Free Hero Token" is in fact burned, as subsequent heros beyond the first cost the appropriate monies, so that part functions correctly. Now here is the really strange part... If I add in a "Normal" hero, say the Archmage, and I build him first, he indeed burns the free hero token, and then the "New" heros require a Keep or a Castle to build, but I can build all 4 new heros and then build the Archmage last all without ever having to upgrade. Interestingly enough, if I simply rename the Archmage in the SLKs to "Hero" instead of "Hamg" the problem shows up again, so it's seeminly some function tied to the naming. I recognize the heros in the blizzard.j file with the following line placed in the appropriate function: call ReducePlayerTechMaxAllowed(Player(index), 'Hero', bj_MELEE_HERO_TYPE_LIMIT) 'Hero' as described above is of course placed in the appropriate SLK files and everything seems to function well minus the above problem. Does anyone have any ideas on how to solve this problem or where the Hero strings are defined as heros?? The string itself is defined in the HumanUnitString.txt of course. Any help would be appreciated, I am at wits end on this one. -- Daytranno |
| 08-24-2004, 12:49 AM | #2 |
dunno hwo to do it in mpq's but in the WE there is a place that you can add custom hereos into in gameplay constants |
| 08-24-2004, 12:59 AM | #3 |
Thanks for the reply Mythmon. I actually just figured it out. There is a new dependancy added outside of the blizzard.j and race specific function titled (appropriately enough) [HERO]. Heros are then defined by a setting of: [HERO] DependencyOr= At this point, all heros must be listed for them to take on true "Hero" status. I don't know why I didn't check these files before, but they are located in the appropriate NeutralUnitStrings and NeutralUnitFunc files. Even race specific heros are added here. I think the reason for this is, to allow Neutral Heros to funtion properly you must define them seperately from the race specific heros, so they create the dependancies for all heros in the NeutralUnitFunc now. It makes perfect sense and I should have check it before. Thanks for the help. -- Daytranno |
