HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Beserk possible ?

04-30-2004, 12:32 PM#1
Iwi
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
MantisScreamer
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
Kamux
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
Iwi
I tried via trigger but you can't select the locust ability
04-30-2004, 02:44 PM#5
Kamux
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
BattleBotv8.2
Quote:
Originally Posted by Kamux
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.

call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() )

Modify LastCreatedUnit to what ever you want.
04-30-2004, 05:14 PM#7
fugly
Quote:
Originally Posted by BattleBotv8.2
call UnitAddAbilityBJ( 'Aloc', GetLastCreatedUnit() )

Modify LastCreatedUnit to what ever you want.

i think that it is call UnitAddAbilityBJ( GetLastCreatedUnit(), 'Aloc')
04-30-2004, 07:05 PM#8
ThyFlame
Check the hero ability for locust... That should work in GUI.
04-30-2004, 08:55 PM#9
JJ912
Quote:
Originally Posted by ThyFlame
Check the hero ability for locust... That should work in GUI.
They mean locust/Aloc the ability the locust units have that make them unselectable; and that cant be added with GUI. The only non-JASS way to give a unit locust is to give it in the object editor.
04-30-2004, 09:48 PM#10
Shimrra
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
Anitarf
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
Vexorian
Quote:
Originally Posted by Anitar
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.
Actually, no, that unselect solution doesn't work at all and if blizzard didn't fix it, it could lag the game a lot in multiplayer.