| 05-11-2004, 01:46 PM | #1 |
Hello, Since there isn't a "unit modifiying" forum i'l ask it here, sine this has a bit to do with it. What i'm trying to do: Make a hero that doesn't have regeneration (unless healing @ a fountain). What i've tried: Putting regeneration to zero. this doesn't work because the hero has strenght which enhances regeneration. sigh. What i dont want: Is to remove the strenght. Possible solutions: Maybe somebody knows how i fix this, and now why this has to do with triggering: if it can't be done normally, or is very hard, just help me out with the triggers. I CAN use triggers for this problem, but if i'm not needed to please give me another solution. Thanks in advance, Mozared |
| 05-11-2004, 04:09 PM | #2 |
Lots of other treads bumped but only 1 view here? Mozared |
| 05-11-2004, 05:00 PM | #3 |
I guess you haven't noticed this string "Stats - Hit Points Generation Type" it's "Always" on default (For most units and structures), just turn it to None and the units or structure won't regenerate HP anymore. :D Edit: The same goes for Mana |
| 05-11-2004, 05:04 PM | #4 | |
Quote:
Well as far as all i can read your 100% right. though i tryed this, like i said, and my map proves it doesn't work. it is like science: on papers it should work fine, but in reality it goes wrong. don't know why, this did mostly work fine for me till now. still i stick to the reason that i think it's the strenght. even when changed to none it regenerates, and i guess trough the strenght it has. i'l try playing it again, guess this won't help it though... Mozared |
| 05-11-2004, 06:55 PM | #5 |
Go into advanced > gameplay constants and change hero attributes - HP regen bonus per strength point to zero. Guess it won't work in RoC, though.. |
| 05-11-2004, 06:56 PM | #6 | |
Quote:
i KNEW somebody would say this. just after i posted i found this out. doesn't work either though. it changes it for ALL heroes, i want it to keep it working for my other heroes. Mozared |
| 05-11-2004, 07:18 PM | #7 |
One of the gameplay constants is Hero Attributes -HP Regen. Bonus per Strength Point. It is set to .05 by default, change this to zero and you wont get any regen by Strength. This will stop strength from giving any regen bonuses. Since you still want other units to have regen you would need a work around. You can try doing something with the troll regeneration upgrade. If you made all other heroes have this upgrade you could give them a small hp regeneration bonus. Although using upgrades like this isnt very flexable. You cant unlearn upgrades so this causes problems with strength because its so variable. As a workaround you could make it a level based regen bonus instead and give the non-regen hero a different bonus. This is the best solution I have been able to come up with. |
| 05-11-2004, 07:23 PM | #8 | |
Quote:
Sounds nice but still to far around. i'd rather do it not then. maybe somebody else has suggestions? Mozared |
| 05-11-2004, 08:54 PM | #9 |
It should work to set "HP Regen. Bonus per Strength Point" to zero, and then set "Stats - Hit Points Regeneration Rate" for each hero to whatever you desire. |
| 05-11-2004, 09:16 PM | #10 | |
Quote:
|
| 05-12-2004, 12:30 PM | #11 |
You all give me the same solution but a bit different. i have over 26 heroes, adding triggers to give them all regeneration per level is freaking insane! I'l try Patrux' solution, and give them all hp regen at 1ps. let's see if that works. Mozared |
| 05-12-2004, 09:13 PM | #12 | |
Quote:
Sorry 'bout that, I wasnt exactly paying attention. It wouldnt be to hard to do this, though. Just have a loop that says for each integer for A from 1 to number of units on playable map area (unit Equal to Hero) set that unit to regen (or no regen). Mind telling us why you are doing this? Maybe there's another way around. |
| 05-13-2004, 03:28 PM | #13 | |
Quote:
Alright, i'm making an AOS map (well i'm done jet, i'm updating it), and i'm putting in some new heroes. one will be a tank, and i don't want it to have regeneration. this seems like a downside, but thus to balance it, it get's +500 extra life. i just thought it would be cool to add in this feature, and easy as well. just putting regen rate to 0 (and type to "never") has worked for me before, i was surprised when it didn't now. so i decided to ask you. atm i have it fixed by putting the +regen you get per strenght point down to zero, and gave everybody 01:00 regen points. though it's a bit boring when everybody has the same regen, so if there's an easyer way around; i'd love to. Mozared |
| 05-13-2004, 10:32 PM | #14 |
This is a triggered solution I have just thought of: whenever a player chooses this tank hero (I don't know if more than one players can have the same hero in your map, but this is the most general concept), add it to a unit group. Then, make a periodic trigger that, every second, reduces the hp of all units in that unit group by how much their strenght would regenerate it; I believe you can get the strenght of a hero through some function. So, every second, you reduce the HP of all heroes of this type by (str of the hero)*(0.05 or whatever is in your gameplay constants), thus neutralising their strenght based HP regeneration. |
| 05-14-2004, 05:51 AM | #15 | |
Quote:
Very good idea, one bugger in here: Strengt goes up by level. so if the tank has a regen rate of 01:00 in level 1, it'l have 1:50 in level 5. nice idea though, to bad it won't work. Mozared |
