HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to create a dummy unit and that dummy unit casts a spell?

03-26-2007, 05:00 AM#1
Skurai
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
Pyrogasm
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
Skurai
Quote:
Originally Posted by Pyrogasm
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.
I dont understand what u mean.I know the trigger to make a periodic even. The problem is which trigger orders the unit to continually cast thunderclap.

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
Zyrixion
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
Skurai
Quote:
Originally Posted by Zyrixion
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]).

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
Jazradel
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
After casting the spell once, he'll continue to cast.
03-26-2007, 07:41 PM#7
Dil999
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
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to War Stomp
Collapse Actions
Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Unit Group - Add (Last created unit) to WarstompingDummies

Trigger 2. This orders all units in said unit group to cast warsomp every second.
Trigger:
Part 2
Collapse Events
Time - Every 1.00 seconds of game time
Conditions
Collapse Actions
Collapse Unit Group - Pick every unit in WarstompingDummies and do (Actions)
Collapse Loop - Actions
Unit - Order (Picked unit) to Orc Tauren Chieftain - War Stomp
03-27-2007, 03:34 AM#8
Skurai
All right,will do it once i start editing again later. Thanks for the help Jazradel and Dil999