Serotonin 0 Posted August 24, 2021 Share Posted August 24, 2021 Hello guys, As the title says, I'm trying to find a way to halve buffs' value when given to someone else other than me (the caster - mage). For example if my Natures Enchantment normally offers 100AV, I want to keep the entire value for mages (100AV) and half (50AV) for anyone else. In my limited coding knowledge, I should create a SKILL_FLAG, but char_skill.cpp is still a bit confusing for a newbie. Official did something similar in their 17.5 Update afaik, so if anyone has any idea about how to implement such a flag, it would be wonderful. Thanks! Link to comment Share on other sites More sharing options...
Premium Intel 763 Posted August 24, 2021 Premium Share Posted August 24, 2021 No need for flags or anything, it's just simple math: (buffvalue)*(0.5+0.5*isself) isself should be a variable set in skill.cpp already, if not: poly.SetVar("isself", (bool)(victim == ch)); Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now