| 02-02-2003, 09:13 PM | #1 |
Guest | I want to make a hero ability to change its effect when it levels up. Example: I want an attack like blizzard to have a simple slow/freeze effect on level one while the second level will have the effect of ice nova and the third the effect of freezing breath. How would I do this? |
| 02-02-2003, 11:03 PM | #2 |
---Moved--- Just a friendly reminder. Do not post questions in the repository, that section is for working code you wish to share with others. It would take a while to set this up, but the basic idea would be to: give the hero a item that gives cold damage. then you would need a trigger to keep track of what skills he learned. this has been discussed on this board before, do a search for it. Then you would need a trigger to fire every time the hero attacks. It should have 3 if statments. Depending on the hero's skill level in that 1 skill. You would create a special effect on the unit being attacked. TO get the special effect, you would need to look that *.mdx file up in the MPQ. There is also a map posted on this forum that shows all the special effects and gives you the path to the file. Once again, searching this forum will find that. |
| 02-02-2003, 11:40 PM | #3 |
Guest | Oh.. sorry about that. I meant a hero ability (not an attack) that changes effects on level up. I don't even know how to apply text triggers if that's what you're talking about. |
| 02-03-2003, 04:17 PM | #4 |
well one way to do it is to make three seperate spells, one for each effect, and then create three different heroes each with the different ability. (all the spells should prolly use the same slot). Then have a trigger detect when they level up the ability and then replace heroes, etc. If you want me to be more specific just let me know |
| 02-04-2003, 02:12 PM | #5 |
Guest | Would something like this work? I just overlap the effects for the hero's spell? For instance, I could store the level of the current spell and have a trigger overlap the effect of the last level of the spell. Since the original effect for the ability would probably stick throughout, for the second level, I could apply a special effect on the target of spell X? Then do the same thing for the third spell--overlap its graphic over the first level spell effect. |
