| 01-23-2004, 02:56 PM | #1 |
My last post on this issue was deleted due to the "hack" so i'll give a go at it again, how do you make units that are unselectable but still targetable. Locust doesnt seem to work, because I let the computer attack the locusted unit with a spell (chain lighting) but it doesnt work. note: The unit is in a variable so its not a select units in region kind of flaw. |
| 01-23-2004, 03:06 PM | #2 |
Unselectable but vulnerable: Custom Script : call UnitAddAbility( unit, 'Aloc') Custom Script : call UnitRemoveAbility( unit, 'Aloc') Unselectable, vulnerable and targetteable: Custom Script : call UnitAddAbility( unit, 'Aloc') Unit- Add (Chaos morph) to (unit) ** Chaos morph is a chaos based spell that has no tech requirements and morphs the unit to the same unit. |
| 01-23-2004, 03:41 PM | #3 |
Wow, so it is possible, thx. But my units come with locust (so i dont need to add it), is that a problem? And i'm guessing that ill have to take the Chaos morph way, so is there a way to add them to each unit in a loop because the trigger would go a little bit like this then (if it was no custom script) for each integer A from 1 to 8 do: add ability chaos morph to outerpowerballs[for loop integer A] for each integer A from 1 to 6 do: add ability chaos morph to secondlinepowerballs[for loop integer A] and so on down to 1 Well, do you NEED to use that custom script way because there is a unit - add ability function... |
| 01-23-2004, 04:55 PM | #4 |
I think it works without custom scripts, maybe he forgot add ability in GUI came with 1.10... |
| 01-23-2004, 04:55 PM | #5 |
I'm having 2 things in mind: 1) pick all units in unit group of unit-type powerball owned by player 1. add chaos morph to picked unit (i just deleted the requirements (chaos) and changed the data - new unit type to PowerBalls.) 2)Let them have the Chaos Morph ability form the beginning like Locust, but researching the upgrade. This does raise the question, since i recreate those units everytime, will the next 'wave' of PowerBalls also be targetablle by spells??? What would you do? |
| 01-23-2004, 06:25 PM | #6 |
Nevermind I found a good solution --> morphing into the same unit that doesnt have locust. |
