- Joined
- Jun 28, 2008
- Messages
- 688
I am creating a map in which Heros are just Units, and stats (HP, MP, MS, AS, DMG, ARM, RNG) are increased using upgrades from a research center. The upgrades cost Skillpoints (lumber) that are acquired when a certain number of units have been killed by your "Hero". However, I want the upgrades to be able to be used an infinite amount of times, and I certainly don't want to have to make thousands of levels of upgrades in the Object Editor.
For example, Health Upgrade will add 40 onto your Heros maximum HP, and can be used as many times as Skillpoints you have. So, in order for this to work, I need infinite levels of Health Upgrade.
I tried setting the number of levels for each upgrade to -1, as this counts as infinity in most positive integer data cases. All this does is makes the upgrade have no effect on the unit. I tried setting it to 0, and this just makes the research not show up at all.
So my question is this: is there any possible way, with or without triggers, to make an upgrade have infinite levels?
For example, Health Upgrade will add 40 onto your Heros maximum HP, and can be used as many times as Skillpoints you have. So, in order for this to work, I need infinite levels of Health Upgrade.
I tried setting the number of levels for each upgrade to -1, as this counts as infinity in most positive integer data cases. All this does is makes the upgrade have no effect on the unit. I tried setting it to 0, and this just makes the research not show up at all.
So my question is this: is there any possible way, with or without triggers, to make an upgrade have infinite levels?