HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stun Owner of units

06-01-2009, 08:04 AM#1
Vervekke
Hello,

I want to stun some owners units when a mobs reach an amount of health and then flee. The flee part works but the units doesn't get stunned.

This is what I have.

Event

Unit - Bracka's Guardian 0017 <gen>'s life becomes Less than 6500.00

Conditions

BrackaFlee1 Equal to True

Actions

(This part doesn't work)
Unit - Order Bracka's Guardian 0017 <gen> to Human Mountain King - Storm Bolt Hero 0000 <gen>
Unit - Order Bracka's Guardian 0017 <gen> to Human Mountain King - Storm Bolt Rifleman 0019 <gen>
Unit - Order Bracka's Guardian 0017 <gen> to Human Mountain King - Storm Bolt Footman 0020 <gen>
Unit - Order Bracka's Guardian 0017 <gen> to Human Mountain King - Storm Bolt Footman 0021 <gen>
Unit - Order Bracka's Guardian 0017 <gen> to Human Mountain King - Storm Bolt Footman 0022 <gen>
Unit - Order Bracka's Guardian 0017 <gen> to Human Mountain King - Storm Bolt Footman 0023 <gen>
Unit - Order Bracka's Guardian 0017 <gen> to Human Mountain King - Storm Bolt Footman 0024 <gen>

(This part doesn't work)

Unit - Order Bracka's Guardian 0017 <gen> to Move To (Center of Flee point 1 <gen>)

Wait 3.00 seconds
Unit - Move Bracka's Guardian 0017 <gen> instantly to (Center of Flee Point 2 <gen>)
Unit - Make Bracka's Guardian 0017 <gen> face (Center of Facing Point 1 <gen>) over 0.00 seconds
Set BrackaFlee1 = False


Can you guys help me out.

Joris
06-01-2009, 08:16 AM#2
raid1000
lol?
a single unit cant storm bolt 20 units at a time. The actual casting of teh spell takes like 0.5 of a second.
Do it like this:
when unit hp is under 6500
set obamapoint = position of obama
create <dummy unit with war stomp ability witch you should do> at obamapoint
unit add expiration timer: 2 seconds on last created unit
unit order last created unit to orc-warstomp
call RemoveLocation(udg_obamapoint) (custom script)
-order obama to move to location
06-01-2009, 09:49 AM#3
Viikuna-
Quote:
a single unit cant storm bolt 20 units at a time. The actual casting of teh spell takes like 0.5 of a second.

Actually, it can if you set casting time to 0 and it has enough mana and casting animation time thingies set to 0 too.
06-01-2009, 10:48 AM#4
Fledermaus
I think you need to remove Move from the dummy too.
06-01-2009, 11:46 AM#5
Vervekke
I've tried what you all wrote, but im still stuck. I know that my dummy spawn but he doesnt cast the spell.

This dummy is based on a Footman. These changes I have made to the dummy.

Dummy

Abilities - Normal : Set to Locust, Invulnerable (Neutral)
(Do I have add the the war stomp ability? There is only the one with neutral 1, 2 and 3. I cant select the war stomp from the orcs.)
Art - Animation - Cast BackSwing : Set to 0.000
Art - Animation - Cast Point: Set to 0.000
Art - Has Water Shadow : Set to False
Art - Model File: Set to .mdl
Combat - Attack Enabled : Set to None
Combat - Death Type : Set to Can't raise, Doesn't Decay
Movement - Speed Base : Set to 0
Movement - Type : Set to Fly
Pathing- Collision Size : Set to 0.00
Sound - Unit Sound : Set to None
Stats - Can Flee : Set to False
Stats - Food Cost : Set to 0
Stats - Hide Minimap Display : Set to True
Text - Name : Set to Dummy

This is what I got at this moment.

Event

Unit - Bracka's Guardian 0017 <gen>'s life becomes Less than 6500.00

Conditions

BrackaFlee1 Equal to True

Actions
Unit - Create 1 Dummy for Player 2 (Blue) at (Position of Bracka's Guardian 0017 <gen>) facing (Position of Hero 0000 <gen>)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt Hero 0000 <gen>
(I can't select the war stompe Ability!)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)

Wait 1.00 seconds
Unit - Order Bracka's Guardian 0017 <gen> to Move To (Center of Flee point 1 <gen>)

Wait 3.00 seconds
Unit - Move Bracka's Guardian 0017 <gen> instantly to (Center of Flee Point 2 <gen>)
Unit - Make Bracka's Guardian 0017 <gen> face (Center of Facing Point 1 <gen>) over 0.00 seconds
Set BrackaFlee1 = False

Any other Idea?

Joris
06-01-2009, 12:52 PM#6
Bobo_The_Kodo
He doesn't cast storm bolt because you didn't give him it?
06-01-2009, 01:22 PM#7
Vervekke
Quote:
Originally Posted by Bobo_The_Kodo
He doesn't cast storm bolt because you didn't give him it?

Ive added the stormbolt and he doesn't do it.

Unit - Add Storm Bolt to (Last created unit)
06-01-2009, 02:25 PM#8
raid1000
war stomp not storm bolt!
storm bolt requires a single unit to be targeted but war stomp affects multiple units in range
so use 1 war stomp instead of 10 storm bolts
EDIT: look for the war stomp ability in the unit issue targeting with no targets
06-01-2009, 03:45 PM#9
Vervekke
Thnx all it works now.

I have deleted by dummy and created a new one. Dummy(orc tauren chieftain). Further I've added some extra actions. This is my working end result.

Event


Unit - Bracka's Guardian 0017 <gen>'s life becomes Less than 6500.00

Conditions

BrackaFlee1 Equal to True

Actions

Set BrackaPosition1 = (Region centered at (Position of Bracka's Guardian 0017 <gen>) with size (512.00, 512.00))
Unit - Create 1 Dummy for Player 2 (Blue) at (Center of BrackaPosition1) facing (Position of Hero 0000 <gen>)
Unit - Add War Stomp to (Last created unit)
Unit - Set level of War Stomp for (Last created unit) to 3
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)

Wait 1.00 seconds
Unit - Order Bracka's Guardian 0017 <gen> to Move To (Center of Flee point 1 <gen>)

Wait 3.00 seconds
Unit - Move Bracka's Guardian 0017 <gen> instantly to (Center of Flee Point 2 <gen>)
Unit - Make Bracka's Guardian 0017 <gen> face (Center of Facing Point 1 <gen>) over 0.00 seconds
Set BrackaFlee1 = False

Thnx again.

Cheers