Help please. Diminishing Return (CC)

Level 6
Joined
Aug 31, 2018
Messages
167
Hello there. I am trying to make diminishing return like in WoW. In fact, skills are exactly like in WoW. I was told to make variable groups (Ability) for each category, fear, silence, stun, etc. Then my issues comes with the Trigger > Event > Set Variable Set > CC_Fear (Index heard it doesnt matter, its about each different category, like 0, 1, etc) and then the problem is the Value. When i click on Value, i dont see option to choose the ability. When i click on it, i see on Fuction - Hashtable - load ability handle or Unit - get unit ability, item - get item ability by index and lastly item - get item ability. Can someone please help me and tell me what i do wrong? Thanks!
 

Attachments

  • DR.png
    DR.png
    82.1 KB · Views: 9
Level 6
Joined
Aug 31, 2018
Messages
167
Thanks! Now i need help for something else please. Last trigger is suppose to be - Set CC_Duration = (Ability - Ability Real Level Field: Duration - Normal of (Ability being cast) at level (Level of (Ability being cast) for (Triggering Unit)))
But the ''Ability'' before (Real Level Field) stays in red. There i dont know what to do. Check Picture
 

Attachments

  • DR2.png
    DR2.png
    289.6 KB · Views: 11
Level 6
Joined
Aug 31, 2018
Messages
167
Where is the ability that you want to gather data from? Is the ability on a unit or an item?
All abilities are unit abilities (actual WoW spells) so now i am trying to make diminishing return for each category. Freazes, Stuns, Fears, etc. But i am still new with the world editors so i am strugling at some times.
 
Level 24
Joined
Feb 27, 2019
Messages
833
Okay, it seems it doesnt matter anyway because abilities from items are also gettable from within the units abilities. So the ability we want is on the unit so it would be Unit - Get Unit Ability. Which unit to get the ability from? From Triggering unit. Which ability to get from the unit? The one with Ability Code (Ability being cast).

The Level field in this action starts from 0 and up (0 is level 1). The function (Level of (Ability being cast)) starts from 1 and up (1 is level 1). So to enter the correct value for this action in the Level field when the function (Level of (Ability being cast)) is used, it must be subtracted by 1. It can be done with the Arithmetic function that can be selected in the Level field which allows to add/subtract/divide or multiply two values.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Highly suggest looking into this:
 
Top