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

Triger for this?

Status
Not open for further replies.
Level 22
Joined
Sep 24, 2005
Messages
4,821
Pick one of these actions:
  • Actions
    • Set Spell_Damage = (Spell_BASE_DAMAGE + (Real((Strength of (Triggering unit) (Exclude bonuses)))))
    • Set Spell_Damage = (Spell_BASE_DAMAGE + (Real((Agility of (Triggering unit) (Exclude bonuses)))))
    • Set Spell_Damage = (Spell_BASE_DAMAGE + (Real((Intelligence of (Triggering unit) (Exclude bonuses)))))
EDIT: Spell_Damage and Spell_BASE_DAMAGE are real type variables, Spell_Damage stores the actual damage while Spell_BASE_DAMAGE is the predefined damage amount.
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
Oh. Yes you pick the set variable action; then you pick arithmetic; then you pick convert Integer to Real; lastly you pick Hero Attribute.
 
Level 6
Joined
Oct 10, 2013
Messages
173
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Grave throw (Neutral Hostile)
  • Actions
    • Set spell_damage = Spell damage (<<<<<<< here i have my problem what to do here exactly after defining variable spell damage what to do here?)
what variable type is spell_damage? tell me :D
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
You pick arithmetic first on the drop down menu, then a popup menu displays 1 + 1, click on the first one and type how much damage you want or you could use a variable then click ok. It will then return to the previous 1 + 1 popup, the first value being changed to what you picked. Then click the right one and pick Convert Integer to Real, another popup will show, there you pick Hero Attribute.

EDIT: I attached a map, it has a trigger with the action you need.
 

Attachments

  • gogetakao.w3x
    11.9 KB · Views: 86
Level 22
Joined
Sep 24, 2005
Messages
4,821
No need to do that man, that's what were here for, just do your best to complete that map of yours, that's good enough for me. :D

EDIT: Oh about the spell-making thing, you should ask someone else, I suck at it lol.
 
Level 6
Joined
Oct 10, 2013
Messages
173
  • Grave throw
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Grave throw (Neutral Hostile)
    • Actions
      • Set Damage = (50.00 + (Real((Strength of (Triggering unit) (Include bonuses)))))
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
You forgot to add the damage action.
This is the action:
  • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing Damage damage of attack type Spells and damage type Normal
 
Level 22
Joined
Sep 24, 2005
Messages
4,821
  • Grave throw
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Grave throw (Neutral Hostile)
    • Actions
      • Set Damage = (50.00 + (Real((Strength of (Triggering unit) (Include bonuses)))))
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing Damage damage of attack type Spells and damage type Normal

It's not an event, its an action.
 

Attachments

  • gogetakao.w3x
    11.9 KB · Views: 54
Status
Not open for further replies.
Top