TheLegend
New Member
- Reaction score
- 10
I'm trying to make a new status system using vjass and i bumped into some serious problems. i made structures (databases) containing the info of a unit (skill,strength,constitution,charisma,inteligence and agility) but I find it hard to attach the database to the units on the map. EVERY unit should have its own database (thats easy to make) but its hard to call that database for another unit (eg. the attacked)
Its like this: when you attack the unit it compares the two databases and does the following skill/10 = critical strike chance, agility/10 - chance to avoid critical strike, (skill of attacker)/(agility of defender + skill of defender) = hit chance and so on... How can I call the unit's database (its created as soon as the unit enters the map and its values are changable)
Its like this: when you attack the unit it compares the two databases and does the following skill/10 = critical strike chance, agility/10 - chance to avoid critical strike, (skill of attacker)/(agility of defender + skill of defender) = hit chance and so on... How can I call the unit's database (its created as soon as the unit enters the map and its values are changable)