HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

BloodLust Bounce

04-12-2004, 12:38 AM#1
xXx-Tricky-xXx
Hi im making a bloodlust ability that has 5 levels but im trying to make it bouncable so like when i click bloodlust on a unit it will bounce to others with an electricty or somethign missile. So each level it will bounce to more liek level 1 it can bounce to a max of 3 then level 2 it can do 5 and so on. Can anyone help me?
04-13-2004, 06:43 PM#2
giiefgii
Event: Unit - a Unit starts the effect of an ability
Condition: Ability being cast equal to Bloodlust
Actions: Trigger - Turn this trigger off
For each Integer A from 1 to level of ability being cast x 2 do multiple actions
-Loop - Actions
--Set Bloodlust_Target = Random unit within 256 of Target unit of ability being cast
--Unit - Create 1 Bloodlust dummy caster at Position of Bloodlust_Target
--Unit - Issue order for Last created unit to bloodlust Bloodlust_Target
--Unit - Add a 2 second generic expiration timer for Last created unit
Wait 0.01 seconds
Trigger - Turn this trigger on

That should bounce to 2 units at level 1, 4 for level 2, 6 for level 3 and so on. For this to work, you have to create the new unit, Bloodlust dummy caster, and give it abilities Locust, Invulnerable(neutral) and Bloodlust. And put a space to its model file, and set its attacks enabled to none.
04-13-2004, 09:58 PM#3
xXx-Tricky-xXx
woah im totaly lost lol
04-13-2004, 10:16 PM#4
Vexorian
Quote:
Originally Posted by giiefgii
Event: Unit - a Unit starts the effect of an ability
Condition: Ability being cast equal to Bloodlust
Actions: Trigger - Turn this trigger off
For each Integer A from 1 to level of ability being cast x 2 do multiple actions
-Loop - Actions
--Set Bloodlust_Target = Random unit within 256 of Target unit of ability being cast
--Unit - Create 1 Bloodlust dummy caster at Position of Bloodlust_Target
--Unit - Issue order for Last created unit to bloodlust Bloodlust_Target
--Unit - Add a 2 second generic expiration timer for Last created unit
Wait 0.01 seconds
Trigger - Turn this trigger on

That should bounce to 2 units at level 1, 4 for level 2, 6 for level 3 and so on. For this to work, you have to create the new unit, Bloodlust dummy caster, and give it abilities Locust, Invulnerable(neutral) and Bloodlust. And put a space to its model file, and set its attacks enabled to none.
That is totally wrong, it won't bounce the 4 everytime better have a unit group variable, add all the units in the range then when making the dummy units cast the spells, remove the unit from that unit group.

And use different abilities one for the main caster and others for the dummy casters
04-13-2004, 10:23 PM#5
[niro]
Quote:
Originally Posted by xXx-Tricky-xXx
woah im totaly lost lol


OK I'll try to explain what he did to what I understood

The event and conditon are simple the basically mean:
The hero casts the bloodlust abilty

He used a for each interger a do multiple actions
So that trigger he wrote will make the following triggers run 1 + the ability level, so if the abilty was levle 1 it would run twice.

Looping actions just makes it so it runs runs after itself

Bloodlust_Target is a unit variable
This trigger simply chooses a random unit close to the hero and sets it as the Bloodlust_target

Creating the bloodlust dummy caster is simple to understand


The next trigger just means that the second the bloodlust dummy caster enters the game he will cast blood lust on the Bloodlust target(the random unit around the hero)


The expiration timer just gets rid of the Bloodlust caster dummy after 2 seconds so he doesn't cast again.

***EDIT: I think vexorian is right, you just need to modify the trigger alittle***
04-13-2004, 10:29 PM#6
xXx-Tricky-xXx
ahh i sort of understand the geiefli's trigger but i got stuck on tryign to get it set to For each Integer A from 1 to level of ability being cast x 2 do multiple actions but since it wont work what do i do? I dont understand what you mean Lord Vexorian. And are you sure this isnt able to be done without triggers? If it cant then thats ok. About time i learn triggers lol. Im not too familiar with them. But i can eventually figure out.