Hey, I'm trying to create an Item weight for my RPG, it's basically subtracting movement speed from the Hero when carrying an item; Ex.: Chain Armor, 20lbs. Quilted Armor, 5lbs I would use the weight to create some formula to remove a realistic ammount of speed. The problem is, I could always 'Set unit speed,' but that wouldn't fit in with having Speed modifying items, such as boots of speed. I could just base a spell off of 'Slow' to subtract a % of the movement speed, and that would work nicely. Except, the ammount of speed reduction depends on how much strength your hero has, the more, the less speed is reducted. This could be accomplished, by simply adding movement speed to the hero on each strength interval I suppose, and then I'd need to make sure that the speed never actually adds onto the hero when it is not wearing anything, that would just make him faster. But in fact, only add movement speed when an item is equiped, and no more than the item takes. I'm not completely sure how this would work, but if someone could find a good formula or a different approuch to this that would be awesome! This would also be a very nice spell
The only idea I can think of is having a boots of speed skill added to the unit and nothing else. You can't add and substract as much as you want like you can do with stats or with HP/MP (normal not maximum). I don't think the strength stuff can be accomplished.
Here is a way you can use agility to increase/decrease movement speed. I didn't read your post carefully enough so this propably doesn't help you but since I have already written it I shall post it. I came up with one way of doing it:
first give a value for the "Hero Attributes - Movement Bonus per Agility Point".
make a trigger that is activated when a unit acquires the item
use the "Modify Hero Attribute" action to decrease the units agility
here you could do a function that counts how much agility will be decreased paying attention to the amount of strenght the unit has
make another trigger in the same way that increases the agility of the unit back when it drops the item
Now the agility of the unit that gets the item is decreased - decreasing attack and movement speed. But if the unit's primary attribute is agility then it's attack damage will also be decreased.
The only problem would be if the hero would be if the hero would be an agility hero. In this case the hero would have damage decreased as well. And btw, agility affects the attack speed, not the movement speed of the unit. So nope, this would certainly not work!