How do i make a spell, dealing (your damage base+Integer)

tobbygnome

New Member
Reaction score
2
This is an rpg so u only get one hero!
I want to know how to make a spell dealing (damage base for your unit + another amount of damage, lets say +25 damage. So its like a spell that damages your target for your amount of damage plus an extra amount. I have searched triggers, and couldnt find much. but if there is any spells i could model off of, or any triggers i could use to make up this spell, or just info to help me,then that would be much appreciated. thx :)
 

hell_knight

Playing WoW
Reaction score
126
I really do not know how to detect base damage, but if it is a hero try using the heros attributes example the heroes str/agi/int.

Must be triggered though.
 
M

Mythic Fr0st

Guest
First go to Game constants, and find how much damage per strength point, you get (or how much per primary attribute)
Code:
Event
   - A unit starts the effects of an ability
Conditions ability being cast equal to shoot idiot
Actions
   - if casting unit equal to Guy_With_Strength_For_Primary_Attribute
   - set Str_Hero = strength of casting unit
   - set Dmg_Calc = Str_Hero / <<value from game constants>>
   - cause casting unit to damage target unit of ability being cast dealing 10 + Dmg_Caulc damage
 

Silvenon

New Member
Reaction score
19
I think you can detect like this:

Code:
Add Event
    Events
        Map initialization
    Conditions
    Actions
        Trigger - Add to Unit Takes Damage <gen> the event (Unit - (your unit here) Takes damage)

Code:
Unit Takes Damage
    Events
    Conditions
    Actions
        Set Damage = (Damage taken)

Because if you put the event directly, you won't be able to use any unit variables. And you have damage stored in the variable

Oh-oh, I think I didn't understand this right......
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top