Custom Auto Cast Spell

killzerker

New Member
Hi, I'm currently having a trigger problem with my own spell im making its called "Precision Strike" basically this "Auto Cast Spell" will give you bonus damage with the multiplication of your agility of when you attack with this auto cast spell. I just cant make the auto casting part work nore the text. It will work normaly if you click the spell and target the enemy unit, but the auto cast part wont work. Can anyone help?
 
Werbung:

Benx_X

New Member
just try searing arrows with no bonus damage and use some integer triggers or somethin i might look into it a bit later rob
 

killzerker

New Member
did you use an auto-cast spell to begin with? like searing arrows? you can't make a non-auto-cast into an auto-cast.
[/b]

Yes I did actually, I started off as using "Searing Arrows", but I got no result there. Then I thought I had it when I used "Cold Arrows" because of the buff. Yet again that screwed over for me, pretty sure closest bet would be using "Cold Arrows". I still have the problem though, and cant get it to work :confused:

Here is the trigger below with my problem

<img width=\"501\" class=\"attach\" src=\"http://i39.photobucket.com/albums/e199/killzerker/Problem.jpg\" border='0' alt=\"IPB Image\" />
 

abdumac

New Member
killzerker, u didn't have to take a screen shot of the triggers, wc3 anvil has a trigger code thigy which will automacly turn your text from writing to trigger form..in the world editor click on ur trigger and click copy as text, then in the reply in here, click once on the trigger code, and past in the code, and then click on the trigger code again and it'll work.

here i'll give u an example:

<div class='triggertop'>TRIGGER</div><div class='triggermain'> s1
Events
Unit - A unit Begins casting an ability
Conditions
general.gif
(Ability being cast) Equal to Battle Cry
tree_spacer.gif
action.gif
Actions
tree_spacer.gif
tree_spacer.gif
unitgroup.gif
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
action.gif
Loop - Actions
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
if.gif
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
condition.gif
If - Conditions
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
general.gif
(Picked unit) Equal to (Casting unit)
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
action.gif
Then - Actions
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
game.gif
Game - Display to (All players) the text: it works, u can rep...
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
action.gif
Else - Actions
</div>
 

killzerker

New Member
killzerker, u didn't have to take a screen shot of the triggers, wc3 anvil has a trigger code thigy which will automacly turn your text from writing to trigger form..in the world editor click on ur trigger and click copy as text, then in the reply in here, click once on the trigger code, and past in the code, and then click on the trigger code again and it'll work.

here i'll give u an example:

<div class='triggertop'>TRIGGER
<div class='triggermain'> s1
Events
Unit - A unit Begins casting an ability
Conditions
general.gif
(Ability being cast) Equal to Battle Cry
tree_spacer.gif
action.gif
Actions
tree_spacer.gif
tree_spacer.gif
unitgroup.gif
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
action.gif
Loop - Actions
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
if.gif
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
condition.gif
If - Conditions
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
general.gif
(Picked unit) Equal to (Casting unit)
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
action.gif
Then - Actions
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
game.gif
Game - Display to (All players) the text: it works, u can rep...
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
tree_spacer.gif
action.gif
Else - Actions
</div>
[/b][/quote]

Precision Strike
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Precision Strike (Warsong Assassin)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Precision Strike (Warsong Assassin) for (Casting unit)) Equal to 1
Then - Actions
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (0.75 x (Real((Agility of (Casting unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
Floating Text - Create floating text that reads (+ + (String((0.75 x (Real((Agility of (Casting unit) (Include bonuses)))))))) at (Position of (Casting unit)) with Z offset 10.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Else - Actions
Do nothing

Better? So can anyone help me?
 
Werbung:
Top