Monarch Domain v1.2

MONARCH DOMAIN
IMPORT GUIDE :
1. Enable "Tick the Automatically create unknown variables ..." located at File>Preference>General
2. Copy the Monarch Domain, Monarch Domain (Unit), Monarch Domain (Critical Strike), Monarch Domain (Evasion), and Monarch Domain (Buff) in the object editor
3. Import code and abilities for the following libraries: Damage Engine 5.A.0.0 (attached map used a modified 1.31 version, use link for Reforged) and GUI Unit Event (now with a state-of-the-art Lua version)
4. Copy the MonarchDomain folder in the trigger editor
5. Configure the MonarchDomainConfig trigger
6. (Optional) Configure the MonarchDomainFilter trigger
[EXTRA: Daffa Spell Requirement Table]
SPELL DESCRIPTION :
322475-e6118f58b31c9727292999de7a6f2c23.jpg

SPELL INFORMATION :
Inspired from Monarch Domain in Solo Levelling.
MEDIA SHOWCASE :
(Jump to 0:40 for Monarch Domain in action)
CHANGELOG :
Version 1.2:
  • Fix Monarch Domain buff from Red colored to Green colored (negative to positive)
  • Added a link between source and target
  • If spell is overridden, source is overwritten and moves the unit from old group to new group
  • Fixes a bug with Special Effect not being nulled correctly
  • Rearrange Cast trigger to fix a bug with Group Creation now working correctly for second cast onward
  • Minor object editor ID changes to accomodate some of the changes
Version 1.1:
  • I noticed the circle is red-like colored despite the formula being a shade of purple, so apparently the model works by tint color and not vertex color
  • As such, added new configuration to modify tint color
  • Improved documentation for the coloring details
  • Changed the circle color to Purple as intended like the anime material
Version 1.0: Released


CREDIT :
Anime Solo Levelling
Model: Vinz
Previews
Contents

Monarch Domain v1.2 (Map)

Reviews
Rheiko
It looks like all the issues I previously mentioned have been fixed. I tried to be thorough but so far I have not found any more issues or bugs. Hopefully, I did not miss a thing. Also, I believe in your MonarchDomainCast, you can use your Special...

Rheiko

Spell Reviewer
Level 26
Joined
Aug 27, 2013
Messages
4,214
Some issues I found:
  • Special effect is not created properly. This is because you don't null MonDomain_SpcEffectBuff variable after destroying it. Just destroying the special effect is not enough because the reference still exists so you have to manually set it to null.
  • Effect is not removed properly. When a target has been casted upon by two different casters and either of the caster run out of mana, if the caster ever get enough mana to cast the spell again on the same target and their mana runs out, the effect doesn't disappear, allowing for a permanent buff.
  • When another caster uses the spell on already affected units, the effect for those units cannot stack but the caster still lose mana. You need to somehow check whether the picked units are already affected by the same spell but different caster or not. If they are, do not activate the mana drain (or the spell at all). This is most likely related to the previous issue I encountered.
 
Last edited:
Some issues I found:
  • Special effect is not created properly. This is because you don't null MonDomain_SpcEffectBuff variable after destroying it. Just destroying the special effect is not enough because the reference still exists so you have to manually set it to null.
  • Effect is not removed properly. When a target has been casted upon by two different casters and either of the caster run out of mana, if the caster ever get enough mana to cast the spell again on the same target and their mana runs out, the effect doesn't disappear, allowing for a permanent buff.
  • When another caster uses the spell on already affected units, the effect for those units cannot stack but the caster still lose mana. You need to somehow check whether the picked units are already affected by the same spell but different caster or not. If they are, do not activate the mana drain (or the spell at all). This is most likely related to the previous issue I encountered.
Hi Rheiko, thanks for the feedback!
1. What do you mean the buff special effect not created properly? Do you mean they doesn't appear on second onward casts, or they appear but not removed, or there's leak left behind? The 'destroying is not enough without nulling' point can have large implications for systems like TSELL so I want to be sure what this point core issue is.
2. I have found the issue after re-reading the entire loop code and apparently the way I designed the spell has a room for higher levelled spell to override weaker levelled instance (meant to mimic buffs in Warcraft), which might have spawn this issue. I plan to attach each unit to their caster, and when the instance is altered, the group are also moved around.
3. Same as point 2
 
Version 1.2:

  • Fix Monarch Domain buff from Red colored to Green colored (negative to positive)
  • Added a link between source and target
  • If spell is overridden, source is overwritten and moves the unit from old group to new group (prevent multiple mana drains)
  • Fixes a bug with Special Effect not being nulled correctly (effect not appearing bug fix)
  • Rearrange Cast trigger to fix a bug with Group Creation now working correctly for second cast onward (mana not drained on second cast onward)
  • Minor object editor ID changes to accomodate some of the changes

This should address all issues mentioned by @Rheiko and other minor stuffs I found while fixing them
Let me know if there are other issues
 

Rheiko

Spell Reviewer
Level 26
Joined
Aug 27, 2013
Messages
4,214
It looks like all the issues I previously mentioned have been fixed. I tried to be thorough but so far I have not found any more issues or bugs. Hopefully, I did not miss a thing. Also, I believe in your MonarchDomainCast, you can use your Special Effect variable instead of calling Last created special effect everytime for a slight increase in speed and efficiency. But no biggie, everything else looks good and man, this is a pretty cool spell!

Approved
 
Top