| 03-26-2007, 05:00 AM | #1 |
I dunno jass but i am wondering if any1 can help me with this. I cast a spell that creates a dummy unit, and I want that dummy unit to cast a spell continiously. So far i created a dummy unit and gave it thunderclap on autocast but it cast the spell when and where it feels like it[and when it gets attacked]. I want the unit to cast it over and over Does any1 know the trigger for this? Thanks. |
| 03-26-2007, 05:19 AM | #2 |
Make some sort of a loop that will take a very long time to exit, or use a periodic event that orders the unit to continually cast thunderclap. |
| 03-26-2007, 05:32 AM | #3 | |
Quote:
I dont see such a trigger. U cannot order a unit to cast a specific spell but u can order it to attack. That doesnt help much. Pls elaborate on wat u mean by some sort of loop.Thank you. |
| 03-26-2007, 06:26 AM | #4 |
Question 1: Are you using Vexorian's caster system? As for a loop, I assume you know Jass? You would make a loop statement (with an increasing variable set in it) that told the unit to cast your spell, then a wait of however many seconds you want for the cooldown (assuming you wanted it to cast it as often as possible), and then an exitwhen statement of when Variable= X (where X = number of times you want it to be cast, or something to the effect, if you use a different setup) Actually, re-reading your post, I think I can conclude you are NOT using Vexorian's Caster System, which is the easiest means to put dummy caster capabilities into your map ([disclaimer] that I know of [/disclaimer]). |
| 03-26-2007, 06:46 AM | #5 | |
Quote:
I will look at it in more detail soon. Opened the map and it has alot of jass lol, stuff i dont understand since i understand only triggers.Yeah,i am a noob newbie. But i think i can figure how 2 use it anyways.Thanks alot man :) Sorry but is there a simpler way to do this, my WE couldnt compile it at all, I got a feeling this thing perhaps wasnt created for 1.21 but earlier versions of warcraft or something. I just tried opening and saving it and that didnt work.If i copy the code 2 my map, it wont work either. ALOT of errors lol I just need a simple way for a dummy unit to cast an ability.Thats all, thanks. I wonder why blizzard never just added it in as a order trigger |
| 03-26-2007, 07:14 AM | #6 |
It is an order trigger. Issue Order with no Target Isuse Order targeting a unit etc. If you want to do it continuously then: Trigger: ![]() A unit finishes casting an ability![]() Ability being cast is equal to thunderclap![]() Order triggering unit to human - thunderclap |
| 03-26-2007, 07:41 PM | #7 |
Every 1 seconds. Pick all units in playable map area and do if picked unit is DUMMY equal to true order picked unit to Orc Tauren Chiefetain - Wartomp Another way would be to add the created unit to a unit variable. I'll edit this post in a few moment with the exact trigger im trying to say. Edit: Trigger 1. this simply creates the dummy unit and adds it to a dummy unit variable. Trigger: Part 1
Trigger 2. This orders all units in said unit group to cast warsomp every second. |
| 03-27-2007, 03:34 AM | #8 |
All right,will do it once i start editing again later. Thanks for the help Jazradel and Dil999 |
