• 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.

[Trigger] Problem

Status
Not open for further replies.
Level 9
Joined
Feb 20, 2014
Messages
409
Here is my trigger to turn the intelligence of my hero (integer) to real.

Event-
Temps - Every 2.00 seconds of game time

Action-
Set intellE = (Intelligence of Myhero[1] (Inclure bonuses))
Wait 0.10 seconds
Set intell = (Real(intellE))

Here is my trigger to use the intelligence as extra dammage :

Event-
Unit - A unit owned by Player 1 (Red) starts to cast an ability
Condition-
(Casting unit) equal to Myhero[1]
Action-
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing intell damage of attack type Sorts and damage type Normal

But it doesn't work. I don't know why. the dammage dealt are just the spell base dammage.
 
Level 5
Joined
Jul 27, 2017
Messages
73
I could imagine the following cases:
- The ability is no real cast (You should change the event to unit starting the effect of an ability; maybe the english text is a bit different but this event ensures you that the ability has been used)
- If it is a cast skill then maybe you can not cause the triggering unit damaging the target (about this one i am uncertain because i didn´t used that function so far, if this the problem create an dummy you use everytime this skill is beeing cast)

And i don´t think you need the first trigger. First of all a wait 0.1 seconds when setting variables is not needed. Then you can cast the int in one line to a real and you can also call this in the second trigger.

I hope this helps you.
 
Status
Not open for further replies.
Top