- Joined
- May 2, 2009
- Messages
- 69
Hello Hive,
I'm a novice mapmaker who is now trying to study up on things and learn to use the Map Editor for what it's really worth.
I've taken a few cracks at trying to use a triggered combat system, (abilities that deal damage based on stats, using stats for attacks and defense), but there's one single problem that I keep facing, and that is how to store stats for a large amount of units. A large amount being somewhere around 80+.
It was easy when I planned on only using stats for the players' heroes, I just used array variables and got the player number to retrieve the stored data. But I KNOW there is a more efficient way than making a variable with an array size of 80+.
I want the triggers to look something like:
"Casting Unit deals damage to Target Unit equal to Casting Unit's Strength * Target Unit's Armor Reduction Value"
I've heard a little bit of information about hash tables. Is that the sort of thing I'm looking for, to store and save information based on the unit type?
I'm a novice mapmaker who is now trying to study up on things and learn to use the Map Editor for what it's really worth.
I've taken a few cracks at trying to use a triggered combat system, (abilities that deal damage based on stats, using stats for attacks and defense), but there's one single problem that I keep facing, and that is how to store stats for a large amount of units. A large amount being somewhere around 80+.
It was easy when I planned on only using stats for the players' heroes, I just used array variables and got the player number to retrieve the stored data. But I KNOW there is a more efficient way than making a variable with an array size of 80+.
I want the triggers to look something like:
"Casting Unit deals damage to Target Unit equal to Casting Unit's Strength * Target Unit's Armor Reduction Value"
I've heard a little bit of information about hash tables. Is that the sort of thing I'm looking for, to store and save information based on the unit type?