• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to set a unit group affected by a damage spell?

Status
Not open for further replies.
Level 2
Joined
Nov 11, 2005
Messages
7
Hi, I tried to use the search function, didn't find anything on this, though I'm sure it's been looked at before. I want to have it so I cast chain lightning, and every unit that is hit by the spell is put into a unit group so I can spawn casters at their feet. I tried to use the damage source in unit comparison, but I don't think that works. Is there something simple I'm missing? Much obliged.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
I think he saw the chain lightning in Defi4nc3's ORPG
thats a custom spell with JASS
Its too easy to create a chain lightning with JASS
learn JASS and make one
 
Level 35
Joined
Oct 9, 2006
Messages
6,394
I think he saw the chain lightning in Defi4nc3's ORPG
thats a custom spell with JASS
Its too easy to create a chain lightning with JASS
learn JASS and make one

Not everybody have the time to learn JASS or can. He could make it this way:

(basic idea not the triggers)

The first unit uses his spell (it targets one unit)
Then the trigger gets it (unit is effected by ability) set to unit[1]
Then the trigger makes the targeted unit throw a lighting spell at a random unit in range of targted unit (or some other distance) and set then gets the next targeted unit setting him to unit[2] and so on. Now you just make a trigger that creates units (casters) at position of unit[1-2-3 so on]

That would reguire you to create the same number of arrays that the ability can jumb. And some dummy unit to fire the ability from the position of the targeted unit (and the dmg dealt should be of the type: make casting unit dmg targeted unit blabla )

Hope that gives a basic idea... If you dont have any idea of what I mean I could post a trigger example.

btw: this is a way to do it in GUI, but will reguire you to add some locals and so in order to make it MUI
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
-.- With GUI it wont be MUI with Jass it will
~Problem Solved~

its awsome with JASS because of chain lightning jump interval is bigger than 0.5 so we can use TriggerSleepAction freely and no Handle Vars or CSCache required

Detailed Information: First of all you will need group actions inside GUI trigger to detect nearby units for Jumping to another unit. In GUI actions group actions called in other functions so you need to create different locals in them and transfer variables with "bj_"s or Globals.

Umm nvm dont read the post
(why dont you people learn JASS ? No no the question is "why do you people learn GUI ?")
 
Level 35
Joined
Oct 9, 2006
Messages
6,394
-.- With GUI it wont be MUI with Jass it will
~Problem Solved~

its awsome with JASS because of chain lightning jump interval is bigger than 0.5 so we can use TriggerSleepAction freely and no Handle Vars or CSCache required

Ya ya I know JASS is great... but quite a lot users dont know it = you could be userfriendly and post a GUI trigger, with the needed JASS (like locals and so) to make it MUI.

It is the way I believe is the best solution.:wink:
 
Level 35
Joined
Oct 9, 2006
Messages
6,394
And Red Baron, I don't think you fully understand MUI. "locals and so" are not the answer to all MUI. Only to very simple things involving waits. Since this is not very simple, and does not generally involve waits, "locals and so" wouldn't help make it MUI.

Correct.. I dont know much of JASS... When I write locals and so.. it is generally because I havent even looked at how this trigger would look.. and locals was the first which came to my mind (due to my very limited jass knowledge) But the trigger is suggested would only reguire locals, and that other one mentioned in the tutorial how to make spell MUI (what it says is all I know about jass... as said limited)...which I cant remember.

Good you postet that link, as my comment was more meant to get some proper answear from Need_02 then to actualy make a perfect answear.. now you made the answear insted.
 
Status
Not open for further replies.
Top