HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Proxy Skills

06-15-2008, 08:49 PM#1
Zovc
Very amateur question here, and there likely is a very simple answer.

I want to use one skill (currently a custom skill based on storm bolt) as a proxy for another skill (Inner Fire). When I cast the first skill (storm bolt, 'Skill A'), I want the target to not be affected by Skill A's normal effect, but instead be affected by the second skill (Inner Fire, 'Skill B'). I'd rather make a custom version of Skill B for this, but it is impossible to use a custom skill in a trigger.

The reason I am doing this is because Skill B (Inner Fire) has autocast, but I do not want my player to be able to enable autocasting for the skill.

Restated, I want to use Skill B, an autocast skill, but do not want autocasting to be possible. I'm doing so by having Skill A trigger Skill B.

-
A unit Finishes casting an ability
-
(Ability being cast) Equal to (Skill A [Proxy])
-
Unit - Order (Casting Unit) to Human Priest - Inner Fire (Skill B) (Target of ability being cast)

^The result of this last time I tried was my target being stunned (and recieving the debuff for such), and the target was not affected by inner fire. The durration of Skill A (Storm Bolt)'s stun is 0, and it does not have the buff for stun listed.

EDIT: The unit has Inner Fire (Skill B) as an ability, and I can cast it normally. The target of Skill A (Storm Bolt) appears to be permanently stunned by the ability.
06-15-2008, 09:23 PM#2
Themerion
Quote:
The target of Skill A (Storm Bolt) appears to be permanently stunned by the ability.

That's because you set the duration of Storm Bolt to 0 seconds.

As long as you use Storm Bolt, the target will be stunned. You should perhaps use another ability for Skill A. (Check out Channel)
________________________________________________

Create a new type of unit with no model.
Give it lots of mana, and set the Animation - Cast Point to 0.
Also give it Skill B.

Unit - Create "New Unittype" at (Position of (Target of Ability Being Cast)) for (Owner Of (Casting Unit))
Unit - Order (Last Created Unit) to Human Priest - Inner Fire (Skill B) (Target of ability being cast)
Unit - Add a 1 second expiration timer to (Last Created unit)
06-15-2008, 09:29 PM#3
ShadowWolf
You can cast custom abilities through triggers by ordering the unit to cast the ability that the custom ability was originally based off of. For example, say you make a custom skill based off Inner Fire and call it Proxy, and give your unit Proxy, use triggers to order it to cast Inner Fire and it will cast Proxy.
06-15-2008, 09:30 PM#4
Zovc
Ah, what's a good proxy basis, then?

I was going to use Holy Light, but it can't be used on something with full health.

Also, is it possible to remove the expiration timer on summoned things like Treants?
06-15-2008, 09:34 PM#5
Themerion
Quote:
Originally Posted by Zovc
Ah, what's a good proxy basis, then?

Quote:
Originally Posted by Themerion
(Check out Channel)
Make sure to add Visible to the Options of Channel.
---
Quote:
Originally Posted by Zovc
Also, is it possible to remove the expiration timer on summoned things like Treants?
I think not. But you can pause the timer.
06-15-2008, 09:42 PM#6
Szythe
for clarification, Channel is by defaut a spell in the Neutral Hostile --> Heroes section.
Under the Options field for it, make sure that the "Visible" option is enabled, and change "Disable Other Abilities" to false.
06-16-2008, 03:06 AM#7
ShadowWolf
If you set the stun length for the stormbolt proxy to something small like 0.10 seconds, it shouldn't stun them permanently, and wont be long enough to be noticed. Same with firebolt.

You can pretty much use any missile based ability, you just have to remove the effects. Acid Bomb is an example.
06-16-2008, 02:35 PM#8
Squally425
Quote:
Originally Posted by ShadowWolf
If you set the stun length for the stormbolt proxy to something small like 0.10 seconds, it shouldn't stun them permanently, and wont be long enough to be noticed. Same with firebolt.

You can pretty much use any missile based ability, you just have to remove the effects. Acid Bomb is an example.

There is a huge side effect to using stormbolt/firebolt as a proxy spell, even with 0.1 seconds as the duration. It cancels channeling spells.
For inner fire, I'd use something like Frost Armor (old non-autocast) with all its effects disabled, and a custom buff with no animation attachments that lasts 0.1 seconds. That way, it wouldn't cancel an ally who's channeling.
06-16-2008, 04:16 PM#9
Zovc
Thanks for the suggestion. :)

I was really disliking how the stun was interrupting everything, even if only for 0.01 seconds.
06-16-2008, 04:29 PM#10
Zovc
Quote:
Originally Posted by Themerion
Create a new type of unit with no model.
Give it lots of mana, and set the Animation - Cast Point to 0.
Also give it Skill B.
Unit - Create "New Unittype" at (Position of (Target of Ability Being Cast)) for (Owner Of (Casting Unit))
Unit - Order (Last Created Unit) to Human Priest - Inner Fire (Skill B) (Target of ability being cast)
Unit - Add a 1 second expiration timer to (Last Created unit)
I forget how to give something no model... Is there a tutorial for this or is there a simple answer you can provide me with. Also, I'm not quite sure I've made this unit unselectable.
06-16-2008, 05:04 PM#11
chobibo
Object Editor --> Unit --> DummyUnit --> Art - Model File
double click it, a window will appear, on that window click the custom field and delete the text on it and choose ok. That should do it.
06-16-2008, 05:40 PM#12
Zovc
Alright, thanks. That's all of my noob questions (for now), and I found out that the Locust ability makes a unit unelectable.
06-16-2008, 06:08 PM#13
chobibo
unselectable and untargettable which means they can't be damaged.
06-17-2008, 12:59 AM#14
darkwulfv
Just so you know, the best missile proxy spell (since you were using stormbolt) would be Acid Bomb. You can completely remove all effects of it, and it isn't as clumsy as Channel can be.
06-17-2008, 10:57 AM#15
Themerion
Quote:
Originally Posted by darkwolfsomething
Just so you know, the best missile proxy spell (since you were using stormbolt) would be Acid Bomb. You can completely remove all effects of it, and it isn't as clumsy as Channel can be.

On the other hand, it will also likely remove any previous Acid Bomb buff on the units.