• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Count Damage ant Display it?

Status
Not open for further replies.
Level 12
Joined
Nov 24, 2007
Messages
543
I was wondering is the a way to this:
Lets say a spell has 250 base damage and a trigger for that spell that adds the heroes Int to the damage.Can I make a trigger wich would display the amount of damage that unit has suffered?
 
If you want i can post here a map that contains Damage System.
Example: Every single hit will appear damage dealt
and every spell casted will appear as well.
 
1-First create a real variable (I'll call it WTF here)
2-Open actions and choose Set Variable
3-on Set Variable in first field choose WTF
4-in second Field choose Aritmethic
5-When you choose Aritmethic you will see 2 fields and an operator there (+,-,x,/)
6-Choose first one and type 250 press ok
7-Leave operator as +
8-Choose second one and say Convert Integer to Real then You will see one field there
9-Choose Hero - Attribute of Hero from there
10-There you see 3 fields
11-From choosing hero choose Event Response - Triggering Unit
12-From choosing attribute choose Intelligence
13-From choosing include bonuses choose true
14-press okay and okay and okay until that action window is closed

There WTF became
250 + intelligence of casting hero

If you want to multiple intelligence with something
in step 8 you choose aritmetic instead of convert integer to real
and type multipler in first field
choose X as operator
then follow from step 8 to end for second field
 
Because 250+int was just an example. For the same fact it's another value.
Also keep in mind that the spell could have multiple levels.
Also keep in mind that this might be needed for multiple abilities.
And also keep in mind that this might even be wanted for other damage sources too.

I guess that pretty much sums it up. Your idea is good for 1 spell with 1 constant value, but this is probably for more.


EDIT: My 700th post! :thumbs_up:
 
Last edited:
Because 250+int was just an example. For the same fact it's another value.
Also keep in mind that the spell could have multiple levels.
Also keep in mind that this might be needed for multiple abilities.
And also keep in mind that this might even be wanted for other damage sources too.

I guess that pretty much sums it up. Your idea is good for 1 spell with 1 constant value, but this is probably for more.


EDIT: My 700th post! :thumbs_up:

well its easy to make it a level spell.

250 + (level of casting unit x 50) + (int of castin unit x level of casting unit x 0.5)

or sth like that
 
Umm..
  • Lol.
    • Events
      • A unit starts the effect of an abillity
    • Conditions
      • Ability being cast equal to YourAbility
    • Actions
      • Set CasterInt[((Player number of (Triggering player)] = Int of (Triggering Unit)
      • Set CastingHero[((Player number of (Triggering player)] = (Triggering Unit)
      • Make CastingHero[((Player number of (Triggering player)] damage a cirkular area (radius 10) around (target unit of (Ability being cast) dealing CasterInt [((Player number of (Triggering player)] x YourExtra Damage
 
Status
Not open for further replies.
Back
Top