HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Spell Help

02-16-2004, 01:46 PM#1
Hiro
Ok i'm making a spell that when used it will increase the attack speed of the unit by 100%, increase its damage by 100%, increase its movemt speed by 50%, and increase damage taken by 200%

I based it off beserk and it works fine until i remembered/figured out that beserk doesn't increase damage. Now I know i can probably do this with triggers but i want to know if there is a spell that has all those fields and i can just edit it to make it easier.
02-16-2004, 03:43 PM#2
Krin
There is no ability that has all those fields, sorry. You can either do it with triggers or you can put damage on a seperate ability (roar)
02-16-2004, 04:14 PM#3
Hiro
Damn, ok I think I'll use triggers then....
02-16-2004, 04:43 PM#4
TitanRevamped
use triggers!

events: unit starts the effect of an ability ( i tihk)
condition: spell being cast equal to <insert spell name>
action: create 1 <unit that has roar>

issue triggering unit to cast roar or something like that!
02-16-2004, 06:10 PM#5
Hiro
I'll think of something later today. Thanks for the help!
02-16-2004, 09:50 PM#6
Thrall_89
Just a thought ( i dont have time to test it right now), but you can use a fairly simple trigger so that when a Unit casts that ability, it activates a hidden ability that increases the units damage as well.

Just a thought ( i dont have time to test it right now), but you can use a fairly simple trigger so that when a Unit casts that ability, it activates a hidden ability that increases the units damage as well.
02-16-2004, 10:34 PM#7
DescX
Silly idea, but just for completeness I'll throw it into the mix here :).

Create an invisible, Aloc'd flying unit with a customized War Drums aura on it. Then:
1) Spawn the unit
2) Order it to follow the unit that cast Berserk
3) Give it a Generic Expiration timer equal to how long your Berserk spell lasts.

...Yeah :).
02-16-2004, 10:41 PM#8
Hiro
Thanks for the help and from the beginning i was going to use a hidden ability to be casted along with my ability. But anywho thanks for the help and i just got it to work!
02-17-2004, 08:04 PM#9
Hiro
Ok now i have another Problem.....

I cant find the trigger to make the unit cast roar.... Well it does but it only gives an increase by Roar's default game stats and i want roar to be my custom value of 100% damage increase.

Is there a trigger to make a unit cast a custome ability or do they just allow you to cast default game abilities..... Well here's what i have so far for the trigger....

Untitled Trigger 001
Events
Unit - Bob 0006 <gen> Finishes casting an ability
Conditions
(Ability being cast) Equal to Uhhhhhh
Actions

Yes... Uhhhhh is the name of the spell... I need to think of a better name....
02-17-2004, 10:35 PM#10
Shark
don't use roar, it has a wide-area effect, and will effect all units nearby... might i suggest reversed cripple ? its a buff, and has a "percentage attack bonus/penaly" field....just make an alocd unit that will cast this cripple onto the berserking unit and voila....

as for the trigger try this one:

E: unit is issued an order with no target
C: ordered unit equal to <bob>
C: issued order equal to [berserk]
A: create <Alocd unit> over the berserking unit
A: order <last created unit> to cast custom cripple on <bob>

that's the guideline, u figure the trigger out....
02-17-2004, 11:04 PM#11
Hiro
Phew... I finally got it :D

I just made an item with the second ability and it works!!!!! Yay!