| 09-11-2003, 04:01 AM | #1 |
I want to make a mass entangling roots or mass sleep ability that affects all the within the range of a targeted point. I am still not very good with triggers. This is what i have right now, but it does nothing. I have tried other ways, but they have targeted the spell on myself or only my allies. I want to only affect the enemies' units. Mass Buff Ability Events Unit - A unit Spawns a summoned unit Conditions (Unit-type of (Triggering unit)) Equal to !SUMMONED UNIT! Actions Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Objects\RandomObject\RandomObject.mdl Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Triggering unit)) matching (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (Actions) Loop - Actions Special Effect - Create a special effect at (Position of (Matching unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl Unit - Remove (Triggering unit) from the game Any help would be appreciated. THX |
| 09-18-2003, 12:02 AM | #2 |
I';m no trigger, but it looks like ur problem would be that the art is there, but no spell has been done. So, although you have the Sleep animation, there's nothing making that unit sleep. The best thing I've heard of would be to make another unit, give it a custom-made Sleep ability, and have it cast Sleep on all units in that area. Set cooldown to 0, mana cost to 0, ect, and give it the right stats. You may need to make multiple custom units to get the casting time right, so that all the units are instantly asleep. I'd also get the model of the custom unit to a tree of something that's on an edge/unreachable area of the map, so that it's not possible/easy to find. Just set the movement speed to 0 and stuff, like a tree :ggani: |
| 09-18-2003, 07:48 PM | #3 |
The best thing I've heard of would be to make another unit, give it a custom-made Sleep ability, and have it cast Sleep on all units in that area. Set cooldown to 0, mana cost to 0, ect, and give it the right stats. You may need to make multiple custom units to get the casting time right, so that all the units are instantly asleep. I'd also get the model of the custom unit to a tree of something that's on an edge/unreachable area of the map, so that it's not possible/easy to find. Just set the movement speed to 0 and stuff, like a tree I am not even worried about the actual spell. That will be easy once i find out how to target multiple units. If i got that the graphics to work i would just also add in set unit speed to 0 for 30 secs or whatever i wanted. Techincally, I wouldn't have to make a custom spell, just use triggers to edit add to a current one. I don't want to have trees cast my spells. What if the enemy units were outside the range of the magical, spell-casting trees. |
| 09-18-2003, 08:09 PM | #4 |
If no one here can help me, I will move the post to a JASS forum. |
| 09-18-2003, 09:21 PM | #5 |
give it another 3 days b4 you move it. most threads don't get posted in for around 2-4 days. Anywho, I have no idea. My guess would be the attaching of thunderclap to overhead of "matching unit," but i'm not sure. I suck at triggers. |
| 09-20-2003, 06:45 AM | #6 |
In your unit group selection, you need to change "Picked Unit" to "Matching Unit" and "Matching Unit" to "Picked Unit." You just mixed them up, that's all. You might want to change "Triggering Unit" references to either "Summoned Unit" or "Summoning Unit", depending on the case. Also, instead of Enemies of Player 1 (Red), why not use Enemies of Owner of (Summoning Unit)? |
| 03-21-2004, 09:52 AM | #7 | |
Quote:
well i have done a mass sleep spell i used this triggers base the spell of inferno change damge to 0 and no effects and no buffs and so make a dummy unit change his scale sise to 0.10 art model file to abolish magic targeted as air and change so he is flying now make the mass sleep target spell make new spell base it of sleep art target invisibility data stun duration chosse your self... cast range 2000 cooldown 0 duration hero duration normal well i used 15 for both mana cost 0 now its done give the mass sleep target spell to your hiden caster the dummy unit to change the area of effect go to the main spell mass sleep (the one based on inferon and change area of effect to what you want then change the trigger unit group pick every units WITHIN RANGE OF ****<----what you want =) I hope this helps you :D events=Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point conditions= (Issued order) Equal to (Order(dreadlordinferno)) (Distance between (Position of Blood Mage 0000 <gen>) and (Target point of issued order)) Less than or equal to 1000.00 Actions Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Undead\DarkSummoning\DarkSummonMissile.mdl Cinematic - Fade out over 0.00 seconds using texture Dream and color (11.00%, 90.00%, 1.00%) with 15.00% transparency Unit Group - Pick every unit in (Units within 100.00 of (Target point of issued order)) and do (Actions) Loop - Actions Unit Group - Add (Picked unit) to UnitGroup_Spell_5 Unit - Create 1 Hiden Caster for Player 1 (Red) at (Position of (Picked unit)) facing Default building facing degrees Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Picked unit) Wait 2.00 seconds Cinematic - Fade in over 2.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency Special Effect - Destroy (Last created special effect) |
| 03-21-2004, 09:54 AM | #8 | |
Quote:
|
