| 07-31-2006, 05:00 PM | #1 |
Is it possible to allow a dead hero to still recieve XP? |
| 07-31-2006, 05:05 PM | #2 |
I don't think so. You'd have to have a way of determining how much experience would have been gained while it was dead and then adding it. An idea would be to create a invisible dummy hero that has the same amount of experience as the dead hero, and just add the difference when the dead hero respawns. |
| 07-31-2006, 05:09 PM | #3 |
perhaps...have you tried storing a hero in a variable and then giving him xp after he dies using a trigger? what exactly are you trying anyway? |
| 07-31-2006, 05:11 PM | #4 |
That might work, the issue however isn't when to give the experience, since a dead hero wouldn't be able to use it anyway, it's how much to give. Also, I'm thinking it's for his familiar system when his familiars die? |
| 07-31-2006, 05:27 PM | #5 |
well if there is some other hero out there and you want the familiar to get the xp it "missed" while the other hero leveled you can record that hero's current xp when the unit dies and then give the familiar hero's current xp - xp he had when the familiar died. also you can try calculating the xp familiar would've gained, but i gotta look for the formula somewhere... |
| 07-31-2006, 05:33 PM | #6 |
Calculating it would probably work as well, just using the hero's experience however probably would not because the experience rate is different when there are multiple heroes, so the hero would end up levelling up faster than usual. |
| 07-31-2006, 05:38 PM | #7 |
Or perhaps, is it possible to level up a dead hero while they're dead? Yes it is for my familiar system, as I want the hero and the familiar to always have the same experience... But I was thinking maybe I can just disable the experience gain of the familiars all together and simply have a trigger that levels them whenever the hero gains a level... But if the familiar is dead when the hero levels up, what would happen then? |
| 07-31-2006, 05:43 PM | #8 | |
Quote:
when the familiar revives simply set his xp to match the hero's. and as for the more xp when the familiar is dead...well you can set the xp rate to 50% when he dies. |
| 07-31-2006, 05:52 PM | #9 | |
Quote:
Heh, forgot you could do that. |
| 07-31-2006, 06:35 PM | #10 |
Well I was thinking cause in the RTS maps you control 2 heroes, and both have a familiar, so essentially your controlling 4 heroes that can gain experience... And yah I don't want it exploited so that you can kill off your familiar to level up faster... I tried just disabling the xp gain for familairs and just make them level up when the hero levels up, but even with the disabled xp gain, your hero still only earns have the experience while the familiar is alive. I guess the other half that should go to the familiar just gets obliterated rather then going to the the Paladin as it should... Aw well, that sucks and kinda de-rails a plan that would have been very simple to implement... |
| 07-31-2006, 07:22 PM | #11 |
do what i said...make use out of xp rates. |
| 07-31-2006, 07:25 PM | #12 |
As in like... If Familiar 1 dies and Familiar 2 is alive, set xp rate to 50% If Familiar 1 dies and Familiar 2 is dead, set xp rate to 25% If Familiar 1 revives and Familiar 2 is alive, set xp rate to 100% If Familiar 1 revives and Familiar 2 is dead, set xp rate to 50% Something along those lines? |
