HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A Few Spell Design Questions...

08-08-2008, 01:16 PM#1
Evincar
I need some direction on how to create a passive mana sheild ability.

Would it be similar to design a passive frost armor ability also?

I'm also unsure of how to make an ability that when used is like a self-buff that adds a texture to the units weapon and the next time it attacks a unit a spell is cast on the target. Not sure what that is called either, sort of like a charge-up and strike ability.

I do pretty well with triggers, just starting to use/learn JASS.

Also, what do I all need to implement a spell crit system, I have a few ideas but not sure how to put it all together.


Thanks in advance!
08-08-2008, 02:45 PM#2
Vexorian
Quote:
Would it be similar to design a passive frost armor ability also?
Passive frost armor is relatively easy. You just need a passive ability that has the special effect frost armor tends to use, an active frost armor ability that it is what actually handles the spell's game effect but does not have any buff fx. And its buff got the black32.blp icon so you don't notice.

If unit is attacked and unit has passive ability but does not have the buff, make a unit cast the active on it.

Manashield is harder, you'll have to mess with damage detection and blocking, but there's a lot of work about that everywhere else.

What's a crit system?
08-08-2008, 04:14 PM#3
Evincar
I guess if all the spell damage in my map was done via triggers/scripts it would mean that there would be a small chance for each spell to crit - deal 2x damage.
08-08-2008, 07:05 PM#4
Pyrogasm
That would be basically the only way to do it. However, this might help you in doing so.
08-08-2008, 07:11 PM#5
moyack
Or this can help you.
08-09-2008, 07:22 PM#6
Evincar
Quote:
Originally Posted by Evincar
I'm also unsure of how to make an ability that when used is like a self-buff that adds a texture to the units weapon and the next time it attacks a unit a spell is cast on the target. Not sure what that is called either, sort of like a charge-up and strike ability.

What about this?
08-09-2008, 08:04 PM#7
Sabertooth_X
I'm assuming you work in JASS, but I'm not sure, but I know in GUI it's:
Trigger:
Pre-Strike FX
Collapse Events
Unit - A unit starts the effect of an ability
Collapse Conditions
(Ability being cast) equal to [YourSpell]
Collapse Actions
Special Effect - Create special effect attached to the [weapon] of [YourUnit] using [Desired FX]

Then detect when it attacks next, and remove the fx and go through the rest of the spell.