HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Splash

10-26-2005, 02:05 AM#1
Spybloom
I'm trying to create a ranged spell with splash. How would I make a spell like this? I think I'm going to have a few, so please explain well. Thanks!
10-26-2005, 08:57 AM#2
Anitarf
You mean a triggered spell, right? A point target area-of-effect spell?

First, you need a "blank" spell for the unit to cast. It can be based on any area of effect spell, but the use of some is not advised. Death&decay and earthquake destroy trees, dispell abilities will destroy blight. You can use stuff like Silence, and for channeled spells, Cloud or Monsoon.

Once you have such a spell, you need triggers to do the actual spell effect. On the event "unit starts the effect of an ability", check if the "ability being cast" is the right one in the conditions, and then take the location "target point of ability being cast", make a unit group "units in range of location" and then pick all units in that group and apply whatever effect you want to them (damage, other spells...).
10-26-2005, 05:44 PM#3
Tim.
Incase you do not know how to apply the damage, In GUI: 'Unit - Damage Area' use that along with what Anitarf told you.
10-27-2005, 06:16 PM#4
Spybloom
ok, right now I have:

Events:
Unit - Chaos Bringer 0186 <gen> Starts the effect of an ability

Conditions:
(Ability being cast) Equal to Chaos Ball

Actions:
Region - Center chaos ball <gen> on (Position of (Attacked unit))
Unit Group - Pick every unit in (Units in chaos ball <gen>) and do (Actions)
Loop - Actions

I don't know how to get the damage, though. I chose silence for the splash of the spell, and I'll just keep the silence part of the spell, but how do you add damage onto it? I'm guessing it would go somewhere in the [Loop - Actions] but I don't know which action it would be.
10-27-2005, 06:49 PM#5
Anitarf
Quote:
Originally Posted by Spybloom
I don't know how to get the damage, though. I chose silence for the splash of the spell, and I'll just keep the silence part of the spell, but how do you add damage onto it? I'm guessing it would go somewhere in the [Loop - Actions] but I don't know which action it would be.
Well, obviously, you need to damage the units as they are being picked one by one. So, use the "unit-damage target" trigger action in the loop and damage the picked unit.

However, things won't work correctly because of a mistake you made: you used the event response Attacked unit, which can only be used in triggers that run on "unit is attacked" event. What you want to have, instead of (Position of (Attacked unit)), is (target point of ability being cast).

Also, don't use a rectangular region for defining the unit group. Instead, define the group as "units in range". That way, the units that will be damaged will be chosen in a circle rather than in a rectangle.
10-28-2005, 02:30 AM#6
Spybloom
Alright, I\'m just messing around a bit seeing what works, which is why I have a different thing than what you said.

Events:
Unit - Chaos Bringer 0186 <gen> Starts the effect of an ability

Conditions:
(Ability being cast) Equal to Chaos Ball
(Level of Chaos Ball for (Triggering unit)) Equal to 1

Actions:
Region - Center chaos ball <gen> on (Position of (Attacked unit))
Unit Group - Pick every unit in (Units within 250.00 of (Center of chaos ball <gen>)) and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage circular area after 0.50 seconds of radius 250.00 at (Center of chaos ball <gen>), dealing 50.00 damage of attack type Spells and damage type Normal

The region is just the default square, I changed it to units within range. The extra condition makes it so that it\'ll be different for each level of the ability. I think that this will actually work now. If not, then I\'ll just fiddle around a bit.

EDIT: It works now, thank you very much
Are you going to update battle for hoth, tim? The ships need to be faster
10-28-2005, 06:12 AM#7
Anitarf
Wait, for every unit, you do splash damage to all units? So, if you have 5 enemies in the target area, each will take 250 damage. That's not right. I don't know how it works anyway, because you still center the region on a nonexisting point (there's no attacked unit in this trigger, so it should default to center of the map, read what I said earlier). Using the region is also highly unnecessary, you center it at a point so that you can later use it's center as a point... :/ Just "pick every unit in (Units within 250.00 of (Target point of ability being cast))". And for each picked unit, damage it, not all the units in that area.
10-28-2005, 04:09 PM#8
Spybloom
When I edited my post, I forgot to change my unit group action to

Unit Group - Pick every unit in (Units within 250.00 of (Center of chaos ball <gen>)) and do (Actions)
Loop - Actions
Unit - Cause (Triggering unit) to damage circular area after 0.50 seconds of radius 250.00 at (Center of chaos ball <gen>), dealing 50.00 damage of attack type Spells and damage type Normal

That's what I have in the editor. The ability works like that.
10-28-2005, 09:19 PM#9
Tim.
Quote:
Originally Posted by Spybloom
Are you going to update battle for hoth, tim? The ships need to be faster

Perhaps some day; however for now the project is not being worked upon due to the new main project.