| 10-16-2004, 11:04 PM | #1 |
OK, so i want to have it so that whenever a hero dies the hero who killed him gets a specific item, no problem with that. But how would I make it so if you were to kill two heros instead of getting 2 of that item i want the effects to stack. Example: You kill a hero you get ITEM-A and it gives +1 to all stats. You kill another hero you get another ITEM-A. How would i have it so that instead of having 2 ITEM-A's they combine to give 1 item with +2 to all stats and then every ITEM-A you get just stacks on to that. Is there a way to do this without doing something similar to ENFOS's combine items? O, and another thing, the heros from the new update arent showing up in my editor, how do i get them there (Alchemist and Firelord). Thanx. |
| 10-16-2004, 11:34 PM | #2 |
For the Firelord and the Alchamist, you have to manually add them in to your map in the tavern if its not a melee map otherwise it will automaticlly change it in-game. For the adding to stats, there are many things you could do. You could make it so every time a hero kills another hero, that hero would get an ability adding to stats and then you could make a trigger checking what level that the extra stats are. Another thing you could do is just use trigger - hero - add agil/int/str (seperate i think) + number of hero kills which would be a variable that you can make increase every time that hero kills another hero (making sure that its an enemy of course). |
| 10-17-2004, 05:43 AM | #3 |
I would do what AzUr3wRaTh suggested, that is adding +1 to str/agil/intel via triggers. But if you really wanted items, you would have to make a bunch of different versions of the item, ex: +1, +2, +3, +4, +5 etc... This would be tedius and require alot of items and abilities. Also you would need alot of code to remove and then add ("combine") the items. So if you plan on this happening more than a few times in your map, i wouldnt suggest using items. |
| 10-17-2004, 02:22 PM | #4 | |
Quote:
With intelligent coding, you can minimize the size of most triggers. However, as far as object-editor work goes, it's a lot easier to give abilities directly to the hero rather than with items. With items, you have to make one item for every stat-bonus, but with unit abilities, you can just use the +1/+2/+4/+8/+16... system; with only five abilities, you can describe 32 different stat bonuses; with eight abilities, you can go up as far as +256 stat bonuses. |
| 10-18-2004, 02:13 AM | #5 |
When i say the heros arent in the editor, i mean they're not in the editor....at all. Like they dont show up under human heros in the object editor melee or campaign. And with the abilities, can u make it so the ability upgrade is only availabe everytime you kill a hero and how? |
| 10-18-2004, 05:56 AM | #6 |
First, stop hero xp gain. Then, when a hero kills another hero, set the Hero level = Hero level + 1 for killing hero. |
