• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Big System Request..

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
I really don't know if there is a system like this already. I can't find it.
But a system like this would be really helpful to much people I think.

I need it for my RPG to give my spells a critical strike chance.

Is there a way to track down +damage things like items like Claws of Attack, or the Avatar/Inner Fire effects.
This would be useful for spells with "Deal 1.5x damage +50".
All I can do now is using attributes like 2*Agility + 50 or something.
But there isn't a way to detect a unit's attack damage.

If someone knows something that looks like this, please tell me.
 
Level 4
Joined
Mar 15, 2008
Messages
71
its easilty done
do it like this---don't have time right now to do a trigger adition but here it is:
if you want your crit chance to be 1% do it like this...if you want a diffrent percentage you could figure it out from this:
event-unit finishes casting a spell

set chance (integer) = random number between 1 and 100
if chance = random number between 1 and 100
then
unit - damage target of ability being cast for (//the damage of the spell...lets say://) (100 * level of SPELL for casting unit) magic spell damage
 
Level 9
Joined
Oct 17, 2007
Messages
547
I think he means the attack of a hero after all the extra bonus are calculated e.i. items, buff spells, auras etc... I'm trying to figure that one out too lol.
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
Yes for spells it isnt hard. I can do that myself.

But here's an example of one of my spells:

Ability called Stone Bash.
(This ability is an autocast Frenzy with 0% atk/move speed increase.. But it gives the hero +35atk dmg. When the Hero hits a target the bonus damage is lost, and the target will get stunned for 2 seconds.

Stone Bash ON:

  • Unit - A unit Starts the effect of an ability
  • (Ability being cast) Equal to Stone Bash (Protector 1)
  • If ((Level of Stone Bash (Protector 1) for (Triggering unit)) Equal to 1) then do (Unit - Add Stone Bash (+35 bonus damage effect) to (Triggering unit)) else do (Do nothing)
  • Trigger - Turn on Stone Bash OFF <gen>
Stone Bash OFF:

  • Unit - A unit Is attacked
  • (Unit-type of (Attacking unit)) Equal to Protector
  • Unit - Create 1 DUMMY1 for (Owner of (Attacking unit)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
  • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
  • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Attacked unit)
  • Unit - Remove Stone Bash (+35 bonus damage effect) from (Attacking unit)
  • Trigger - Turn off (This trigger)

This ability uses the unit's normal attack damage.. Like 50 + 50 (from a weapon) and the +35 from this ability.
If I want an attack like this to crit.. What should I do? This is a bad example, because Critical Strike would work with this too..
And my second question.. How can I make ability's that become better with the unit's normal attack damage?
 
Status
Not open for further replies.
Top