- Joined
- Jan 24, 2009
- Messages
- 2
First off, I don't know if this is the right section to put this in or not.
Anyway here it is:
Im working on several new spells for a new hero type.
1: Damage over time based on level and primary attribute of the hero.
- this is giving me issues because as well as making it a DoT, i also have another skill that this particular hero will have that will consume the DoT if its there and do additional damage. (No not based on the remaining duration - if thats possible yes but ugh.)
If anyone has any examples or posts they can direct me to. That would be awesome.
Again, I don't know if this is the correct place, but I have been looking around to no avail on this matter.
This is what I know:
Needed Variables
hero stats, hero level, is debuffed, standard tic, duration.
This is what I don't know:
Will I need to make a Stack for the debuff ability in order to have it affect multiple targets at once, or could I set the custom value of the targeted unit to the isdebuffed variable with an index of the string name of the spell?
Then when the duration is up, clear the custom value?
*note: I have an OCD issue, I want this to be fully GUI.
*note2: This is fun stuff, it makes my brain hurt sometimes though.
This is what ive got currently, its not tested yet. Tell me if this may or may not work.
Map Init (unit,level,stat variable declaration, also number of tics in debuff)
Anyway here it is:
Im working on several new spells for a new hero type.
1: Damage over time based on level and primary attribute of the hero.
- this is giving me issues because as well as making it a DoT, i also have another skill that this particular hero will have that will consume the DoT if its there and do additional damage. (No not based on the remaining duration - if thats possible yes but ugh.)
If anyone has any examples or posts they can direct me to. That would be awesome.
Again, I don't know if this is the correct place, but I have been looking around to no avail on this matter.
This is what I know:
Needed Variables
hero stats, hero level, is debuffed, standard tic, duration.
This is what I don't know:
Will I need to make a Stack for the debuff ability in order to have it affect multiple targets at once, or could I set the custom value of the targeted unit to the isdebuffed variable with an index of the string name of the spell?
Then when the duration is up, clear the custom value?
*note: I have an OCD issue, I want this to be fully GUI.
*note2: This is fun stuff, it makes my brain hurt sometimes though.
This is what ive got currently, its not tested yet. Tell me if this may or may not work.
Map Init (unit,level,stat variable declaration, also number of tics in debuff)
-
Events
- Map initialization
- Conditions
-
Actions
- Set h_unit = Demonologist 0000 <gen>
- Set e_target[1] = 10
- Set e_target[2] = 10
-
Events
- Time - Every 0.01 seconds of game time
-
Conditions
- h_unit Not equal to No unit
-
Actions
- Set h_level = (Hero level of h_unit)
- Set h_stat = (Intelligence of h_unit (Include bonuses))
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Corruption
-
Actions
- Set e_target[1] = 10
- Unit - Set the custom value of (Target unit of ability being cast) to e_target[1]
- Trigger - Turn on CorruptionTic <gen>
- Trigger - Turn off (This trigger)
-
Events
- Time - Every 3.00 seconds of game time
-
Conditions
- (Custom value of (Targeted unit)) Equal to e_target[1]
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- e_target[1] Less than or equal to 10
- e_target[1] Not equal to 0
-
Then - Actions
- Set e_target[1] = (e_target[1] - 1)
- Unit - Cause h_unit to damage (Targeted unit), dealing (((((Real(h_stat)) x 0.25) + (Real(h_level))) + (5.00 x (Real(h_level)))) + 0.00) damage of attack type Spells and damage type Fire
-
Else - Actions
- Unit - Remove Corruption (new) buff from (Targeted unit)
- Unit - Remove Corruption (new) buff from (Targeted unit)
- Trigger - Turn off (This trigger)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Last edited: