| 02-12-2007, 11:24 AM | #1 |
I've decided to make a spell that links two units as long as they are near. For example I want to make spell that will link hero with his summoned unit and if one of them take damage then both take half of full damage of attack. I've created dummy aura (to prevent some abuses) and so on I've no idea how to make that. I tried to make it by variables but nothing good came from it. |
| 02-12-2007, 05:51 PM | #2 |
You may use GC to keep whose summon the unit is and then check every 1 sec if it is too far of its master or not. |
| 02-13-2007, 01:24 PM | #4 |
The issue is that the way your unit-group selection works is taht its picking every unit, including enemy units, creeps, heroes, neutrals, whatever might be within a 500 range. However, even if your hero is all by itself with the summon, the only picked units are the hero and the summon, but the conditions ((Picked unit is summoned) equal to YES) will ALWAYS evaluate to false because the hero is not of type summoned. Before you go any further, though...have you tried simply copying spirit link and changing its stats to your usage? You shouldn't need to trigger ANYTHING except maybe some code to prevent this spell's abuse. |
| 02-13-2007, 02:03 PM | #5 |
I though about it but look from this points: Spirit Link will affect other units ( even if I only choose self and summoned - so when I will add other summons too my map that comes from hero skills it I'll be bad cus it might link those unit instead of unit I want.) I want to make simple abillity but it's not so simple in WE :/. I want only to link Hero and his minion. |
