| 04-02-2007, 09:04 PM | #1 |
I was reading this post about shadowmelld looking for a way to desactivate it, and this guy was saying is shadow meld was doing a aura effect. Then I totally tought it be good has a vampire ability : Cloak of the gathering. But I cannot reproduce this anomaly to my advantage. So far I have tried this. 1- In custom gameplay constants I have unchecked the Invisible units bestow auras. To make it possible. 2- I have put an area effect in the shadowmeld ability. 3- I have put allowed targets in shadow meld ability. But seemingly it does'nt work. Windwalk could be an alternative, but I wonder if it could work? Do You boys and girls (any girls on this site?) have any clue that can help me out? (please no trigers on this one, except if it is a useful script) I am afraid using triggers it would get very laggy, has each time a unit will come in range of unit the trigger will be checked. Imagine when the units is surrounded by enemy units, fighting and casting spells? As always, Thank you in advance. |
| 04-02-2007, 09:09 PM | #2 |
That will never work, ever -.- Area of effect on abilities like shadowmeld does nothing. And just like i said in your oher thread, its impossible to do that without triggers. With triggers, you just pick every allied unit within range of the unit with the aura, and if its an ally apply a disabled spellbook for that player with shadoemeld in it. |
| 04-03-2007, 03:02 PM | #3 |
OK so I am going for the trigger solution. BUT I have a problem with the event. See in my map the hero at the beginning of the game is selected, then same unit type is created elsewhere. So I cannot apply the unit in range event because It (editor) ask me to select specefic unit. Seemingly the event does not take in consideration variables. It only takes preset? Of wich I don't know much(I guess it is game preset). How can I bypass that and still create a range event? Any ideas anyone ? |
| 04-04-2007, 12:47 AM | #4 |
With a unit variable. When the second non-preplaced unit is created, just have a unit variable called 'ShadowMeld' or something, doesnt matter what. Then, when this unit is created, just after the create unit command do: Set ShadowMelt = Last created unit. |
| 04-04-2007, 01:36 AM | #5 |
You can't actually do that, Dill999, unless the variable has a preset value. You'll need to do something like this whenever your 2nd unit is created: Trigger: ![]() Unit - Create one YOUR UNIT for YOUR PLAYER at SOME POINT facing Default building facing degrees
![]() Trigger - Add to YOUR OTHER TRIGGER <gen> the event (Unit - A unit comes within YOUR DISTANCE of (Last created unit)) |
