| 04-30-2004, 12:32 PM | #1 |
Hi, I want to make a spell called Beserk, which is supposed to make my hero hit faster but uncontrolable meanwhile, like the locust ability. Thanks ! |
| 04-30-2004, 12:54 PM | #2 |
you can give it an alternate unit that it morphs into and have that be like a serpent ward (it attacks but you don't control it), but it could move too. You could also give control of the unit to an allied computer that attacks your enemies. |
| 04-30-2004, 01:28 PM | #3 |
Can't you just make a trigger that detects if the spell is cast and add the locust abillity to the triggering unit. |
| 04-30-2004, 02:37 PM | #4 |
I tried via trigger but you can't select the locust ability |
| 04-30-2004, 02:44 PM | #5 |
Then you can try the method mentioned by MantisScreamer and maby add locust to the alternate unit, or you could use jass to add the locust abillity, but I don't know the abillity code. |
| 04-30-2004, 04:51 PM | #6 | |
Quote:
call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() ) Modify LastCreatedUnit to what ever you want. |
| 04-30-2004, 05:14 PM | #7 | |
Quote:
i think that it is call UnitAddAbilityBJ( GetLastCreatedUnit(), 'Aloc') |
| 04-30-2004, 07:05 PM | #8 |
Check the hero ability for locust... That should work in GUI. |
| 04-30-2004, 08:55 PM | #9 | |
Quote:
|
| 04-30-2004, 09:48 PM | #10 |
To do this, create a modified Berserk ability that does the speed incease that you want. Next make a Com that is allied with the caster. Then use this trigger: Code:
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to <YourSpell>
Actions
Unit - Change ownership of (Triggering unit) to <AlliedPlayer> and Retain color
Unit - Add <ModifiedBerserk> to (Triggering unit)
Unit - Order (Triggering unit) to Orc Troll Berserker - Berserk
Wait 2.00 seconds
Unit - Remove <ModifiedBerserk> from (Triggering unit)
Unit - Change ownership of (Triggering unit) to <OriginalOwner> and Retain color |
| 04-30-2004, 10:25 PM | #11 |
Another option would be that when this spell is cast, a trigger is activated that deselects the hero whenever it is selected. That way, it cannot be controlled. |
| 04-30-2004, 10:41 PM | #12 | |
Quote:
|
