| 05-07-2004, 09:45 PM | #1 |
... but i need a spell/ability, that when a enemy ground unit enters within a certain radius around the unit then the unit changes e.g night elf archer, grunt runs into are, night elf archer becomes a huntress bad example, but you should get what i mean. this is for my "expansion" of warcraft. with 5 heroes per race (many are different), 15 units per race, 3 boats per race, 3 sub-heroes per race, and in 4 additional races to play as. just doing this to try and get some feedback :D |
| 05-07-2004, 10:59 PM | #2 |
Don't know what you want exactly but basically... Two ways. The first is to have a trigger that fires every 1 second or so pick all units in a certain range of the hero. All you'd have to do then is a write a long list of if-then-else loops to change the picked units into the type you want. The other way is to give the hero an aura and have a trigger pick every unit on the map with that buff every second or so. Then just do the if-then-else thing again. Alternatively you could spawn dummy casters to cast polymorph on the units you pick. |
| 05-08-2004, 01:19 AM | #3 | |
Quote:
This might work for you ;) Event: Unit - A unit comes within range 256(Can be changed to whatevery you want) of (Whatever unit) Condition: Unit - Type of (triggering unit) equal to (Whatever type of unit) Action: Unit - Replace (triggering unit) with a (whatever new unit) using The new unit's max life and mana(This can be changed) Hope this helps. :D |
| 05-08-2004, 01:24 AM | #4 | |
Quote:
I also forgot to mention that since you want it to be an ability you have to make one more trigger. You'll also have to make an ability that doesn't do anything, but can be learned by the hero(A dummy skill). First of all, have that one trigger I just posted before this one "Initially On" not checked. Because you don't want the trigger to fire yet, you want to wait UNTIL the hero learns that skill(Or so I presume). Next you have to make this trigger: Event: Unit - A unit learns a skill Condition: Hero Skill Comparison - (Learned Hero skill) Equal to (that dummy spell) Action: Turn on the trigger that I told you to have unchecked. |
| 05-08-2004, 01:51 AM | #5 |
wait.. is the spell like, if a night elf archer is near the hero with this ability, and then a grunt comes so close to it the archer turns into a huntress? if thats the case then it would be different a lot different... but tell me if its that way before i go into detail with it. |
| 05-08-2004, 03:41 AM | #6 |
I might have mis-understood you. This trigger works like this: If the hero gets that "unit changing aura" then any unit of say the type of Archer that enters within a certain radius of the hero, the Archer will change into a Huntress. |
| 05-08-2004, 09:49 AM | #7 |
no its like this, a archer has the aura or whatever, and when a enemy ground units comes very near to it then the unit will change and when there are no enemies (on the ground) within that area then the unit will change back |
| 05-08-2004, 01:43 PM | #8 |
Maby this trigger will work. |
| 05-08-2004, 03:15 PM | #9 |
If your going for the Protoss High Templar -> Archon kind of spell, you would need to create a dummy spell with the range set to whatever you want the max range to be. Then say that when it is cast, make the two units move together. After that, create some sort of special effect, remove both the units, and add in a new one. |
| 05-08-2004, 11:41 PM | #10 |
o_O ::wonders where you guys got half the ideas you got:: I'll make an example Bob has spell A unit comes near Bob --> Bob changes into another unit --> When there are no other units near Bob --> Bob changes back into original unit. |
| 05-09-2004, 03:10 PM | #11 |
actually, its bob is in the auras range. bob is an average unit, not a hero. its this mass transformation system. its gonna be hard to make it so all the units revert. cause what if they leave the aura? or the hero dies :o the initial change will be easier tho. |
