Ability help!

caniboy

New Member
Reaction score
2
Hi,
i do a new Ability in Warcraft III but i need help...
I do it in World Editor so its not very nice but i like it :)
i want that a "Circle" of effects is arround the unit who is doing the ability...
here is my first try:

Code:
Aktionen
    Set Caster = (Triggering unit)
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (200.00, 0.00)) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (100.00, -100.00)) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (-100.00, -100.00)) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (100.00, 100.00)) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (-100.00, 100.00)) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (-200.00, 0.00)) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (0.00, -200.00)) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCasterOverhead.mdl
    Wait 0.50 seconds
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (250.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    Wait 0.01 seconds
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (150.00, -150.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    Wait 0.01 seconds
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (-150.00, -150.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    Wait 0.01 seconds
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (150.00, 150.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    Wait 0.01 seconds
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (-150.00, 150.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    Wait 0.01 seconds
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (-250.00, 0.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    Wait 0.01 seconds
    Spezialeffekt - Create a special effect at ((Position of Caster) offset by (0.00, -250.00)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl

its very cheap and its not a circle and its not smooth enough...
how can i fix it?
Please help me!
Thank you very much...
caniboy
 

Trollvottel

never aging title
Reaction score
262
Use Point with polar offset instead of point with offset. then you can enter radius and angle.
 

DiFm

New Member
Reaction score
35
Use For each integer instead.

You will be able to make those lines to about 5 lines instead.

For each integer from 1-(Number of how many special effects)



Set TEMP_POINT = position of casting unit
For each integer from 1-6
loop
Create Special effect at Temp_point offset by 200 towards (facing of unit) + (60 x (integer A - 1))
set Special effect[integer A] = last created special effect
wait 0.1
//end loop
For each integer from 1-6
loop
Destroy Special Effect[integer A]
call RemoveLocation(udg_TEMP_POINT)


I did it in 8 actions and its leakless also.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top