| 07-29-2005, 08:26 AM | #1 |
I want to make experience gain system like in World of Warcraft. Here's how it works: Hero gains no (or very little) exp for killing creeps with level at least 6 levels below level of killing Hero or 12 level above level of killing Hero. Have no idea how to do that, need help. |
| 07-29-2005, 09:04 AM | #2 |
You would need to make a triggered experience gain system for that. Have a trigger with a "unit dies" event. Then you need to determine which hero should gain experience, if a hero can have summoned units or mercenaries or dummy casters, then it's not neccesarily the killing unit that's the hero. Once you figure out which hero needs to get experience, you only have to compare his level with the level of the dying unit and award experience accordingly. |
| 07-29-2005, 11:23 AM | #3 |
It's a bit hard, but yes, possible. Thx. |
| 07-29-2005, 05:18 PM | #4 |
Not really, just take in the level of the monster as a variable... Set custom value of the monster as it's EXP, and do when unit dies if triggering unit is owned by Player12 if (level of hero-6)>(level of monster) [ give hero (custom value of triggering unit)/10 ] else [give hero (custom value of triggering unit) Viola, that should do it. But it's up to you to find the correct commands, I don't have time to look up exactly what they are called. I'm sure you understand. |
