@Meneth @Divine hey guys, it appears the damage_unit and damage_unit_morale effects are broken. When used in the following way In a scripted effect, all the effects defined after are registered as unknown tokens. I am not sure if it is just an issue with damage_unit, but it does seem as if there is something strange happening.
Code:
magic_dmg_effect = {
while = {
limit = {
event_target:magic_caster = {
check_variable = { which = zdmg value = 1 }
}
}
event_target:magic_caster = {
subtract_variable = { which = zdmg value = 1 }
}
random_list = {
1 = {
}
4 = {
damage_unit = 5
}
2 = {
damage_unit = 10
}
1 = {
damage_unit = 15
}
1 = {
damage_unit = 20
}
1 = {
damage_unit = 25
}
}
}
}